@@ -15,38 +15,38 @@ You have six tasks, each of which will work with remote controlled car instances
1515
1616## 1. Buy a brand-new remote controlled car
1717
18- Implement the (_ static_ ) ` ElonsToyCar .buy()` method to return a brand-new remote controlled car instance:
18+ Implement the (_ static_ ) ` JedliksToyCar .buy()` method to return a brand-new remote controlled car instance:
1919
2020``` java
21- ElonsToyCar car = ElonsToyCar . buy();
21+ JedliksToyCar car = JedliksToyCar . buy();
2222```
2323
2424## 2. Display the distance driven
2525
26- Implement the ` ElonsToyCar .distanceDisplay()` method to return the distance as displayed on the LED display:
26+ Implement the ` JedliksToyCar .distanceDisplay()` method to return the distance as displayed on the LED display:
2727
2828``` java
29- ElonsToyCar car = ElonsToyCar . buy();
29+ JedliksToyCar car = JedliksToyCar . buy();
3030car. distanceDisplay();
3131// => "Driven 0 meters"
3232```
3333
3434## 3. Display the battery percentage
3535
36- Implement the ` ElonsToyCar .batteryDisplay()` method to return the battery percentage as displayed on the LED display:
36+ Implement the ` JedliksToyCar .batteryDisplay()` method to return the battery percentage as displayed on the LED display:
3737
3838``` java
39- ElonsToyCar car = ElonsToyCar . buy();
39+ JedliksToyCar car = JedliksToyCar . buy();
4040car. batteryDisplay();
4141// => "Battery at 100%"
4242```
4343
4444## 4. Update the number of meters driven when driving
4545
46- Implement the ` ElonsToyCar .drive()` method that updates the number of meters driven:
46+ Implement the ` JedliksToyCar .drive()` method that updates the number of meters driven:
4747
4848``` java
49- ElonsToyCar car = ElonsToyCar . buy();
49+ JedliksToyCar car = JedliksToyCar . buy();
5050car. drive();
5151car. drive();
5252car. distanceDisplay();
@@ -55,10 +55,10 @@ car.distanceDisplay();
5555
5656## 5. Update the battery percentage when driving
5757
58- Update the ` ElonsToyCar .drive()` method to update the battery percentage:
58+ Update the ` JedliksToyCar .drive()` method to update the battery percentage:
5959
6060``` java
61- ElonsToyCar car = ElonsToyCar . buy();
61+ JedliksToyCar car = JedliksToyCar . buy();
6262car. drive();
6363car. drive();
6464car. batteryDisplay();
@@ -67,10 +67,10 @@ car.batteryDisplay();
6767
6868## 6. Prevent driving when the battery is drained
6969
70- Update the ` ElonsToyCar .drive()` method to not increase the distance driven nor decrease the battery percentage when the battery is drained (at 0%):
70+ Update the ` JedliksToyCar .drive()` method to not increase the distance driven nor decrease the battery percentage when the battery is drained (at 0%):
7171
7272``` java
73- ElonsToyCar car = ElonsToyCar . buy();
73+ JedliksToyCar car = JedliksToyCar . buy();
7474
7575// Drain the battery
7676// ...
0 commit comments