Question: Exercise 4 [ Repetition using While loop ] You are to flowchart a program for Old Mrs . Macdonald's Egg Ranch. The program should prompt

Exercise 4[Repetition using While loop]
You are to flowchart a program for Old Mrs. Macdonald's Egg Ranch. The program should prompt the user to enter the number of eggs gathered and then computer and display/output the number of dozens as well as the number of excess eggs. Continue this process until the user enters a negative number.
Example (Note: this is just a sample run of the program to give you an idea of what your program needs to display and what to compute. Your flowchart should be generic to any values entered by the user):
Enter the number of eggs gathered: 43 You have 3 dozen and 7 eggs.
Enter the number of eggs gathered: -999-end program
Perform a paper/pen check with the following input values: 24,8,15, and -999.

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!