Question: Create a java application calculating the service fee for house cleaning service. The fee is calculated based on house size and the number of services

Create a java application calculating the service fee for house cleaning service. The fee is calculated based on house size and the number of services per week.
1) Name your application in this manner: ForLoopE2YourName. For example, ForLoopE2DonKim.java. (5 points)
2) Declare a Scanner and obtain house size and the number of service per week from the user.
Use double type variable for house size and integer type of the number of service per month. (10 points)
Print this message: "Please enter your house square feet" before asking house size.
Print this message: "How many cleaning service do you want? " before asking the number of service per month.
3) Display the following messages (10 points)
Display "The number of serviceFee", a tab (\t) between The number of service and Fee.Display "----------------------------------------------"
4) Use a for loop to calculate the cleaning service fee. (60 points)
In the loop, display the number of service per month and the service fee.
Service fee = house size * the number of service
Use printf to display them use a tab (\t) between (\t) between The number of service and Fee.
For example, service fee is $2,000 if house size is 1,000 and the number of service is 2.
5) Copy and paster your code from Eclipse to the textbox below
Example of output
Please enter your house square feet
2000
How many cleaning service do you want?
6
The number of service Fee
-----------------------------------
1$2,000.00
2$4,000.00
3$6,000.00
4$8,000.00
5$10,000.00
6 $12,000.00
* Numbers in green are keyboard inputs.

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 Programming Questions!