Question: JAVA PROGRAMMING Use JOptionPane and switch to write an application for Residential Life that determines a students housing, based upon gender and grade point average.

JAVA PROGRAMMING

Use JOptionPane and switch to write an application for Residential Life that determines a students housing, based upon gender and grade point average. Prompt the user to enter the gender:

(1) Female (2) Male. Prompt the user to enter the grade point average (0.0 4.0). If the user is male, he will reside in Beckwith Hall. If the user is female, her residency is based upon her grade point average.

Hall GPA

Holmes Hall

3.5 4.0

Merner Hall

3.0 3.49

Pfeifer Hall

2.0 2.99

Display the students gender, gpa, and Residence Hall assignment.

Rewrite the program using Scanner and if.

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!