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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started