Menu

[Solved]Due Date Noted Blackboard Concepts Classes Objects Inheritance Polymorphism Point Value 60 Q37022881

Due Date: As noted on Blackboard Concepts: Classes and objects, inheritance, polymorphism Point value: 60 points This is theCPS 2231 Computer Organization and Programming only applies for a non-tax exempt customer. The reason for tax exemption only

Due Date: As noted on Blackboard Concepts: Classes and objects, inheritance, polymorphism Point value: 60 points This is the first part of the Project for CPS 2231. You will write several classes for Program 6. The name of all classes for this program will start with xxxx where xxxx is your Kean email ID. There will be a 10 point deduction if this naming convention is not followed!!! Assignment: Best Office Supplies Inc, an office supply store, services many customers. As customers orders for office supplies are shipped, information is entered into a file. Best Office Supplies bills their customers once each month. At the end of each month, the Chief Executive Officer requests a report of all customers. In program 6 you will develop the inheritance hierarchy for the program next assignment. The set of classes developed for program 6 will be used on the .The superclass for this assignment will represent a Customer of Best Office Supplies Inc. .Some of the Customers will be tax-exempt customers (will not pay taxes on the bill balance) but others will be non-tax-exempt customers (will pay tax on the bill balance at a given percent). The fields are the instance variables of the classes in the hierarchy o Customer ID (numeric integer) o Customer name (String) o EmailAddress (String) o Bill balance (numeric) o Reason for the tax exemption (only for tax-exempt-customers) -String, for example: education, non-profit, etc Tax percent (only for non-tax-exempt customers) – decimal, for example: .06 for 6%, .09 for 9% o The customers served by the office supply store are of two types: tax-exempt or non-tax- exempt、 The tax-exempt customer will have an instance field to store the reason for the tax exemptions: education, non-profit, govenment, other (String). The non-tax exempt customers, will have an instance field to store the percent of tax that the customer will pay (numeric) on the bill balance. From the information provided, write a solution that includes the following A suitable inheritance hierarchy which represents the customers serviced by the office supply company. There should be 3 classes for this program. I suggest a Customer class and two suitable subclasses. The tax percent field CPS 2231 Computer Organization and Programming only applies for a non-tax exempt customer. The reason for tax exemption only applies to a tax exempt customer. For all classes include the following: o Instance variables o Constructors o Accessor and mutator methods o Suitable toString) methods Write a class xxxx_program6 which does the following in the main method: Create two objects for customers who are tax exempt and create two objects for customers who are non-tax exempt. · Print all the information about the objects as shown below Outout Non tax exempt customers: 1Google $450. 50 google@gmail.com 2 Prudential $550.50 pru@gmail.com 0.06% 0.06% $27.03 $33.03 Tax exempt customers: RedCross $150.50 redcross@gmail.com Non-profif Habitat $600.50 habitatogmail.com Non-profit Student Requirement Points 10 hierarchy used 3 Show transcribed image text Due Date: As noted on Blackboard Concepts: Classes and objects, inheritance, polymorphism Point value: 60 points This is the first part of the Project for CPS 2231. You will write several classes for Program 6. The name of all classes for this program will start with xxxx where xxxx is your Kean email ID. There will be a 10 point deduction if this naming convention is not followed!!! Assignment: Best Office Supplies Inc, an office supply store, services many customers. As customers orders for office supplies are shipped, information is entered into a file. Best Office Supplies bills their customers once each month. At the end of each month, the Chief Executive Officer requests a report of all customers. In program 6 you will develop the inheritance hierarchy for the program next assignment. The set of classes developed for program 6 will be used on the .The superclass for this assignment will represent a Customer of Best Office Supplies Inc. .Some of the Customers will be tax-exempt customers (will not pay taxes on the bill balance) but others will be non-tax-exempt customers (will pay tax on the bill balance at a given percent). The fields are the instance variables of the classes in the hierarchy o Customer ID (numeric integer) o Customer name (String) o EmailAddress (String) o Bill balance (numeric) o Reason for the tax exemption (only for tax-exempt-customers) -String, for example: education, non-profit, etc Tax percent (only for non-tax-exempt customers) – decimal, for example: .06 for 6%, .09 for 9% o The customers served by the office supply store are of two types: tax-exempt or non-tax- exempt、 The tax-exempt customer will have an instance field to store the reason for the tax exemptions: education, non-profit, govenment, other (String). The non-tax exempt customers, will have an instance field to store the percent of tax that the customer will pay (numeric) on the bill balance. From the information provided, write a solution that includes the following A suitable inheritance hierarchy which represents the customers serviced by the office supply company. There should be 3 classes for this program. I suggest a Customer class and two suitable subclasses. The tax percent field
CPS 2231 Computer Organization and Programming only applies for a non-tax exempt customer. The reason for tax exemption only applies to a tax exempt customer. For all classes include the following: o Instance variables o Constructors o Accessor and mutator methods o Suitable toString) methods Write a class xxxx_program6 which does the following in the main method: Create two objects for customers who are tax exempt and create two objects for customers who are non-tax exempt. · Print all the information about the objects as shown below Outout Non tax exempt customers: 1Google $450. 50 google@gmail.com 2 Prudential $550.50 pru@gmail.com 0.06% 0.06% $27.03 $33.03 Tax exempt customers: RedCross $150.50 redcross@gmail.com Non-profif Habitat $600.50 habitatogmail.com Non-profit Student Requirement Points 10 hierarchy used 3

Expert Answer


Answer to Due Date: As noted on Blackboard Concepts: Classes and objects, inheritance, polymorphism Point value: 60 points This is… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *