☑Kizspy.me
K is calculated by the following formula:
•
At speed 60 (km/h) and the car can travel
5 km per kWh, K=5
At speed 60 (km/h), the car can travel 4
km per kWh, K=4
4 of 5
Zoom
Paper No: 1
Enter brand: Tesla
+100%
•
toString(): String- return a string format that
contains all the information of the ElectricCar:
brand, model, year, and batteryCapacity. The
brand is in uppercase format.
The program output might look something like this
Enter brand: Tesla
Close