Question: write it in JavaProgram A grocery shop has special promotion for their guests as a New Year gift. The promotion is based on how much
write it in JavaProgram
A grocery shop has special promotion for their guests as a New Year gift. The promotion is based on how much customer buy the products. The conditions are listed below:
Discount 2$ if bought between 5$ to 30$
Discount 3% if bought from 30$ and less than 80$
Discount 7% if bought from 80$ and less than 150$
Discount 12% if bought from 150$ and less than 300$
Discount 25% if bought from 300$ and above
Write a program to calculate how much money a customer needed to pay due to given amount of buy (cost).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
