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 16:00
Write a grading program for a class with the following grading policies: a. there are two quizzes, each graded on the basis of 10 points. b. there is one midterm exam and one final exam, each graded on the basis of 100 points. c. the final exam counts for 50% of the grade, the midterm counts for 25%, and the two quizzes together count for a total of 25%. (do not forget to normalize the quiz scores. they should be converted to a percentage before they are averaged in.) any grade of 90 or more is an a, any grade of 80 or more (but less than 90) is a b, any grade of 70 or more (but less than 80) is a c, any grade of 60 or more (but less than 70) is a d, and any grade below 60 is an f. the program will read in the student’s scores and output the student’s record, which consists of two quiz and two exam scores as well as the student’s average numeric score for the entire course and final letter grade. define and use a structure for the student reco
Answers: 2
question
Computers and Technology, 23.06.2019 23:00
How do you know if the website is secure if you make a purchase
Answers: 2
question
Computers and Technology, 24.06.2019 02:10
Consider the usual algorithm to convert an infix expression to a postfix expression. suppose that you have read 10 input characters during a conversion and that the stack now contains these symbols: (5 points) | | | + | | ( | bottom |_*_| now, suppose that you read and process the 11th symbol of the input. draw the stack for the case where the 11th symbol is
Answers: 2
question
Computers and Technology, 24.06.2019 13:30
Consider jasper’s balance sheet. which shows how to calculate jasper’s net worth?
Answers: 1
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
Physics, 28.02.2021 19:30
question
History, 28.02.2021 19:30
question
Mathematics, 28.02.2021 19:30
question
Mathematics, 28.02.2021 19:30
Questions on the website: 13722367