Question

Malcolm Movers charges a base rate of $200 per move plus $150 per hour and $2...

Malcolm Movers charges a base rate of $200 per move plus $150 per hour and $2 per mile. Write a program named MoveEstimator that prompts a user for and accepts estimates for the number of hours for a job and the number of miles involved in the move and displays the total moving fee. For example, if 25 hours and 55 miles are input the output would be displayed as: For a move taking 25 hours and going 55 miles the estimate is $4,060.00 The input is 99 and 55 the answer must display as $4060.00

Homework Answers

Answer #1

import java.util.Scanner;

public class MoveEstimator {
public static void main(String[] args) {
   int total=0;
   Scanner sc = new Scanner(System.in);
   System.out.println("Enter number of hours for movie: ");
   int hours=sc.nextInt();
   System.out.println("Enter number of mile involed in Movie");
   int miles=sc.nextInt();
   total=200; // adding base price;
   total=total+hours*150; //adding the price hours. where each hour takes 150$
   total=total+miles*2; //adding the price miles. where each mile takes 2$
   System.out.println("Total: $"+total);
}
}

Note : If you like my answer please rate and help me it is very Imp for me

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
College Hunks Movers’ charges $90 plus $25 per hour to move the average student out of...
College Hunks Movers’ charges $90 plus $25 per hour to move the average student out of the off-campus housing at University of Maryland. ‘Two Men and a Truck Movers’ charges $40 per hour for the same move. What length of time does it cost less to hire College Hunks Movers over Two Men and a Truck Movers? Show a test case to prove your findings.
In c++ format please Bank Charges A bank charges $10 per month plus the following check...
In c++ format please Bank Charges A bank charges $10 per month plus the following check fees for a commercial checking account: $.10 each for fewer than 20 checks $.08 each for 20–39 checks $.06 each for 40–59 checks $.04 each for 60 or more checks The bank also charges an extra $15 if the balance of the account falls below $400 (before any check fees are applied). Write a program that asks for the beginning balance and the number...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how the firms resources incompetencies support the given pressures regarding costs and local responsiveness. Describe entry modes have they usually used, and whether they are appropriate for the given strategy. Any key issues in their global strategy? casestudy: Atlanta, June 17, 2014. Sea of Delta employees and their families swarmed between food trucks, amusement park booths, and entertainment venues that were scattered throughout what would...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT