Question: +main.cpp l If I Else Statements !!#include iostrean> 2#include ionantp> A box of cookies can hold 24 cookies, and a container can hold 75 boxes

 +main.cpp l If I Else Statements !!#include iostrean> 2#include ionantp> A

+main.cpp l If I Else Statements !!#include iostrean> 2#include ionantp> A box of cookies can hold 24 cookies, and a container can hold 75 boxes of cookies. Write a program that prompts the user to enter the total number of cookies. The 4 using namespace std; 6 // progran constants 8 int main() 10 // varatble declaration(s) program then outputs the number of boxes and the number of containers to ship the cookaes. Note that each box must contain the specified number of cookies, and each container must contain the specifiecd number of boxes. If the last box of 12 // accept user input 13 14 // progran logic and output stater cookies contains less than the number of 1 specified cookies, you can discard it and 16 output the number of leftover cookies. Similarly, if the last container contains less than the number of specified boxes. you can discard it and output the number e return 17 0 of leftover boxes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!