Write a program that prompts the capacity, in gallons, of an automobile fuel tank and the miles per gallon the automobile can be driven.  The program outputs the number of miles the automobile can be driven without refueling
jwenting commented: hopeless homework kiddo -3

Recommended Answers

We don't do people's homework here. If you need help in solving this problem, you have to start by showing us what you have done so far and where exactly you hit a snag. In other words, you need to show that you've made efforts to solve it before anyone …

Jump to Post

All 2 Replies

We don't do people's homework here. If you need help in solving this problem, you have to start by showing us what you have done so far and where exactly you hit a snag. In other words, you need to show that you've made efforts to solve it before anyone will consider helping you.

What the mod said.

However, I'll give a hint.
If you're having trouble figuring out how to calculate the output, this is a simple unitary method problem.

For further help, you'll have to show some work first.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.