use object-oriented design to design a class called Customer that will receive the information in the ITP100CustomerData_LastName.doc file that you created in Part 1 of the project. The class will receive the customer data, validate the data and display the input data. a. Design the class table. b. Write an algorithm for each operation. c. Write a test or driver algorithm to test the solution. use object-oriented design to design a class called Movie that will receive the information in the ITP100MovieData_LastName.doc file that you created in Part 1 of the project. The class will receive the movie data, validate the input data and print the valid movie data that have a quantity amount equal to 0. a. Design the class table. b. Write an algorithm for each operation. c. Write a test or driver algorithm to test the solution. use object-oriented design to design a class called Payment that will receive the information in the ITP100PaymentData_LastName.doc file that you created in Part 1 of the project. The class will receive the payment data, validate the input data and print the data. a. Design the class table. b. Write an algorithm for each operation. c. Write a test or driver algorithm to test the solution.

Designing a class called Customer involves creating a blueprint for an object that will handle customer data, validate the data, and display the inputted information. To begin the design process, we need to create a class table and define the operations and methods that the Customer class will have.

a. Designing the class table:

———————————————
| Class: Customer |
———————————————
| – customer_id: string |
| – name: string |
| – address: string |
| – email: string |
———————————————
| + validate_data(): boolean |
| + display_data(): void |
———————————————

In this class table, we define the attributes or variables that the class will have. These attributes include the customer_id, name, address, and email, all of which are of type string. The ‘-‘ symbol indicates that these attributes are private and cannot be accessed directly from outside the class.

Next, we define the operations or methods of the Customer class. The ‘+’ symbol indicates that these methods are public and can be accessed from outside the class. The validate_data() method is responsible for validating the inputted data, such as checking if the customer_id follows a specific format or if the email address is valid. It returns a boolean value indicating whether the data is valid or not. The display_data() method is responsible for displaying the inputted data.

b. Writing algorithms for each operation:

1. validate_data():
INPUT: None
OUTPUT: boolean
1. Read the customer_id, name, address, and email from the input file.
2. Validate the customer_id and return false if it does not follow the specified format.
3. Validate the email address and return false if it is not a valid email address.
4. Return true if all data is valid.

2. display_data():
INPUT: None
OUTPUT: void
1. Read the customer_id, name, address, and email from the input file.
2. Display the customer_id, name, address, and email on the console.

c. Writing a test or driver algorithm to test the solution:

1. Read data from the “ITP100CustomerData_LastName.doc” file.
2. Create an instance of the Customer class.
3. Call the validate_data() method to validate the data.
4. If the data is valid, call the display_data() method to display the customer information.
5. Otherwise, display an error message indicating that the data is invalid.

The test or driver algorithm will simulate the process of creating a Customer object, validating the data, and displaying the information. It will test whether the class functions as intended and handles the customer data correctly.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer