Question
please write in C (TR) Bir benzin istasyonunda 3 trde yakt sat yaplmaktadr. Yakt alan baz mteriler de promosyon olarak cretsiz ara ykatabilmektedirler. Gn Sonunda
please write in C
(TR)
Bir benzin istasyonunda 3 trde yakt sat yaplmaktadr. Yakt alan baz mteriler de promosyon olarak cretsiz ara ykatabilmektedirler. Gn Sonunda benzin istasyonunun kazand para, ara bana ortalama ne kadar para kazanldn ve ykanan ara saysn hesaplayan program C Dilinde yaznz.
Not: Benzin stasyonun sahibi Dizel, Benzin ve LPG trndeki yaktlarn litre fiyatlarn sisteme kendisi girmektedir. Yakt Fiyatlar matris olan bir dizide tutulacaktr.
Mteriler dolum sonras kasaya, adn soyadn, ka litre yakt aldn, yakt trn sylemektedir. a-Mterilerin ne kadar para demesi gerektiini, b-Gn sonu ara bana kazanlan ortalama para, c-Toplam kazanlan para, d-cretsiz ykanan ara saysn, geriye deer dndren 4 ayr fonksiyon vermelidir. Kasadaki kii gn bitir diyene kadar mteriler deme yapabilecektir.
(EN)
Three types of fuel are sold at a gas station. Some customers who buy fuel can also have a free car wash as a promotion. Write the program that calculates the money earned by the gas station at the end of the day, the average amount of money per vehicle and the number of washed vehicles in Language C.
Note: The owner of the Gas Station enters the liter prices of Diesel, Gasoline and LPG fuels into the system. Fuel Prices will be kept in a matrix array.
After filling, customers tell the case, name and surname, how many liters of fuel they have taken, and the type of fuel. a-How much money the customers have to pay, b-Average money earned per vehicle at the end of the day, c-Total money earned, d-The number of free washed vehicles, It should give 4 separate functions that return values. Customers will be able to pay until the person at the cashier says the day is over.
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