In Java Create a script that can:
Create an ElectricCar class
You will also need an Odometer class and a BatteryLevel class
Assume your electric car can travel 300 miles on fully charged batteries.
Assume that your BatteryLevel will be at 100 when the batteries are fully charged and at 0 when fully discharged.
Your batteryLevel will drop by 1 with every three miles traveled so use your odometer reading to update your batteryLevel.
Use a loop to drive your car