Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Recommended Textbook for

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions

Question

What is the correlation between EXPERIENCE and NO. DEGREES?

Answered: 1 week ago