Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions