Please write me a C++ program that will calculate how many miles per gallon a car gets. I want my odo meter reading at a certain point when my tank is full and then the next time I fill my tank.please note the current odometer reading and how many gallons I added. Please use functions for input and output and to determine the miles per gallon. Also let one function pass variable by refrence and use preconditions and postconditions in the function definitions.
when do you need this code?
I need this code now
It will take little time.....but first i would like to know few things:Every time there should be fresh start of the code or you need the older readings as well??You said to pass variable by reference i.e. to pass the pointer am i right??and it will be helpfull if you provide whatever is required......exactly
yes you are right.
will i be able to get this code today
I am done with your codePlease click herePlease find file attached.It contains a "rar" file with .rar extension which can be unzipped using "winrar" or "winzip" application.Inside it there is a file with name "program.cpp" thats the main coded file in C++.
BE CS, 4+ Experience in Programming and Database (ERP)