1). Design an abstract class called Customer and an abstract method CalculateDiscount(). Design a calculator program…

1). Design an abstract class called Customer and an abstract
method CalculateDiscount(). Design a calculator program that
determines the amount of discount a customer can claim on the
system. Regular Customer gets 2% off their total purchase and
Member Customer gets 8% off their total purchase. The system should
allow the customer to select either they are; a Regular Customer or
Member Customer.
2) Design an Activity Diagram for the following business
process.
When the passenger decides to board the train, they will have to
produce their ticket at the check in counter. The Passenger Ticket
Service System will then verify the passenger’s ticket. Should
there be problem/s with the passenger’s luggage, the system will
then flash a message instructing the passenger to visit the closest
station’s customer service counter and the system ends.
If there is no complication with the ticket, the passenger will
then be able to check in their luggage (one piece only with max
weight of 30lbs). Once the The Passenger Ticket Service System
weights the customer luggage, and assuming it is under 30 Lbs, then
the system will accepts the luggage and a boarding pass will be
printed out by the system. Should the passenger’s luggage weights
more than the maximum allowable weight (30 lbs) the passenger will
then have to pay the overweight charges before a boarding pass will
be issued by the system. The system ends after a boarding pass has
been issued.