Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. Restaurant Bill A fast-food vendor sells pizza slices ($1.75), fries ($2.00), and soft drinks ($1.25). Write a program to compute a customer's bill. The
2. Restaurant Bill A fast-food vendor sells pizza slices ($1.75), fries ($2.00), and soft drinks ($1.25). Write a program to compute a customer's bill. The program should request the quantity of each item ordered in a Sub procedure, calculate the total cost with a Function procedure, and use a Sub procedure to display an itemized bill. A sam- ple output is shown in Fig. 5.43. Restaurant Bill How many pizza slices? 3 How many fries? 4 Compute Total Cost How many soft drinks? 5 ITEM pizza slices fries soft drinks TOTAL QUANTITY 3 4 5 PRICE $5.25 $8.00 $6.25 $19.50 TI FIGURE 5.43 Possible outcome of Programming Project 2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started