Elements of High-Quality Programs
Project details
Draw the hierarchy chart and design the
logic for a program that calculates service
charges for Hazel’s Housecleaning service.
The program contains housekeeping, detail
loop, and end-of-job modules. The main
program declares any needed global
variables and constants and calls the other
modules. The housekeeping module
displays a prompt for and accepts a
customer’s last name. While the user does
not enter ZZZZ for the name, the detail
loop accepts the number of bathrooms and
the number of other rooms to be cleaned.
The service charge is computed as $40
plus $15 for each bathroom and $10 for
each of the other rooms. The detail loop
also displays the service charge and then
prompts the user for the next customer’s
name. The end-of-job module, which
executes after the user enters the sentinel
value for the name, displays a message
that indicates the program is complete.
I need this program coded out of this in C++
Project details
logic for a program that calculates service
charges for Hazel’s Housecleaning service.
The program contains housekeeping, detail
loop, and end-of-job modules. The main
program declares any needed global
variables and constants and calls the other
modules. The housekeeping module
displays a prompt for and accepts a
customer’s last name. While the user does
not enter ZZZZ for the name, the detail
loop accepts the number of bathrooms and
the number of other rooms to be cleaned.
The service charge is computed as $40
plus $15 for each bathroom and $10 for
each of the other rooms. The detail loop
also displays the service charge and then
prompts the user for the next customer’s
name. The end-of-job module, which
executes after the user enters the sentinel
value for the name, displays a message
that indicates the program is complete.
I need this program coded out of this in C++