C++ program to calculate bus fares and allow input for the distance and return their corresponding fares | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

C++ program to calculate bus fares and allow input for the distance and return their corresponding fares

Opanyin Arthur Transport Company (GH) Ltd. uses a sliding scale to calculate fares for passengers who travel with them on their long distance buses. The scale is as follows A fixed amount of GHc 1000 is paid by all passengers. The first 60 kilometers is free The next 80 kilometers attract GHc 200 each The next 110 kilometers attract GHc175 each Any excess kilometers over 250 kilometers attract GHc100

12th Dec 2022, 5:57 AM
Ridwan Ola
1 Answer
0
If you don't know where to start, I would suggest to make this program as a proof of concept in a language that your more familiar with as you have already defined the problem above. No on here is going to make this program for you.
17th Dec 2022, 6:42 PM
rafalzacher1