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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started