2023 For this assignment you will design a set of classes that work together to simulate a car 39 s fuel gauge | Assignment Collections

Computer Science 2023 Only For Java Programmer Or Computer Programming Expert.

2023 For this assignment you will design a set of classes that work together to simulate a car 39 s fuel gauge | Assignment Collections

For this assignment, you will design a set of classes that work together to simulate a

car's fuel gauge and odometer. The classes you will design are the following:

The FuelGauge Class: This class will simulate a fuel gauge. Its responsibilities are as

follows:

• To know the car’s current amount of fuel, in gallons.

• To report the car’s current amount of fuel, in gallons.

• To be able to increment the amount of fuel by 1 gallon. This simulates putting fuel in

the car. ( The car can hold a maximum of 15 gallons.)

• To be able to decrement the amount of fuel by 1 gallon, if the amount of fuel is greater

than 0 gallons. This simulates burning fuel as the car runs.

The Odometer Class: This class will simulate the car’s odometer. Its responsibilities are

as follows:

• To know the car’s current mileage.

• To report the car’s current mileage.

• To be able to increment the current mileage by 1 mile. The maximum mileage the

odometer can store is 999,999 miles. When this amount is exceeded, the odometer

resets the current mileage to 0.

• To be able to work with a FuelGauge object. It should decrease the FuelGauge

object’s current amount of fuel by 1 gallon for every 24 miles traveled. ( The car’s fuel

economy is 24 miles per gallon.)

Demonstrate the classes by creating instances of each. Simulate filling the car up with

fuel, and then run a loop that increments the odometer until the car runs out of fuel.

During each loop iteration, print the car’s current mileage and amount of fuel. 

Most important things to be done for the assignment.

* Proper Validation should be done for the code. For example: asking the user for

entering the number between (0-12) and user typed mistakely 13 or -1 then code

should not be collapsed or error.

1. Need to have proper design ( UML with Flowchart) with Dia app. Flowchart should be drawn  for each method in UML.

2. Proper comments.

3.Proper doc-string describing  each method in code.

4.Proper Documentation should be for the code.

5. with code the UML and flowcart should be matched.

 

We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.

Place Order Now

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational