exercise on class design level 1& level 2 |Assignment on class design with static counter - Level 1

preview_player
Показать описание
exercise on class design level 1 and level 2 |Assignment on class design with static counter - Level 1
Infosys springboard | object oriented programming using python drag and drop quiz

Exercise :

Jack (24 years old) and Jill (27 years old) are two employees working in a multi-national company. They draw salaries 30000 and 40000 respectively.

Identify the class name and attributes so as to represent Jack and Jill from the list given. Drag and drop the chosen class name and attributes into the appropriate section of the box shown below.
Exercise:20 min
A vehicle is identified by its mileage (in kms per litre) and fuel left (in litres) in the vehicle. From the fuel left, 5 litres will always be considered as reserve fuel. At any point of time, the driver of the vehicle may want to know:
the maximum distance that can be covered without using the reserve fuel
how many kms he/she has already travelled based on the initial fuel the vehicle had

Identify the class name and attributes so as to represent a vehicle from the information given above. Drag and drop the chosen class name, attributes and methods into the appropriate section of the box shown below.
Assignment:
Animal Welfare Trust is on a visit to the circus camp to have a look at the four talking parrots added to the camp.
A parrot is identified by its name and color. Apart from this, the trust has asked to assign a unique number for each parrot. The unique number should begin with 7001 and should be auto-incremented by 1 for every new parrot added to the camp.
Identify the class name and attributes so as to represent parrots from the list given. Drag and drop the chosen class name and attributes into the appropriate section of the box shown below.
Рекомендации по теме
visit shbcf.ru