For this assignment, you will create a Dashboard class that hasa speedometer, an odometer, and a check engine light.
In previous assignments, you had to name the class “Main”, forthis assignment you will need to name the class “Dashboard”. Pleasedownload the template Dashboard.java (Links to an externalsite.)Links to an external site. and add the following constructorsand methods.
Constructors
Dashboard() – this is like getting a brand new car! It’s notmoving and has no miles on it, so both odometer and speedometershould be set to zero. The check engine light should be off.
Dashboard(int milesTravelled, int speed) – If milesTravelled isbetween 0 and 99999 (inclusive),
PayPal Gateway not configured
PayPal Gateway not configured