question archive You are expected to use inheritance to perform fee calculation based on the type of a participant ( consist of FullName, WantLunch , WantProceeding and double fees() ) of scientific activity
Subject:Computer SciencePrice: Bought3
You are expected to use inheritance to perform fee calculation based on the type of a participant (
consist of FullName, WantLunch , WantProceeding and double fees() ) of scientific activity.
Consider the following problem:
Fees of participants for a scientific activity is calculated based on types of participants.
Community member participants, pay %50 of participation fee and proceedings book is included.
Regular participant, pay %100 of participation fee and proceedings book is included.
Student participants, pay %60 of participation fee. A student cannot be member of the community,
and has to pay extra for proceedings book.
Regardless of the type, all participants pay for lunch.
The organizers want to implement a Java application that performs fee calculations. Create such
application and add some participants for different types. Prices are like below:
? Lunch: 20 TRY
? Proceedings book: 200 TRY
? Participation fee: 500TRY
? For example
o Student who wants lunch but no proceeding: 500*0.6+20=320
o Student who wants lunch and proceeding: 500*0.6+20+200=520
o Regular who doesn't want lunch: 500
Your application should display:
? Amount for added each participant
? Total amount of money needs to be collected from all participants,
? number of proceedings book needs to be printed
? number of lunch servings needs to be prepared