Question
Please note, this is for C++ The program you are to write is for a family owned small business. The business builds custom made specialized
Please note, this is for C++
The program you are to write is for a family owned small business. The business builds custom made specialized memorial monuments. The program you are asked to write is to compute the amount of paint needed to cover the surface area of one of their monument types. The monument has two separate parts: a top and a bottom both of which are equilateral pyramid prisms stacked vertex to vertex. See Figure. The monument takes a special reflective paint which is put over primer paint. All monuments of this type are made to order so only the amount of paint needed for each job is bought. Your program is to accept a number that is the side length of one edge of either the upper or lower section (all sides are the same length). Your program is then to output the number of cans of primer and reflective paint that must be obtained to paint the monument.
Read in and store the data. Note: decimals are allowed.
Each monument receives 1 coat of primer on the entire thing (including the bottom that is not seen).
Each monument receives 2 coats of reflective paint on the parts that are seen. This includes the top but not the bottom.
Each type of paint comes in a can which will cover = 5 sq ft. Because paint coverage may vary by paint type do not use a hard coded amount. Instead use a final variable for the coverage value of a can of paint.
Calculate the number of cans of primer needed.
Calculate the number of cans of Reflective Paint needed.
Output the result. The number of primer paint cans needed is: 2 The number of reflective paint cans needed is: 3
Your program should re-prompt for an additional monument, and repeat until -1 is entered
Enter the length of one of the pyramid sides in feet such as 3.5 or enter -1 to quit:
Example of a sample input and output: This program will calculate the number of cans of primer and special reflective paint that are needed for a double equilateral pyramid prism monument. Enter the length of one of the pyramid sides in feet such as 12.5 or enter -1 to quit: 2.8 The number of primer paint cans needed is: 6 The number of reflective paint cans needed is: 10
Side lengthStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started