subject

Write a Java program in jGrasp that: asks the user if they want to play
validates that the user answers either y or n or Y or N and uses an input validation loop to assure this
if the user answers y or Y, asks the user for their name
stores the user's name in a variable and then displays it
repeat all the above ten times using an appropriate loop
Incorporate the needed parts of the code below into your program for the input validation.
Add a comment with your name that states the Process, Input, and Output for this program.
Compile, test, and debug your code.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:30
What result from the passage of this amendment
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
What is the digital revolution and how did it change society? what are the benefits of digital media?
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Consider the following function main: int main() { int alpha[20]; int beta[20]; int matrix[10][4]; . . } a. write the definition of the function inputarray that prompts the user to input 20 numbers and stores the numbers into alpha. b. write the definition of the function doublearray that initializes the elements of beta to two times the corresponding elements in alpha. make sure that you prevent the function from modifying the elements of alpha. c. write the definition of the function copyalphabeta that stores alpha into the first five rows of matrix and beta into the last five rows of matrix. make sure that you prevent the function from modifying the elements of alpha and beta. d. write the definition of the function printarray that prints any onedimensional array of type int. print 15 elements per line. e. write a c11 program that tests the function main and the functions discussed in parts a through d. (add additional functions, such as printing a two-dimensional array, as needed.)
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
Facial expressions and gestures are examples of messages.
Answers: 3
You know the right answer?
Write a Java program in jGrasp that: asks the user if they want to play
validates that the u...
Questions
question
Social Studies, 13.07.2019 06:00
Questions on the website: 13722363