subject

Description: In this program you are going to design a program to calculate the cement needed for a foundation. Flowchart the logic of the program. The user will prompted to enter the customer name, size of the foundation and the distance from the build site. Requirements:

1. Output must be labeled and easy to read as shown in the sample below.

2. Naming convention should be followed for all variables.

3. Program must be self-documenting with comments and meaning variable names.

More Requirements:

1. Prompt the customer for their company name. Use getline to capture the company name

2. Prompt the customer to enter the width, length, and depth of the foundation. To make the formula easier enter everything in feet.

3. To calculate the number cubic feet, multiple width x length x depth. Divide the total by 27 to get the number of yards.

4. Each truck can only haul 8 cubic yards. Calculate how many truckloads you will need.

5. Round the number of truck loads up. For example, if the job site needs 2.4 truck loads you will need to purchase 3 truckloads. Each truckload cost $725.63 (there are not partial loads)

6. Prompt the customer to enter the number of miles the cement company is from the job site.

7. Calculate the distance cost by multiplying the number of miles by $10.33.

8. Calculate the total cost to pour the foundation.

9. To drum up more busines the owner decided to add a random discount to all orders. To calculate the discount, generate a random number between 1 and 10. Divide that number by 100 to get the discount.

10. All decimals must line up in the output. You might want to check out StackOverflow for an example

https://stackoverflow. com/questions/57828082/c-cout-list- with-decimals-aligned-using-setwx-n ot-put-money

11. Flowchart the program.

I HATE C++ .

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 16:30, 19thomasar
How to do this programming flowchart?
Answers: 3
image
Computers and Technology, 24.06.2019 00:40, ndurairajownkpq
What social factors affect your health
Answers: 3
image
Computers and Technology, 24.06.2019 13:00, CarlosParker99
Think of a spreadsheet as a giant calculator spread of paper chart data collector
Answers: 2
image
Computers and Technology, 24.06.2019 15:30, pineapplefun
During the software planning process, rick, a project manager, finds that his team has made an incorrect estimation of funds. what kind of risk has rick identified? rick has identified a risk.
Answers: 1
You know the right answer?
Description: In this program you are going to design a program to calculate the cement needed for a...

Questions in other subjects:

Konu
Biology, 07.06.2021 14:00
Konu
Mathematics, 07.06.2021 14:00
Konu
Mathematics, 07.06.2021 14:00
Konu
Chemistry, 07.06.2021 14:00