Question: need help please java - still first few weeks of class so beginner way please ) please read instructions Fine S69 50 $99.50 $129.50 $149.50

need help please
java - still first few weeks of class so beginner way please )
please read instructions
need help please java - still first few weeks of class so
beginner way please ) please read instructions Fine S69 50 $99.50 $129.50

Fine S69 50 $99.50 $129.50 $149.50 Assignment 3 (HAS TWO Questions/programs) Question 1 ( 60 points) Decision or Selection Structures and Loops (Decision Tree) The fines for Speeding in one of the counties in Florida is given in the following table. MPH Over Speed limit Less than 10 MPH Less than 20 MPH Less than 30 MPH Less than 35 MPH Greater than or equal to 35 MPH Court Mandatory - Fine decided in court If you speed in construction zone your fine is doubled. If you speed in school zone your fine is tripled. Write a JAVA program to calculate the speeding fine speedFineCalcFirstname called from main. The variables in the program should be named and should be input by the user: speed LimitFirstname //(Speed Limit of the zone as an int) speedFirstname // (Speed of the vehicle as an int) zoneFirstname // The acceptable values are Regular, School or Construction. If any other value is entered use a while loop to make sure that a valid input is entered. The program also should display the following message for each of the above cases as shown in the table below: Less than 10 MPH Slow down! Less than 20 MPH Drive with caution. Less than 10 MPH You are in danger zone. Less than 35 MPH You are over speeding Greater than or equal to 35 MPH See ya in court!! Display also should specify whether in School or construction zone or regular Your function should calculate the fine and should do the display. Function should not calculate any fine if the driver is driving within the speed limit and print a suitable message. (Following are examples which you can use for testing. Please do not code for these values. Program should be always general.) Fines should be calculated using an if-else if-else decision structure and make it more efficient by not repeating code as much as possible. Display Message should be displayed using a Switch - Case decision structure. For example your output should look like: Speed Limit: 45 Vehicle speed: 57 structure and make it more efficient by not repeating code as much as possible. Display Message should be displayed using a Switch - Case decision structure. For example your output should look like: Speed Limit: 45 Vehicle speed: 57 Zone: Regular Total Fine Calculated = $99.50 Display: "Drive with Caution.!" OR like: Speed Limit: 45 Vehicle speed: 67 Zone: Construction Total Fine Calculated = $259.00 Display: "You are in danger zone. !". OR like: Speed Limit: 45 Vehicle speed: 67 Zone: School Total Fine Calculated = $388.50 Display: You are in danger zone

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!