Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Billing System Program A consulting company provides computer training to customers. Use OOP concept of Aggregation to design and write a set of classes that

Billing System Program

A consulting company provides computer training to customers. Use OOP concept of Aggregation to design and write a set of classes that can work together to simulate the companys billing system.

Define Java classes and write a client program to simulate the companys billing system. The detailed requirements are as follows:

image text in transcribed

1. MyDate It has data members to store month day, and year. 2. Class Person . It has data members to store a person's first name and last name. 5. Class Bill o It has data members: To store the training course's ID. To store the course charge. To store the discount rate. To store the additional materials purchased amount (for example, the student can purchase additional books). 3. Class Teacher It has data members: o It has a method that can calculate and return the total charge. *** Every class should have appropriate constructors, setters, getters, and toString method. To store the teacher's first name and last name (object of the class Person- aggregation) To store the teacher's specialty such as programming, database management, system administration, and etc. Enter training course's ID: 100039 Enter student's first name: Tom Enter student's last name: Jones 4. Class Training Course It has data members: Enter teacher's first name: Joe Enter teacher's last name: Smith Enter teacher's specialty: Linux Enter the starting date (xx/xx/xxxx) : 9/30/2019 Enter the completion date xx/xx/xxxx): 10/2/2019 To store the training course's ID. o To store the student's first name and last name (object of the class Person- aggregation) To store teacher's information (object of the class Teacher - aggregation o To store the date when the customer started the training (object of the class MyDate - aggregation) o To store the date when the student completed the training (object of the class MxDate - aggregation) Enter the service charge $: 1150.99 Enter the discount rate (i.e. Enter 5 for 5%): 15.75 Enter the additional material purchased: 85.76 Customer and Teacher Information: **** **** **** ******** **** **** Training Course ID: 100039 Student Info: Tom Jones Teacher Info: Joe Smith, Linux Starting Date: 9/30/2019 Completion Date: 10/2/2019 Days of Training: 2 It has a method that can calculate and return the number of days of spent. Bill Information: **** WWWWWWWW*** Training Course ID: 100039 Service Charge: $1150.99 Discount Rate: 15.75% Additional Material Purchased: $85.76 Total Charge Before Tax: $1055.47 1. MyDate It has data members to store month day, and year. 2. Class Person . It has data members to store a person's first name and last name. 5. Class Bill o It has data members: To store the training course's ID. To store the course charge. To store the discount rate. To store the additional materials purchased amount (for example, the student can purchase additional books). 3. Class Teacher It has data members: o It has a method that can calculate and return the total charge. *** Every class should have appropriate constructors, setters, getters, and toString method. To store the teacher's first name and last name (object of the class Person- aggregation) To store the teacher's specialty such as programming, database management, system administration, and etc. Enter training course's ID: 100039 Enter student's first name: Tom Enter student's last name: Jones 4. Class Training Course It has data members: Enter teacher's first name: Joe Enter teacher's last name: Smith Enter teacher's specialty: Linux Enter the starting date (xx/xx/xxxx) : 9/30/2019 Enter the completion date xx/xx/xxxx): 10/2/2019 To store the training course's ID. o To store the student's first name and last name (object of the class Person- aggregation) To store teacher's information (object of the class Teacher - aggregation o To store the date when the customer started the training (object of the class MyDate - aggregation) o To store the date when the student completed the training (object of the class MxDate - aggregation) Enter the service charge $: 1150.99 Enter the discount rate (i.e. Enter 5 for 5%): 15.75 Enter the additional material purchased: 85.76 Customer and Teacher Information: **** **** **** ******** **** **** Training Course ID: 100039 Student Info: Tom Jones Teacher Info: Joe Smith, Linux Starting Date: 9/30/2019 Completion Date: 10/2/2019 Days of Training: 2 It has a method that can calculate and return the number of days of spent. Bill Information: **** WWWWWWWW*** Training Course ID: 100039 Service Charge: $1150.99 Discount Rate: 15.75% Additional Material Purchased: $85.76 Total Charge Before Tax: $1055.47

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

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

Question

1. What are your creative strengths?

Answered: 1 week ago

Question

What metaphors might describe how we work together?

Answered: 1 week ago