[solved]-Write Program Asks User Many Problems Prompt Instruct Enter Number 3 99 Check Make Sure Co Q39062566
You will write a program that asks a user how many problems theyhave- In your prompt instruct them to enter a number between 3 and99. (Check to make sure they comply.) You will then print a linefor each of their problems finishing off with a line saying theyhave no problems. You will then ask if they have any more problemsto start the process again. Finish your program with a pleasantoutput line to let the user know he/she is done. Hints: You need toaccount for the difference between 1 “problem” and 2 or more“problems”. Since you are using inputs of an integer and a stringvalue you may consider either 2 scanner objects or you will have toparse the integer out of a string. If your outer loop repeats on aninput of “yes” or “y” then make sure to use the scannerName.equalsrather than the == syntax. Example output: How many problems do youhave? (Enter a number 3-99) 2 I’m sorry you need to enter a numberbetween 3 and 99, please re-enter an integer in that range. Howmany problems do you have? (Enter a number 3-99) 4 You have 4problems but Java ain’t one You have 3 problems but Java ain’t oneYou have 2 problems but Java ain’t one You have 1 problem but Javaain’t one You got no problems left. Do you want more problems: Yesor No? yes How many problems do you have? (Enter a number 3-99) 3You have 3 problems but Java ain’t one You have 2 problems but Javaain’t one You have 1 problem but Java ain’t one You got no problemsleft. Do you want more problems: Yes or No? no I’m glad you areOK.
Expert Answer
Answer to You will write a program that asks a user how many problems they have- In your prompt instruct them to enter a number be… . . .
OR

