Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Design a toll booth Application of Padma bridge. At booth, it will collect the amount of toll from all the vehicles passing through

2. Design a toll booth Application of Padma bridge. At booth, it will collect the amount of toll from all the vehicles passing through based on the vehicle types (i.e. motorcycle, Buss, Truck, Car, Train etc.) and categories (Govt, Personal, carriage of Goods, Public etc.) and weight of the vehicles etc. Let's assume that Govt wants to encourage its citizen for paying tax regularly. So, it has categorized the taxpayer and provided a card (Platinum, Gold, Silver) to get discount on various public and non-public services. Let's consider that Govt has declared (Platinum->10%, discounts, Gold->8%, Silver->5%) in Tolls Fees, and for Govt vehicles (No Tool fees), for Personal Vehicles-> Govt Official (2%). Design the model and implement the program from OOD and OOP (Inheritance, polymorphism) concept. Also implement a method ie. calculate Toll(Vehicle) which is taking and returning the tollAmount to be paid at toll booth.

Step by Step Solution

3.51 Rating (158 Votes )

There are 3 Steps involved in it

Step: 1

Well start by defining the base classes Vehicle This class will represent a generic vehicle and will have attributes such as type eg motorcycle bus tr... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Document Format ( 2 attachments)

PDF file Icon
66430017124b4_953177.pdf

180 KBs PDF File

Word file Icon
66430017124b4_953177.docx

120 KBs Word File

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Entrepreneurship

Authors: Andrew Zacharakis, William D Bygrave

5th Edition

1119563097, 9781119563099

More Books

Students also viewed these Programming questions