Question: Write a C++ Program Description A size of a Jumbo candy bar with rectangular shape is: 1 w h. Due to the rising costs of
Write a C++ Program

Description A size of a Jumbo candy bar with rectangular shape is: 1 w h. Due to the rising costs of coca, the volume of the candy bar is to be reduced by p%. To accom plish this, the management decided to keep the thickness, h, of the candy bar the same, and reduce the length and width by the same amount. For example, if 12, w-7, and h 3, and p 10, then the new dimension of the candy bar is 11.39 x 6.64 x 3. Write a program to accomplish this. All input and output will be of type double except for p which will be of type int. Hint: you may need to use sqrt function, so you will need to have #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
