Define a class Busmeter having the following description: Data members/instance variables int Busno - to store Bus number String name - to store passenger's name int km - to store number of kilometers travelled Member functions:A input() - to store Busno, name, km calculate() - to calculate bill for a customer according to given conditions kilometers travelled(km) Rate/km 1 km Rs 25 2 km to 6 Rs 10 Rs 15 Rs 20 6<km 12 12< km 18 >18 km Rs 25 display0-To display the details in the following format Busno Name Kilometers travelled Bill amount
Answers
Answered by
0
76jyoj8kjo 8nbjnjijyk
Answered by
0
Bro I didn't understand what you write there
Similar questions