# Information Systems Assignment | College Homework Help

Final Project

Don't use plagiarized sources. Get Your Assignment on
Information Systems Assignment | College Homework Help
Just from \$13/Page

Implement a class Car with the following properties. A car has a certain fuel efficiency (measured in miles/gallon) and a certain amount of fuel in the gas tank. The efficiency is specified in the constructor, and the initial fuel level is 0.

The following two lines are written in a File called FuelEffic.txt (you have to read these from the .txt file) Miles per gallon: 20

Tank Size (in gallons): 25

Therefore, based on these the Car should be able to drive 20 x 25 = 500 miles.

Supply a method called Drive that simulates driving the car for a certain distance, reducing the fuel level in the gas tank, and methods getGasLevel, to return the current fuel level, and addGas, to tank up.

Sample usage:

myHybrid = Car(20) # 20 miles per gallon myHybrid.drive(100) # Drive 100 miles print(myHybrid.getGasLevel()) # Print fuel remaining myHybrid.addGas(9) # Add 9 gallons

Sample Scenario:

We know our car can drive 500 miles. If I use the myHybrid.drive(100)

function, it means Drive the Car

100 miles.

print(myHybrid.getGasLevel()) should Print the fuel remaining. How do you get that ?

500 (Car Max. miles ) – 100 (the miles you drove) = 400 (Car Max miles now) / 20 (Miles per gallon)

= 20 gallons remaining

If we call myHybrid.addGas(9) , i.e. Add 9 gallons – it should only add 5 gallons (as 20 is already in the tank and tank size is 25 gallons). On the other hand, If we call myHybrid.addGas(3), it should be fine. If tank is full and you try to add Gas, it should not add gas.

Note: You have to keep track of the variables, etc. (I am not telling you. Figure out how and which variables to keep yourself), and give appropriate messages.

Program Behavior

When the program starts User should see Miles per gallon: 20

Tank Size (in gallons): 25

(Note: these values are read from the file and are NOT hard-coded)

Then the program should show the MAIN MENU and ask the user what to do

What would you like to do:

1. See Current Fuel Level

2. Drive

4. Exit

If user inputs 1, program displays Current Fuel Level and returns to MAIN MENU

The program also writes/appends the user input and associated result to a log file called LogFuel.txt

If user inputs 2, program asks How many miles to Drive:

Let’s say user inputs 100. Program displays

You drove 100 miles. You can drive another 400 miles on this gas.

The program also writes/appends the user input and associated result to a log file called LogFuel.txt

Give the appropriate message, i.e. whether gas was added and how much.

The program also writes/appends the user input and associated result to a log file called LogFuel.txt

If user inputs 4, program exits

LogFuel.txt may look like the following

User Input: 1 – See Current Fuel Level Fuel level shown: 25 gallons

User Input: 2 – Drive

Miles to Drive: 100

User Input: 1 – See Current Fuel Level Fuel level shown: 20 gallons

User Input: 4 – Exit

Final Note: Do all Error Handling, e.g. not allowing to drive more miles than current maximum, not allowing to fill in more gas, etc. Get Information System homework help today

Calculate the price
Pages (550 words)
\$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with Homework Writing Services
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
Testimonials
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
Military
very good job
Customer 456821, June 15th, 2022
English 101
Good work.
Customer 453625, May 25th, 2022
English 101
Excellent work.
Customer 460547, April 5th, 2022
English 101
TEST
Customer 463149, July 12th, 2022
Law
Commendable.
Customer 456823, April 29th, 2022
Communications
Nice. Be keen on instructions.
Customer 462787, April 1st, 2022
Thank you for following all instructions. Good piece
Customer 463337, March 1st, 2023
Good work.
Customer 458115, April 27th, 2022
SEO
I am glad you did the corrections properly. Good work.
Customer 463679, February 9th, 2023
Health Care
It is exactly my expectation. Thank you.
Customer 454755, June 30th, 2020
Other
Customer 462815, April 6th, 2022
Psychology
Good discussion.
Customer 462359, April 4th, 2022
11,595
Customer reviews in total
96%
Current satisfaction rate
3 pages
Average paper length
37%
Customers referred by a friend