Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem Statement: Write a program to calculate a customer's bill in the form of a receipt. Your company sells five different products: An HD TV,

image text in transcribed
Problem Statement: Write a program to calculate a customer's bill in the form of a receipt. Your company sells five different products: An HD TV, A Laptop Computer, an Xbox, an MP3 player and a 4G hot Spot. The unit prices are $232.40, $620.39, $230.21, $30.00, and $121.00 respectively. Your program should take the quantity sold of each item as input from the user, calculate the cost of the total gross sale and the amount of sales tax charged with a grand total. The state tax is 7.5%. These integers representing quantities must be input into the program in a user-friendly way; that is, the program must prompt the user for each quantity as shown below. The numbers in boldface show the user's answers. User Prompts with example input: How many HD Tv's were sold? 2 How many laptops were sold? 1 How many Xboxes were sold? 4 How many MP3 players were sold? 1 How many hot spots were sold? 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

More Books

Students also viewed these Databases questions

Question

1. Describe the types of power that effective leaders employ

Answered: 1 week ago