Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Filename: assign3-10.py A shop will give a discount of 10% if the total cost of the purchase is more than $800. Each item in

image text in transcribed

2. Filename: assign3-10.py A shop will give a discount of 10% if the total cost of the purchase is more than $800. Each item in the store costs $100. Write a program to ask the user to enter the number of purchases, and print the total cost for the user. The program should only accept numeric inputs. For non-numeric inputs, display a message. Input: a) python C:\Users eda\Data Programming\M3\assign3-10.py 7 b) python c:\Users eda\DataProgramming\3\assign3-10.py 12 c) python c:\Users eda\DataProgramming\3\assign3-10.py nine Output: a) No discount. Your total cost is $700. b) You get a discount of $120, and your total cost is $1080. c) Please enter a numeric input

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

Concepts Of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

4th Edition

0619064625, 978-0619064624

More Books

Students also viewed these Databases questions

Question

The parallax angle of a star is 0.00029. How far away is the star?

Answered: 1 week ago

Question

What is American Polity and Governance ?

Answered: 1 week ago

Question

What is Constitution, Political System and Public Policy? In India

Answered: 1 week ago