Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Provide the the in Java pleas. Provide the code in Java please. Everything is explained on that piece of paper I've got nothing more to

Provide the the in Java pleas.
image text in transcribed
Provide the code in Java please.
image text in transcribed
image text in transcribed
Everything is explained on that piece of paper I've got nothing more to put it here. (Don't have output as well)
image text in transcribed
3. (60) In a sport center entrance, the object Oriented System charges for 2 types of customers TypeA: Subscriber, Type B: Guests. Every type of customer have subtypes like Type AA: Adult Subscriber Full Subscriber Charge, TypeAB: Child Subscriber Half Subscriber charge, TypeBA: Adult Guess Full Guest charge, TypeBB: Guess Child Half Guest charge. a) . Code the object-oriented design in Java. During your design, define a separate class for each type. b) + Add a Toll class with a payment accepting function to your design. Let this function be a single function that accepts all types of classes and charges according to the respective type class. c) - You are requested to report for management. Have the tollbooth class keep the Types that pass daily in an array. Write a new class for management and code a function that prints the total daily balance when requested. d) - In the future if you would like to add Student type of customer, therefore your code should be open for extension but close for modification. + Draw UML diagrams Write necessary Codes. 3. (60) In a sport center entrance, the object Oriented System charges for 2 types of customers TypeA: Subscriber, Type B: Guests. Every type of customer have subtypes like Type AA: Adult Subscriber Full Subscriber Charge, TypeAB: Child Subscriber Half Subscriber charge, TypeBA: Adult Guess Full Guest charge, TypeBB: Guess Child Half Guest charge. a) . Code the object-oriented design in Java. During your design, define a separate class for each type. b) + Add a Toll class with a payment accepting function to your design. Let this function be a single function that accepts all types of classes and charges according to the respective type class. c) - You are requested to report for management. Have the tollbooth class keep the Types that pass daily in an array. Write a new class for management and code a function that prints the total daily balance when requested. d) - In the future if you would like to add Student type of customer, therefore your code should be open for extension but close for modification. + Draw UML diagrams Write necessary Codes. 3.- (60) In a sport center entrance, the object Oriented System charges for 2 types of customers TypeA: Subscriber, Type B: Guests. Every type of customer have subtypes like TypeAA: Adult Subscriber Full Subscriber Charge TypeAB: Child Subscriber Half Subscriber charge, TypeBA: Adult Guess Full Guest charge, TypeBB: Guess Child Half Guest charge. a) Code the object-oriented design in Java. During your design, define a separate class for each type. b) + Add a Toll class with a payment accepting function to your design. Let this function be a single function that accepts all types of classes and charges according to the respective type class. T c) - You are requested to report for management. Have the tollbooth class keep the Types that pass daily in an array. Write a new class for management and code a function that prints the total daily balance when requested. d) - In the future if you would like to add Student type of Customer, therefore your code should be open for extension but close for modification. + Draw UML diagrams Write necessary Codes. 3.- (60) In a sport center entrance, the object Oriented System charges for 2 types of customers TypeA: Subscriber, Type B: Guests. Every type of customer have subtypes like Type AA: Adult Subscriber Full Subscriber Charge , TypeAB: Child Subscriber Half Subscriber charge, TypeBA: Adult Guess Full Guest charge, TypeBB: Guess Child Half Guest charge. a) Code the object-oriented design in Java. During your design, define a separate class for each type. b) + Add a Toll class with a payment accepting function to your design. Let this function be a single function that accepts all types of classes and charges according to the respective type class. T c) - You are requested to report for management. Have the tollbooth class keep the Types that pass daily in an array. Write a new class for management and code a function that prints the total daily balance when requested. d) - In the future if you would like to add Student type of customer, therefore your code should be open for extension but close for modification. + Draw UML diagrams Write necessary Codes

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

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

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions