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.

Answers

Answered by oobleck
Just pay attention to the units:
km * L/km * $/L = $ (cost of trip)
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions