Question: Write a Java program to calculate the fee for photo-coping document. The program will read an integer number from the keyboard which is the number

Write a Java program to calculate the fee for photo-coping document. The program will read an integer number from the keyboard which is the number of photocopies to be produced. The program will also calculate the fee as follow:

- if the number of copies is less than 100, each copy costs $0.10

- if the number of copies is between 100 and 499 (inclusive), each copy costs $0.05

- if the number of copies is between 500 and 999 (inclusive), each copy costs $0.03

- if the number of copies is 1000 and above, each copy costs $0.01

Finally, the program will print the fee.

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!