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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!