Answered step by step
Verified Expert Solution
Link Copied!

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 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"
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Answer the question in Prob. 11 for rolling 3 dice.

Answered: 1 week ago

Question

Explain walter's model of dividend policy.

Answered: 1 week ago

Question

Ensure continued excellence in people management.

Answered: 1 week ago

Question

Enhance the international team by recruiting the best people.

Answered: 1 week ago