Provide appropriate instruction to the user for input values


Problem

Use Eclipse for this assignment and provide screenshot of the screen

Create Java class that implements the following:

You are driving a little too fast, and a police officer stops you. Write code to compute the result, encoded as an int value: 0=no ticket, 1=small ticket, 2=big ticket. If speed is 60 or less, the result is 0. If speed is between 61 and 80 inclusive, the result is 1. If speed is 81 or more, the result is 2. Unless it is your birthday -- on that day, your speed can be 5 higher in all cases.

• Declare appropriate variables.
• Display a short message informing the user about the purpose of this class.
• Provide appropriate instructions to the user for input values
• Display the result based on the resulting int value.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Provide appropriate instruction to the user for input values
Reference No:- TGS03323551

Expected delivery within 24 Hours