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 (2.41 oz. and over)
o Extra Large (2.25 oz. and under 2.41 oz.)
o Large (2 oz. and under 2.25 oz.)
o Medium (1.75 oz. and under 2 oz.)
o Small (under 1.75 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 (0) 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 (0) to stop: 2.3
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 header/banner
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 xx.x
o The smallest egg weight of the clutch of eggs is xx.x
o The largest egg weight of the clutch of eggs was xx.x
o The average egg weight of the clutch of eggs was xx.x
o The total quantity of each of the following grade
There were xx Jumbo (2.41 oz. and over) eggs in the clutch
There were xx Extra Large (2.25 oz. and under 2.41 oz.) eggs in the clutch
There were xx Large (2 oz. and under 2.25 oz.) eggs in the clutch
There were xx Medium (1.75 oz. and under 2 oz.) eggs in the clutch
There were xx Small (under 1.75 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 header/banner) 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 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 Programming Questions!