subject

a bag of cookies holds 40 cookies. the calorie information on the bag claims that there are 10 servings in the bag and that a serving equals 300 calories. design a program that lets the user enter the number of cookies he or she actually ate and then reports the number of total calories. the main program declares all variables and calls the housekeeping, detail and endofjob modules. the housekeeping module prompts for and inputs the number of cookies eaten. the detail module calculates the cookies per serving, calories per cookie, and total calories consumed. the detail module should also display the total calories. the cookies per serving should be determined by dividing the cookies per bag by the servings per bag. the calories per cookie should be determined by the calories per serving divided by the cookies per serving. the total calories should be determined by multiplying the number of cookies eaten by the calories per cookie. the endofjob module should display a thank you message.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:40
Design a pos circuit that displays the letters a through j on a seven-segment indicator. the circuit has four inputs w, x, y, and z which represent the last 4 bits of the uppercase ascii code for the letter to be displayed. thus, if wxyz = 0001 then "a" will be displayed. (any answer with 22 or fewer gates and inverters, not counting any for the inputs, is acceptable)
Answers: 2
question
Computers and Technology, 22.06.2019 19:20
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_balance should be removed since header files should not contain constants.c)the definition of cashregister should be removed since header files should not contain class definitions.d)the body of the get_monthly_balance function should be added to the header file.
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What part of the interface displays the external references contained in a selected cell? the status bar the review tab the scroll bar the formula bar
Answers: 1
question
Computers and Technology, 24.06.2019 09:50
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
You know the right answer?
a bag of cookies holds 40 cookies. the calorie information on the bag claims that there are 10 servi...
Questions
question
Mathematics, 07.10.2020 14:01
question
Mathematics, 07.10.2020 14:01