Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A shop will give a discount of 1 0 % if the total cost of the purchase is more than $ 8 0 0 .
A shop will give a discount of if the total cost of the purchase is more than $ Each item in the store costs $ 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 nonnumeric inputs, display a message.
Input:
a python C:Users
edaDataProgramming M
assignpy
Output:
a No discount. Your total cost is $
b You get a discount of $ and your total cost is $
c Please enter a numeric input.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started