Question: Egg Sorter Program Create an Egg Sorter program that will sort and summarize the results of several hen s clutches of eggs. Program parameters: Start
Egg Sorter Program
Create an Egg Sorter program that will sort and summarize the results of several hens clutches of eggs.
Program parameters:
Start Banner This or something similar
o
o Welcome to the Egg Sorter program
o
Prompt the user to enter the number of hens and their clutch to be sorted
Hen Clutch banner indicating which hen it is
o
o Hen Number XX Clutch Data Entry
o
Prompt the user to enter the weight of the egg then display the size of the egg
o Jumbo oz and over
o Extra Large oz and under oz
o Large oz and under oz
o Medium oz and under oz
o Small under oz
Prompt the user to enter the weight of the next egg, again display the size and continue to until
the user enters the weight of zero to stop the data entry for that clutch of eggs.
o Example of each egg weight entry and display:
Enter the weight in oz for egg xx in the clutch or zero to stop:
This is an Extra Large size egg
Upon completion of entering all the eggs in the hens clutch, the program should display the
summary of the clutch of eggs for that hen.
Must have a headerbanner
All responses must be in a complete sentence format.
o
o Hen Number XX Egg Summary
o
o The total number of eggs in the clutch is xx
o The total weight of the clutch of eggs is xxx
o The smallest egg weight of the clutch of eggs is xxx
o The largest egg weight of the clutch of eggs was xxx
o The average egg weight of the clutch of eggs was xxx
o The total quantity of each of the following grade
There were xx Jumbo oz and over eggs in the clutch
There were xx Extra Large oz and under oz eggs in the clutch
There were xx Large oz and under oz eggs in the clutch
There were xx Medium oz and under oz eggs in the clutch
There were xx Small under oz eggs in the clutch
Upon completion of sorting all the hens and their clutches, the program should display the
summary of all the clutches of eggs with headerbanner all responses must be in a sentence
format.
o
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
