subject

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 <㎝ath> above your int main() along with the other includes. The function sqrt takes in a number and returns it's square root, for example if I have sqrt (2) the function returns the value 1.414.. Specifications To get full credit you program must contain/perform the following Declare variables with meaningful names and correct types Document all your variables Document portions of your code (parts that perform input, output, calculations etc.) Program must compile and run with various inputs

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:30
You have a small company and want to keep your costs low, but it is important your employees share data. which network would provide you with the most economical solution?
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
What provides an array of buttons for quick access to commonly used commands and tools
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
How should you specify box sizes on a web page if you want the boxes to vary according to the font size of the text they contain? a. in pixels b. in inches c. as percentages d. in em units
Answers: 2
question
Computers and Technology, 23.06.2019 18:40
Johnson enterprises uses a computer to handle its sales invoices. lately, business has been so good that it takes an extra 3 hours per night, plus every third saturday, to keep up with the volume of sales invoices. management is considering updating its computer with a faster model that would eliminate all of the overtime processing.
Answers: 2
You know the right answer?
Description A size of a Jumbo candy bar with rectangular shape is: 1 × w × h. Due to the rising cost...
Questions
question
Health, 16.10.2020 20:01
question
Mathematics, 16.10.2020 20:01
question
Arts, 16.10.2020 20:01
question
English, 16.10.2020 20:01
question
Computers and Technology, 16.10.2020 20:01
question
Mathematics, 16.10.2020 20:01
Questions on the website: 13722367