GameControl Java program……solved

$25.00

Download Details:

  • Name: For_ethical_legal_and_business_reasons_the_security_of_health_care_data...-zdnqmc.docx
  • Type: docx
  • Size: 27.20 KB

Category:

Description

5/5 - (2 votes)

Make a complete Java program called GameControl according to the following guidelines.
This program must use a do loop to provide the following interaction with a user.
The program should prompt for an integer from 1 through 4, or q to quit.
If a user enters 1, your program should print “Up” and then prompt the user to enter another integer from 1 through 4, or q to quit.
If a user enters 2, your program should print “Down” and then prompt the user to enter another integer from 1 through 4, or q to quit.
If a user enters 3, your program should print “Left” and then prompt the user to enter another integer from 1 through 4, or q to quit.
If a user enters 4, your program should print “Right” and then prompt the user to enter another integer from 1 through 4, or q to quit.
If a user enters q, your program should print “Terminating on receiving input q” and quit