Question: Wrjava ite a program that reads the price And the production date (month and year of an item) then prints the price after applying the
Wrjava
ite a program that reads the price And the production date (month and year of an item) then prints the price after applying the discount rate which equals to:
- 50% if it is produced before 2021.
- 30% if it is produced in 2021 but before the 4th month.
- 10% if it is produced after 4,2021and before 7,2021
- Otherwise, No discount is calculated.
Lab 3 Write a program that reads the price And the production date (month and year of an item) then prints the price after applying the discount rate which equals to: 50% if it is produced before 2021. 30% if it is produced in 2021 but before the 4th month. 10% if it is produced after 4,2021 and before 7,2021 Otherwise, No discount is calculated
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
