Write a program to compute and print the number of miles a car has travelled during 2013 and compute the average litre comsumption per mile. the program shouls ask for daily number of miles, also give its output the total amount spent on petrol for the year.
nkwaga
0
Newbie Poster
Recommended Answers
Jump to PostAlso, there are a few problems with this idea in general, you are not able, from just the number of miles the car has travelled during 2013 ascertain the amount of fuel it has used, the average fuel consumption, and the amount spent on petrol.
If you know the amount …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.