Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

DONE IN PYTHON PLEASE PROBLEM BACKGROUND: The Maripot Carpet Store has asked you to write a computer program to calculate the amount a customer should

DONE IN PYTHON PLEASE

image text in transcribed

PROBLEM BACKGROUND: The Maripot Carpet Store has asked you to write a computer program to calculate the amount a customer should be charged. The president of the company has given you the following information to help in writing the program. The carpet charge is equal to the number of square yards purchased times the carpet cost per square yard. The labor cost is equal to the number of square yards purchased times the labor cost per square yard. A fixed service fee for floor preparation is added to some customers' bills. Large-volume customers are given a percentage discount---but the discount applics only to the carpet charge, not the labor costs. All customers are charged 9.75% sales tax on the carpet: there is no sales tax on the labor cost. (Store the sales tax as a symbolic constant in your program.) Write the program and use it to produce bills for customers 1, 2, 3, and 4. (Fach run of the program produces one customer's bill.) Customer Sq.Yardls Purchasexi Cosi per Sy. Yard Latur per Sq.Yardt Prep Cost Discount 1 17 18.50 3.50 38.50 0.02 2 40 24.95 2.95 0.00 0.14 3 23 16.80 3.25 57.95 0.00 4 26 21.25 0.00 80.00 0.00 OUTPUT SAMPLE: Running your program with the clata for customer 1 should produce the following output. Use this precise format (ie, spacing, punctuation, and wording) in your program for all the customer reports (Text in green depicts text you enter, text in blue represents output from your program; text in bold blue is what will be scrutinized for grading). (Note: this output for customer 1 is guaranteed to be correct). $ python3 carpet.PY Enter nunber of square yards purchasedi 17 Enter cost per square yard: $18.50 Bater cost of labor per square yard: $3.50 Enter for preparation cost: $38.50 Enter cuetoner discount rate: 0.02 Square yards purebasedi 17 Cost per square yard: $ 18.50 Labor per square and $ 3.50 Ploor preparation costi s 38.50 Cost for carpet $ 314.50 Cost for labox: $ 98.00 Discount on carpet $ $ 6.29 Tax on crepeti 5 30.05 Charge to customer $ 436.26

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

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago