Task 4 - The Lucky Racer Game

Last Updated: Oct. 10, 2020 Please note that, focus of this task is not on single topic. It covers most of concepts you have learned so far. The most important point where I need you attention is, do not focus on meeting the functional requirements only, but also on where a specific code should be written, what fields should be allowed to be read by other objects and which ones should be kept private. So, take the object oriented design into account and develop using best approach as per best of your OOP understooding. Create AutomaticCar class that shall have private model, year, speed and gear attributes. Encapsulate complete state and expose the state for read/write (where it makes sense and needed). As its automatic car, so other shall not be able to update the gear attribute directly. The gear would auto change based on speed and other parameters (defined below). The speed range for different gears is (gear : speed-range) 0:0 1:1-100 2:101-200 3:201-300 4:301-400 5:401-5