Lab Exercise 5 Learning outcomes: 1. Construct program using objects and classes. (C3, P4) 2. Analyze and solve programm
Posted: Fri Apr 29, 2022 6:48 am
Lab Exercise 5 Learning outcomes: 1. Construct program using objects and classes. (C3, P4) 2. Analyze and solve programming problem. (CTPS) Questions: 1. (TestCourse.java) Design a Course class to represent a course that been taken by students. This class will hold the following information: The course name. The instructor's last name, first name and office number. The textbook's title, author and publishers Draw a UML diagram to show the relationships between the classes you have designed. Develop a complete program to solve the problem, 2. (TestBank.java) Draw UML class diagram to show the relationships between tunk, customers, and accounts. Customers may have more than one account and these accounts are saving account and checking account. Each customer's account has current balance based on deposit and wilhdrawal activities. The balance of the bank account must never go below zero. A saving account gains interest. The bank permits customers to store money in a saving zil'count, and on a monthly basis, the saving account will accumulate based on the following formula: calance - balance interey rate x balance) A checking account enables the customer to make any number of deposits and withdrawals. To protect their customers, the bank will permit a fixed amount of overdraft protection. This protection enables the customer's balance to drop below zero, but not below the amount of overdrall protection. The account's overdraft amount is decremented as it used. Based on the UML diagram, develop a complete program to solve the problem. Duc date: End of lab hours Note: 1 Choose a proper naming convention. 2. Copy or other forms of cheating is forbidden. 26