Question 2 Write a Python program to calculate the discount on an amount: If the entered amount is <= 100 OMR, print "discount is 5%", else print "discount is 10%".
Added by Jose Ignacio G.
Step 1
First, we need to take input from the user for the amount. Show more…
Show all steps
Your feedback will help us improve your experience
Akash M and 93 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write a Pseudocode for the given problem: Read the bill amount from the customer. If the bill amount is above 50 OMR, the discount will be calculated as 10% of the bill amount. Otherwise, the discount is 5% of the bill. Display the final bill amount after the discount.
Mohan J.
Supreeta N.
Write a PYTHON program to calculate the bill amount for an item given its quantity sold, value, discount, and tax. The user is to enter these: Enter the quantity of items sold: Enter the value of the item: Enter the discount percentage: Enter the tax: Formulas: amount = quantity X value discount amount = amount X discount/100 subtotal = amount - discount amount tax amount = subtotal X tax/100 total amount = subtotal + tax amount The output should look like this: >>> Enter the quantity of items sold: 80 Enter the value of the item: 100 Enter the discount percentage: 10 Enter the tax: 14 *********BILL********** Quantity sold: 80.00 Price per item: 100.00 ----------------- Amount: 8,000.00 Discount: - 800.00 ----------------- Discounted Total: 7,200.00 Tax: + 1,008.00 ----------------- Total amount to be paid: $ 8,208.00 >>>
Madhur L.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD