Example Output 1 - User input is bolded. (Your program should look exactly like this) Welcome to Café 1331! Java Coffee: $13.31 Python Burger: $13.01 C Shake: $21.10 HTML Fries: $23.40 What would you like to order? pythOn bURger Would you like to make this a combo? yEs What percentage would you like to tip? 0.20 Subtotal: $36.41 Tip: $7.28 Total: $43.69 Example Output 2 - User input is bolded. Welcome to Café 1331! Java Coffee: $13.31 Python Burger: $13.01 C Shake: $21.10 HTML Fries: $23.40 What would you like to order? HIDDEN ITEM What is the secret password? javarocks Correct, you get the Hidden Item! What percentage would you like to tip? 0.13 Subtotal: $13.32 Tip: $1.73 Total: $15.05 Cafe1331.java Name your program Cafe1331.java it should work as follows. Print welcome message (see: example) with menu items and the following prices exactly as shown in the example output provided: a. Java Coffee: $13.31 b. Python Burger: $13.01 c. C Shake: $21.10 d. HTML Fries: $23.40 1. 2. Ask the user "What would you like to order?" а. User should be able to enter a valid menu item name (ignoring lower/upper cases) b. If the user has selected Java Coffee, ask the user "Would you like to supersize this?" i. If "yes", multiply the price by 2.5 (ignoring lower/upper cases) If the user has selected the Python Burger, ask the user "Would you like to make this a combo?" i. If "yes", add the HTML Fries to the order (ignoring lower/upper cases) If the user enters Hidden Item, ask the user "What is the secret password?" The secret password is any word that is greater than "cs1331rocks" If the password is correct, print on a new line: "Correct, you get the Hidden Item!" then add the Hidden Item (price: $13.32) С. d. i. ii. iii. If the password is incorrect, print on a new line "Incorrect, you get the C Shake." then add the C Shake е. If the user enters an invalid menu item, the program should terminate gracefully 3. Prompt the user for the percentage they would like to tip. i. Prompt: "What percentage would you like to tip?" This should be entered as a non-negative decimal. iii. If user inputs a negative decimal, then the tip percentage is default 18% 4. Your program should calculate the final price with tip then print the subtotal (price of order), the tip (subtotal times tip percentage), and the total (subtotal + tip). Round to the nearest cent (2 decimal ii. places).

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

USE JAVA 

and see the example output, please be as precise as possible

Example Output 1 - User input is bolded.
(Your program should look exactly like this)
Welcome to Café 1331!
Java Coffee: $13.31
Python Burger: $13.01
C Shake: $21.10
HTML Fries: $23.40
What would you like to order? pythOn bURger
Would you like to make this a combo? yEs
What percentage would you like to tip? 0.20
Subtotal: $36.41
Tip: $7.28
Total: $43.69
Example Output 2 - User input is bolded.
Welcome to Café 1331!
Java Coffee: $13.31
Python Burger: $13.01
C Shake: $21.10
HTML Fries: $23.40
What would you like to order? HIDDEN ITEM
What is the secret password? javarocks
Correct, you get the Hidden Item!
What percentage would you like to tip? 0.13
Subtotal: $13.32
Tip: $1.73
Total: $15.05
Transcribed Image Text:Example Output 1 - User input is bolded. (Your program should look exactly like this) Welcome to Café 1331! Java Coffee: $13.31 Python Burger: $13.01 C Shake: $21.10 HTML Fries: $23.40 What would you like to order? pythOn bURger Would you like to make this a combo? yEs What percentage would you like to tip? 0.20 Subtotal: $36.41 Tip: $7.28 Total: $43.69 Example Output 2 - User input is bolded. Welcome to Café 1331! Java Coffee: $13.31 Python Burger: $13.01 C Shake: $21.10 HTML Fries: $23.40 What would you like to order? HIDDEN ITEM What is the secret password? javarocks Correct, you get the Hidden Item! What percentage would you like to tip? 0.13 Subtotal: $13.32 Tip: $1.73 Total: $15.05
Cafe1331.java
Name your program Cafe1331.java it should work as follows.
Print welcome message (see: example) with menu items and the following prices exactly as shown in the
example output provided:
a. Java Coffee: $13.31
b. Python Burger: $13.01
c. C Shake: $21.10
d. HTML Fries: $23.40
1.
2.
Ask the user "What would you like to order?"
а.
User should be able to enter a valid menu item name (ignoring lower/upper cases)
b. If the user has selected Java Coffee, ask the user "Would you like to supersize this?"
i. If "yes", multiply the price by 2.5 (ignoring lower/upper cases)
If the user has selected the Python Burger, ask the user "Would you like to make this a combo?"
i. If "yes", add the HTML Fries to the order (ignoring lower/upper cases)
If the user enters Hidden Item, ask the user "What is the secret password?"
The secret password is any word that is greater than "cs1331rocks"
If the password is correct, print on a new line: "Correct, you get the Hidden Item!" then
add the Hidden Item (price: $13.32)
С.
d.
i.
ii.
iii. If the password is incorrect, print on a new line "Incorrect, you get the C Shake." then
add the C Shake
е.
If the user enters an invalid menu item, the program should terminate gracefully
3.
Prompt the user for the percentage they would like to tip.
i. Prompt: "What percentage would you like to tip?"
This should be entered as a non-negative decimal.
iii. If user inputs a negative decimal, then the tip percentage is default 18%
4. Your program should calculate the final price with tip then print the subtotal (price of order), the tip
(subtotal times tip percentage), and the total (subtotal + tip). Round to the nearest cent (2 decimal
ii.
places).
Transcribed Image Text:Cafe1331.java Name your program Cafe1331.java it should work as follows. Print welcome message (see: example) with menu items and the following prices exactly as shown in the example output provided: a. Java Coffee: $13.31 b. Python Burger: $13.01 c. C Shake: $21.10 d. HTML Fries: $23.40 1. 2. Ask the user "What would you like to order?" а. User should be able to enter a valid menu item name (ignoring lower/upper cases) b. If the user has selected Java Coffee, ask the user "Would you like to supersize this?" i. If "yes", multiply the price by 2.5 (ignoring lower/upper cases) If the user has selected the Python Burger, ask the user "Would you like to make this a combo?" i. If "yes", add the HTML Fries to the order (ignoring lower/upper cases) If the user enters Hidden Item, ask the user "What is the secret password?" The secret password is any word that is greater than "cs1331rocks" If the password is correct, print on a new line: "Correct, you get the Hidden Item!" then add the Hidden Item (price: $13.32) С. d. i. ii. iii. If the password is incorrect, print on a new line "Incorrect, you get the C Shake." then add the C Shake е. If the user enters an invalid menu item, the program should terminate gracefully 3. Prompt the user for the percentage they would like to tip. i. Prompt: "What percentage would you like to tip?" This should be entered as a non-negative decimal. iii. If user inputs a negative decimal, then the tip percentage is default 18% 4. Your program should calculate the final price with tip then print the subtotal (price of order), the tip (subtotal times tip percentage), and the total (subtotal + tip). Round to the nearest cent (2 decimal ii. places).
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
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