PLEASE any body can help me to solve this proplem??
it is my assignment i wrote the ADT and the main function , but the function i'm not sure about them (the function inside the class)
i'll write the proplem and i want somebody explain it to me
this is the proplem
a car is a vehicle that we use on daily basis to commute from one place to another. some of its main operations that makes it usable are:start,drive,stop,fill tank,and service. before we can drive the car we need to start it, we then drive it for a a certain distance and stop.
the car consumes petrol, engine oil, water and many other consumables while it is operating. therefore, we need to go to the petrol station to replenish fuel, and the more we drive the more fuel is consumed. periodically we need to service the car to replenish water and engine oil levels.
it is required from you to develop a data type for a car that has the main functions to start, drive, stope, fill tank, and service. the data members must at least include fuel, engine oil, and water. write a menu driven program that uses your car class to demonstrate its functionality.