Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

should be displayed No suficient the efficiency of the petrol cara mured in our measured in ottimet Assume that distances are in meer Car Electric

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
should be displayed "No suficient the efficiency of the petrol cara mured in our measured in ottimet Assume that distances are in meer Car Electric Car Petrol Car 3:30 PM Car Electric Car Petrol Car According to this description and the concepts of OOP do the following D D ASUS VivoBook 3:30 PM c. efficiency form aiciency of 07 the return the Toyota Write av program that displays can information and the cost of the Common has manufacture, model number and consumption efficiency. There are two type of com lectric car and petrol car. An electric car specifies the battery level and the moved distance while the petrol car specifies the fuel level and the moved distance. The cost of the consumption is the consumed petrol or electricity times the cost of 1 gallon of petrol or kilowatt of electricity. The cost of 1 gallon of petrol is OMR 0.985, while the cost of 1 kilowatt of electricity is OMR 0.03. The consumption is the efficiency times the moved distance. If the consumption is more than the battery level or fuel level then a message should be displayed "No Sufficient Fuel" or "No Sufficient Battery. The consumption efficiency of the petrol car is measured in gallon/kilometer while for the electric car is measured in kilowatt/kilometer. Assume that distances are in kilometers. Car 4 Electric Car Petrol Car 3:30 PM we were for the electric cars measured in kilowatt/kilometer. Assume that distances are in kilometers. Car Electric Car Petrol Car According to this description and the concepts of OOP, do the following: (9.5 points) Write the code for the class Electric Car which has Variables to store electric car information as described above II. A constructor with parameters to initialize electric car information ult. A method to calculate the cost of the consumption IV. A method to return electric car information as follows: Electric Car: manufacture (model number)-consumption efficiency KWH/KM, Battery Level (the battery level of the can Travelled Distance (the travelled distance) - --> cost: OMR cost of the consumption. For example, for Toyota as manufacture and Eases as Model, efficiency of 0.07. battery level 100.65 and distance of 250, the return value should be Electric Car: Toyota (Eases)-0.07 KWH/KM, Battery Level (100.65) Travelled Distance (250.0) --> cost: OMR 0.525. Please solve it quickly should be displayed "No suficient the efficiency of the petrol cara mured in our measured in ottimet Assume that distances are in meer Car Electric Car Petrol Car 3:30 PM Car Electric Car Petrol Car According to this description and the concepts of OOP do the following D D ASUS VivoBook 3:30 PM c. efficiency form aiciency of 07 the return the Toyota Write av program that displays can information and the cost of the Common has manufacture, model number and consumption efficiency. There are two type of com lectric car and petrol car. An electric car specifies the battery level and the moved distance while the petrol car specifies the fuel level and the moved distance. The cost of the consumption is the consumed petrol or electricity times the cost of 1 gallon of petrol or kilowatt of electricity. The cost of 1 gallon of petrol is OMR 0.985, while the cost of 1 kilowatt of electricity is OMR 0.03. The consumption is the efficiency times the moved distance. If the consumption is more than the battery level or fuel level then a message should be displayed "No Sufficient Fuel" or "No Sufficient Battery. The consumption efficiency of the petrol car is measured in gallon/kilometer while for the electric car is measured in kilowatt/kilometer. Assume that distances are in kilometers. Car 4 Electric Car Petrol Car 3:30 PM we were for the electric cars measured in kilowatt/kilometer. Assume that distances are in kilometers. Car Electric Car Petrol Car According to this description and the concepts of OOP, do the following: (9.5 points) Write the code for the class Electric Car which has Variables to store electric car information as described above II. A constructor with parameters to initialize electric car information ult. A method to calculate the cost of the consumption IV. A method to return electric car information as follows: Electric Car: manufacture (model number)-consumption efficiency KWH/KM, Battery Level (the battery level of the can Travelled Distance (the travelled distance) - --> cost: OMR cost of the consumption. For example, for Toyota as manufacture and Eases as Model, efficiency of 0.07. battery level 100.65 and distance of 250, the return value should be Electric Car: Toyota (Eases)-0.07 KWH/KM, Battery Level (100.65) Travelled Distance (250.0) --> cost: OMR 0.525. Please solve it quickly

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

More Books

Students also viewed these Databases questions

Question

List out some inventory management techniques.

Answered: 1 week ago