0

I am a beginning programming student and was stumped on one of my programs. I really don't know where to begin on this one. I have to develop a MC++ program that will input the miles driven and gallons used (both as ints) for each tankful of gas. the program should calculate and display the miles per gallon obtained for each tankful and print the combined miles per gallon obtained. all average calculations hould produce floating-point results. I must use a sentinel value to determin when the user is finished entering input...

Any help on getting started would be awesome!!!

3
Contributors
2
Replies
3
Views
12 Years
Discussion Span
Last Post by Dave Sinkula
0

This is a section for posting complete and detailed tutorials regarding the C / C++ language.

This is not the place to post questions regarding the framework and design of the source code of your potential program. Rather, direct all questions regarding any errors or problems you may be having here.

Edit: Post has been moved.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.