You have probably gotten an automated text where it says something like “Text STOP to opt out of getting notifications”. If this happens do you reply with “STOP”, “Stop”, or “stop”? All 3 of these are completely different strings. How should you develop an application which would allow a user to input any of them? For this first problem, create a very basic menu

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

IN Java

You have probably gotten an automated text where it says something like “Text STOP to opt out of getting notifications”. If this happens do you reply with “STOP”, “Stop”, or “stop”? All 3 of these are completely different strings. How should you develop an application which would allow a user to input any of them? For this first problem, create a very basic menu which displays a few different strings. Then after the program has finished, it will ask the user if they want to rerun the program. The user should be able to type “Yes”, “yes”, “YES”, or any other combination of lowercase and uppercase letters in the word. DO NOT solve this problem using a complicated IF statement which will take all these inputs. Also, assume if the user types anything other than “yes” then the user does not want to rerun the program. Tip: You need to use a function to compare if 2 strings are equal to each other. Try searching something like “ string function”, there are many different functions available. Remember, the class name should be Lab11A.

The user input is indicated in bold.

IN Java

Sample output #1:

Menu

0) Hello World

1) Goodbye Moon

2) Walking on Sunshine

What would you like to do: 0

Hello! Type YES to rerun. yes

Menu

0) Hello World

1) Goodbye Moon

2) Walking on Sunshine

What would you like to do: 1

Ok, bye.

Type YES to rerun. YeS

Menu

0) Hello World

1) Goodbye Moon

2) Walking on Sunshine

What would you like to do: 2

WHOA!

Type YES to rerun. YES

Menu

0) Hello World

1) Goodbye Moon Page

2) Walking on Sunshine

What would you like to do: 2

WHOA!

Type YES to rerun. No

Program Ends

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Program on Numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY