Question

    FLOWCHART Draw the hierarchy chart and design the logic for a program that calculates the...

    FLOWCHART

Draw the hierarchy chart and design the logic for a program that calculates the projected cost of a remodeling project. Assume that the labor cost is $30 per hour. Design a program that prompts the user for a number hours projected for the job and the wholesale cost of materials. The program computes and displays the cost of the job, which is the number of hours times the hourly rate plus the 120% of the wholesale cost of materials. The program accepts data continuously until 0 is entered for the number of hours. Use appropriate modules, including one that displays End of program when the program is finished.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:

FlowChart:

code:

#include<iostream> //i/o library
using namespace std;

int main(){
int status= 1, hours, wholeSaleCost;
float projectedCost;
while(status!=0)
{
   cout<<"Please enter number of hours projected for the job: "; //asking for the input from the user
   cin>>hours;
   cout<<"Please the wholsale cost of the materials: ";
   cin>>wholeSaleCost;
   projectedCost= (hours*30)+(1.2*wholeSaleCost); //calculating the projected cost
   cout<<"The projected cost of the remodeling is: "<<projectedCost<<endl;
   cout<<"Enter 0 to end, any other to continue: ";
   cin>>status;
  
}

return 0; //This is to make sure that the program terminates
}

Output:

Please give it a thumbs up if this helped you, also provide your valuable feedback.

Add a comment
Know the answer?
Add Answer to:
    FLOWCHART Draw the hierarchy chart and design the logic for a program that calculates the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT