in Java write a program that would prompt the user to pick a number from 1 to 5 and then the program would print the quote assigned to that number (for the 5 quotes use "Quote 1", "Quote 2", "Quote 3", "Quote 4", and "Quote 5"); after printing the quote the program should prompt the user if he would like to print another quote, and if the user inputs "Y" program asks for a the numbers again and prints another quote, but if the user inputs "N" the program ends; just note that the program should repeat until the user inputs "N".

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 15PE
icon
Related questions
Question

in Java write a program that would prompt the user to pick a number from 1 to 5 and then the program would print the quote assigned to that number (for the 5 quotes use "Quote 1", "Quote 2", "Quote 3", "Quote 4", and "Quote 5"); after printing the quote the program should prompt the user if he would like to print another quote, and if the user inputs "Y" program asks for a the numbers again and prints another quote, but if the user inputs "N" the program ends; just note that the program should repeat until the user inputs "N".

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Files and Directory
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning