Question: Programming Exercise 3-10 Instructions JobPricing.java 1 import java.util.Scanner; 2 class JobPricing Herbert's Home Repair estimates each job cost as the cost of materials plus $35

 Programming Exercise 3-10 Instructions JobPricing.java 1 import java.util.Scanner; 2 class JobPricing

Programming Exercise 3-10 Instructions JobPricing.java 1 import java.util.Scanner; 2 class JobPricing Herbert's Home Repair estimates each job cost as the cost of materials plus $35 per hour while on the job, plus $12 per hour for travel time to the job site public static void main(String[] args) hil 4 String description; double materials; double hoursOnJob; double hoursTraveling; double price; Scanner input new Scanner(System.in); System.out.print("Enter job description "); descriptioninput.nextLine); System.out.print("Enter cost of materials> "); materialsinput.nextDouble); System.out.print("Enter hours on the job work >> ") hoursOnJob input.nextDouble) System.out.print("Enter hours traveling >>"); hoursTraveling -input.nextDouble); price computePrice(naterials, hoursOnJob, hoursTraveling); System.out.println("The price for "+description + The main() method prompts the user for the name of a job (for example, Smith bathroom remodel), the cost of materials, the number of hours of work required, and the number of hours travel time 10 Pass the numeric data to a method that computes an estimate for the job and returns the computed value to the main() method which displays the job name and estimated price 12 13 14 15 16 17 18 GRADING "is $"price) 20 21 Write your Java code in the coding area on the right. Use the Run Code button to execute and run the code and the Test button to run a series of pre-configured tests against your project. 23 public static double computePrice(double materials, double hours, double travel) 24 25 26 // Write your code here Once you are happy with the test results, click Grade to submit your project for grading

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!