Computer Science, asked by kazistudenstads, 7 hours ago

The fare of a train ticket is calculated as the traffic ginen below: Distance Rate first 10km Rs. 50 Next 20 km Rs.5/km Next 20 km Rs.7 km More than 50km Rs. 10 m aberite a program to input the train number and distance covered by the train, calculate the amount to be spaid by the land the ticket the passenger display​

Answers

Answered by dchakradhari55
0

Answer:

converting the given data into equations,

x+10y=68

x+15y=98

solving the above two equations, we get,

x=8

y=6

Therefore,

fixed charge is 8

rate per km is 6

Similar questions