Skip to content

Commit 41c93cd

Browse files
perform readme m1 020
1 parent 5a40198 commit 41c93cd

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

projects/m1/020-discount-table/README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
# Discount Table
22

3-
A particular retailer is having a 60 percent off sale on a variety of discontinued products.
4-
The retailer would like to help its customers determine the reduced price of the merchandise by having a printed discount table on the shelf that shows the original prices and the prices after the discount has been applied.
3+
A particular retailer is having a **60 percent off sale** on a variety of discontinued products.
4+
The retailer would like to help its customers determine the reduced price of the merchandise
5+
by having a printed discount table on the shelf that shows the original prices
6+
and the prices after the discount has been applied.
57

6-
Write a program that uses a loop to generate this table, showing the original price, the discount amount, and the new price for purchases of $4.95, $9.95, $14.95, $19.95 and $24.95.
7-
Ensure that the discount amounts and the new prices are rounded to 2 decimal places when they are displayed.
8+
Write a program that uses a loop to generate a table for $4.95, $9.95, $14.95, $19.95 and $24.95 that shows:
9+
- the original price
10+
- the discount amount
11+
- the new price for purchases
12+
13+
Ensure that the discount amounts and the new prices are **rounded to 2 decimal places** when they are displayed.
814

915
# Documentation
1016

0 commit comments

Comments
 (0)