Question: Code a Java program to ask a user the following question. Ask the user the following question using a dialog box Which show do you

Code a Java program to ask a user the following question.

  • Ask the user the following question using a dialog box
    • Which show do you want to watch?
      • 1 The World of Nature
      • 2 Five Star Chefs
      • 3 The History of Ford Motor Company
      • 4 How Stuff Works
      • 5 Exit (I am done)
  • Validate that the user entered 1 5. If they made a mistake, force them to fix the error.
  • Use a switch statement to tell the user which network the show is playing on. Ex. The World of Nature Network: Discovery Channel
  • Repeat the entire process so the user can select another show. End your program when the user wants to exit.
  • Count the number of shows the user inquired about (meaning, count the number of times the entire program looped)

Grading Rubric :

Task

Possible Points

Points Achieved/Comments

Imports

10

Program header setup

10

Comments throughout

10

Welcome the User

5

Variables declared

5

Dialog Box for Inputs

15

Validation

25

Switch statement

25

Loop Logic Repeat the entire process.

25

Count the number of programs the user inquired about.

10

Overall logic, format etc.

10

TOTAL

150

That is all the information provided by the professor, it should be enough to complete the assignment.

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!