Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Discuss the various types of policies ?

Answered: 1 week ago

Question

Briefly explain the various types of leadership ?

Answered: 1 week ago

Question

Explain the need for and importance of co-ordination?

Answered: 1 week ago

Question

Explain the contribution of Peter F. Drucker to Management .

Answered: 1 week ago

Question

What are the purposes of collection messages? (Objective 5)

Answered: 1 week ago