Question: Write Java program code for the question Company Lonikayodoh wants to build a grading system prototype for the chicken eggs that it produced which are

Write Java program code for the question Company Lonikayodoh wants to build a grading system prototype for the chicken eggs that it produced which are given grades based on the weight's range as shown in Table 1. For this prototype, the company worker needs to manually insert the egg's weight and the system will determine the grade automatically according to the weight ranges. Then the system needs to produce a report for every 10 eggs produced. Each report should specify the total amount for each egg's grade, the average weight for each grade produced and the total amount of weight of all eggs produced. Table 1: Grades of Eggs According to Weight Write the following methods and the main method for the program: i. Method named getGrade to determine grade of the egg and calculate the total weight of each grade. li. Method named countGrade to count the total of eggs for each grade. lii. Method named displayReport to display the output required
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
