Asked by Thandi Manaka
A program is required to compute the cost of a car trip. The required input values are:
Litres per 100km
Distance travelled
Cost per litre of petrol
The output value is the total cost of the trip.
Litres per 100km
Distance travelled
Cost per litre of petrol
The output value is the total cost of the trip.
Answers
Answered by
oobleck
Just pay attention to the units:
km * L/km * $/L = $ (cost of trip)
km * L/km * $/L = $ (cost of trip)
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.