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
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