Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Because of the strange rules of the store 3 Items Only, every customer is required to purchase three items no more, no less. While unfriendly

Because of the strange rules of the store 3 Items Only, every customer is required to purchase three items no more, no less. While unfriendly for customers who need fewer or more than three items, it makes your job of writing a receipt generating program much easier! Write a program that asks the user to enter a description and price for three different items. When the user enters the description, that description should be used in the following cost prompt. The program should then print an itemized list of the three items (description and price), then a line, subtotal, sales tax percentage, and sales tax charge, and then the total for the purchase. Your program must include appropriately named variable declarations that are float initialized for the three prices, subtotal, tax, and total. There should also be variables that are string initialized for the item descriptions. Additionally, a named constant (TAX_RATE) must hold San Antonios sales tax rate of 8.25%, and the sales tax line in the receipt must use the named constant variable, not a static text string. Your output should be formatted EXACTLY like this: Enter the description of item #1: Cat Litter Enter the price of Cat Litter: 16.99 Enter the description of item #2: Dish Soap Enter the price of Dish Soap: 2.89 Enter the description of item #3: Snack Crackers Enter the price of Snack Crackers: 4.99 Cat Litter $ 16.99 Dish Soap $ 2.89 Snack Crackers $ 4.99 -------------------------------- Subtotal: $ 24.87 Sales Tax 8.25%: $ 2.05 -------------------------------- Total: $ 26.92

MUST BE IN PYTHON

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

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions

Question

List the characteristics of an effective HR strategy.

Answered: 1 week ago

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago