Question: THIS IS FOR JAVA PROGRAMMING: Create the class Olympic Ask and check for user name Using a drop-down menu, ask the user to select a

THIS IS FOR JAVA PROGRAMMING:

Create the class Olympic

Ask and check for user name

Using a drop-down menu, ask the user to select a year from the list in the dialog box (between 2005 and 2020 -- inclusive, that is, include 2005 and 2020)

At the end, inform the user if the Summer Olympics were/will be held on the year selected (use a switch statement for that)

The code must:

Use dialog boxes to allow user input and messages to the user

Use While loops to check for invalid user inputs (e.g., empty strings, strings instead of numbers or vice-versa, negative numbers, floats instead of integers or vice-versa, etc.)

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!