The program must include a looping structure to both receive user input and process it until the user wishes to quit. Use a switch structure to handle the input and display the appropriate help. Your program must include help for the following Java terms: if switch for while do–while

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

This next program is a little simpler, but it still illustrates some very critical program structures. It also illustrates an idea that is still used commonly, even if the mechanism has evolved with modern tools and alternative languages.

We are referring to a menu-based help system. Modern help systems and menus are often represented using an integrated user environment; however, the core concepts behind the help system remain largely unchanged from this assignment.

Create an interactive help system for Java programming. The system will incorporate a menu system that interacts with the user, and the appropriate help topic will be displayed, based on an input selection.

This program is going to require some research on your part, as well as some programming in Java. Specifically, you will need to find definitions for the Java terms included in your help system. You can read the textbook or scour the Internet for the definitions. They should be no more than a few sentences each; nothing complex or detailed is required.

The program must include a looping structure to both receive user input and process it until the user wishes to quit. Use a switch structure to handle the input and display the appropriate help.

Your program must include help for the following Java terms:

  • if
  • switch
  • for
  • while
  • do–while

 

Here is a sample output from the program:

Java Help Menu Select Help on:
 
1. If
2. Switch
3. For
4. While
5. Do-while
x. Exit Selection:
 
3 for: ...definition...
 
Java Help Menu Select Help on:
1. If
2. Switch
3. For
4. While
5. Do-while
x. Exit Selection:
 
x Thank you.
 
Good bye.
 
The program must use a switch structure and to exit the program the user must enter the letter X both captial and lowercase must work.  Also for this problem if the user enters an input thats not on the list can you please make the program print out the message. Invalid input
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Concept of Flowchart
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education