Minor 2 - Processing Ice Cream Orders USING NESTED IF STRUCTURE Specifications As customers move along an aisle at a food court with automated food dispensers they have the opportunity to order ice cream for desert with their meal. Develop an application to process ice cream orders at the automated ice cream machine. The machine must greet customers with a friendly greeting and then ask customers if they would like to order ice cream. The program must allow the user to choose to order ice cream along with condiments for the order. Condiments for the order can only be chosen if the customer is ordering ice cream and are not available without ordering ice cream. The program must ask customers if they want ice cream and then respond to the customer’s response. If the customers want ice cream, the machine must display the available condiments and their prices and ask customers if they want to include the available condiments in the order. The cost of the ice cream is $4.00. The available condiments and their costs are as follows: Chocolate Topping - $1.00 Sprinkles - $.0.50 Cherry - $0.50 Fruit Slice - $.40 Napkin - $0.00

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

Minor 2 - Processing Ice Cream Orders

USING NESTED IF STRUCTURE

Specifications

As customers move along an aisle at a food court with automated food dispensers they have the opportunity to order ice cream for desert with their meal. Develop an application to process ice cream orders at the automated ice cream machine. The machine must greet customers with a friendly greeting and then ask customers if they would like to order ice cream. The program must allow the user to choose to order ice cream along with condiments for the order. Condiments for the order can only be chosen if the customer is ordering ice cream and are not available without ordering ice cream. The program must ask customers if they want ice cream and then respond to the customer’s response. If the customers want ice cream, the machine must display the available condiments and their prices and ask customers if they want to include the available condiments in the order.

The cost of the ice cream is $4.00. The available condiments and their costs are as follows:

Chocolate Topping - $1.00

Sprinkles - $.0.50

Cherry - $0.50

Fruit Slice - $.40

Napkin - $0.00

 

Format of the program output from an order will be either:

You are getting ice cream

Condiments:

You are (or are not) getting chocolate topping - $#.## (or no cost if not ordered)

You are (or are not) getting sprinkles - $#.## (or no cost if not ordered)

.

.

 

The total cost of your order is $#.##

Or

You are not getting ice cream (this is displayed if a customer is not ordering ice cream)

Expert 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