Question: Java for beginner : Write a console program that asks the user to enter a number of students in a class. For each student, the

Java for beginner : Write a console program that asks the user to enter a number of students in a class. For each student, the program asks whether the student is male or female, and the course average for that student. When all student information has been entered, the program prints the number of male and female students and their averages. For example, How many students? 5 Is student 1 male or female (M/F)? m What is student 1's average? 85 Is student 2 male or female (M/F)? m What is student 2's average? 91 Is student 3 male or female (M/F)? f What is student 3's average? 95 Is student 4 male or female (M/F)? f What is student 4's average? 80 Is student 5 male or female (M/F)? m What is student 5's average? 88 The 3 male students average is 88 The 2 female students average is 87.5 Run again? Enter y or n

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!