Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Luc Perkins, Eric Redmond, Jim Wilson

2nd Edition

1680502530, 978-1680502534

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago