Computer Science, asked by irenerebeccamaria72, 3 months ago

Define a class Taximeter having the following description:

Data members: String taxino, String name, float km (Stores taxi no, passenger name and number of km), bill_amt

Member functions : 

Taximeter() - Constructor to store taxino as “ “, name as “ “, and km as 0.0

Input() – Accept and store the values of member variables from the user.

calculate() - Calculate the bill_amount according to the given conditions :


Km travelled            Rate/km

<=1                    Rs.25

1<km<=6                Rs.10

6<km<=12                Rs.15

12<km<=18                Rs.20                           

>18                    Rs.25   ​

Answers

Answered by devanshpant1020
0

Answer:

nznznsnnsbdhdhdhdhdhdhjdjdnxndmzm

Similar questions