For this assignment, you will create a Dashboard class that hasa speedometer, an odometer, and a check engine light. In previousassignments, you had to name the class “Main”, for this assignmentyou will need to name the class “Dashboard”. Please download thetemplate Dashboard.java (Links to an external site.)Links to anexternal site. and add the following constructors and methods.
Constructors Dashboard() – this is like getting a brand new car!It’s not moving and has no miles on it, so both odometer andspeedometer should be set to zero. The check engine light should beoff.
Dashboard(int milesTravelled, int speed) – If milesTravelled isbetween 0 and 99999
PayPal Gateway not configured
PayPal Gateway not configured