Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Python ! Question 2: Write a program that computes how much a customer has to pay after purchasing two items The price is calculated

In Python !

image text in transcribedimage text in transcribed

Question 2: Write a program that computes how much a customer has to pay after purchasing two items The price is calculated according to the following rules: Buy one get one half off promotion: the lower price item is half price. If the customer is club card member, additional 10% off. Tax is added Inputs to the program include: Two items' prices Have club card or not (User enters 'Y' or 'Y' for "yes"; 'N' or 'n' for "no") Tax rate (User enters the percentage as a number; for example they enter 8.25 if the tax rate is 8.25%) Program displays: Base price-the price before the discounts and taxes Price after discounts-the price after the buy one get one half off promotion and the member's discount, if applicable Total price the amount of money the customer has to pay (after tax) printed with precision of at most 2 decimal digits

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

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions

Question

Prepare and properly label figures and tables for written reports.

Answered: 1 week ago