Question: I am getting an unresolved compilation error saying that the constructor customer is undefined. Computer Organization CPS 2231 and Programming Concepts: Classes and objects, inheritance,
Computer Organization CPS 2231 and Programming Concepts: Classes and objects, inheritance, polymorphism The purpose of this project is to give students exposure to object-oriented design and programming using classes and polymorphism in an application that involves arrays of objects and sorting arrays containing objects. You will write several classes for this lab exam. Please submit all classes coded along with the outputted report. Assignment: Office Supplies Inc., an office supply store, services many customers. As customers' orders for office supplies are shipped, information is entered into a file. Office Supplies bills their customers once each month. At the end of each month, the Chief Executive Officer requests a report of all customers sorted by their customer id (from lowest to highest). The report includes their bill balance and tax liability. Write a program to produce the outstanding balance report sorted by customer ID number for each customer from the data in the text file. You must use the text file provided for the report Below is a description of the information on the text file: The first line on the file contains the number of customers on the file (numeric) The fields below repeat for each customer o Customer name (String) o Customer ID (numeric integer) o Bill balance (numeric) o EmailAddress (String) o Tax liability (numeric or String) The customers served by the office supply store are of two types: tax-exempt or non-tax- exempt. For a tax-exempt customer, the tax liability field on the file is the reason for the tax exemptions: education, non-profit, government, other (String). For a non-tax exempt customer, the tax liability field is the percent of tax that the customer will pay (numeric) based on the state where the customer's business resides. Program requirements: From the information provided, write a solution that includes the following: A suitable inheritance hierarchy that represents the customers serviced by the office supply company. It is up to you how to design the inheritance hierarchy. I suggest a Customer class and appropriate subclasses. Gom s dae heve
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
