Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Write a coding 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)
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

Advances In Database Technology Edbt 88 International Conference On Extending Database Technology Venice Italy March 14 18 1988 Proceedings Lncs 303

Authors: Joachim W. Schmidt ,Stefano Ceri ,Michele Missikoff

1988th Edition

3540190740, 978-3540190745

More Books

Students also viewed these Databases questions

Question

What are the types of forms of communication ?

Answered: 1 week ago

Question

Explain the process of MBO

Answered: 1 week ago