Question: Write a program in C using at least two functions. One of the public transportation companies operating in Tirana wants to see the bus name

Write a program in C using at least two functions. One of the public transportation companies operating in Tirana wants to see the bus name which has the highest profit while calculating daily total profits. This company has n buses working during the day. Also, trace the code for the program that you made.
The ticket price changes according to the passenger categories as the follow:
Full ticket: 30 leke
Teacher ticket: 25.5 leke
Student ticket: 22.10 leke
Foreign student: free
Polis card: free
Elderly card: free
Input Specification: In the first line you will be given the number of all buses (n)) price (999.99"
 Write a program in C using at least two functions. One

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!