The program will prompt the user for various pieces of information about the desired breakfast. The required information is described below.

computer science

Description

In this assignment, you will write a complete program in Python that computes the cost of breakfast at the Good Morning America! restaurant. Your program is expected to prompt the user for input and validate it before computing the results. Your program will make use of expressions, decisions, and input/output in Python.

Functional Specifications: 

1. The program will prompt the user for various pieces of information about the desired breakfast. The required information is described below. Some of the information is dependent on the type of breakfast being ordered. Once all the information has been entered, the program will compute and display the amount of money (including tax) charged for the customer’s breakfast. 


2. The customer can build a custom breakfast from the following individual food and beverage items: egg ($0.99 each), bacon ($0.49 per strip), sausage ($1.49 each), hash brown ($1.19 each), toast ($0.79 per slice), coffee ($1.09 per cup), and tea ($0.89 per tea bag). For example, the customer can order two eggs with two toasts and a cup of coffee.


3. Alternatively, the customer can order a small, regular, or big breakfast: 

a. The small breakfast includes one egg, one hash brown, two slices of toast, two strips of bacon, and one sausage. 

b. The regular breakfast includes two eggs, one hash brown and two slices of toast, four strips of bacon, and two sausages.


Related Questions in computer science category