Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 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: leke
Teacher ticket: leke
Student ticket: 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started