Develop a java program that implement the following:Imagine a tollbooth at highways. The vehicles passing by the booth is expected to pay a toll. The tollbooth keeps the track of the number of vehicles that is gone by and the total amount of cash collected. Create a class tollbooth with the data members as:- -total number of vehicles passed. -total toll collected. Write necessary member functions:
a constructor that initializes data members to zero.
pay for different vehicles (): when any vehicle passes through the tollbooth,that much toll gets added into total toll collected and total number of vehicles passed is incremented by one. (Can have 3 categories: Light motor vehicles: Rs.80, Heavy motor vehicles: Rs.120, Multiaxle : Rs.200)
nonpaying Government vehicles(): increments the vehicle total but adds nothing to cash total.
display ():
Format
Vehicle Count Unpaid Amount
Light motor 10 2 640
Heavy motor 10 5 600
Multi axle 4 0 800
Total 24 7 2040
Answers
Answered by
4
Data modems, telephone transmissions, and the NASA Deep Space Network all employ channel coding techniques to get the bits through, for example the turbo code and LDPC codes.
Similar questions