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
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)
Step by step
Solved in 2 steps with 1 images