Question: Write the code in C language and include trace of the code. One of the public transportation companies operating in Tirana wants to see the

Write the code in C language and include trace of the code. 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.
The ticket price changes according to the passenger categories as the follow:
1. Full ticket: 30 leke
2. Teacher ticket: 25.5 leke
3. Student ticket: 22.10 leke
4. Foreign student: free
5. Polis card: free
6. Elderly card: free
Input Specification: In the first line you will be given the number of all buses (n)0< n <=500 working
during the day and the fuel price (a floating-point number 0.00

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!