Page 1 of 1

7 Create java coding

Posted: Mon Jun 06, 2022 12:14 pm
by answerhappygod
7
7 Create Java Coding 1
7 Create Java Coding 1 (148.81 KiB) Viewed 29 times
Create java coding
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 publisher. . 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 bank, 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 withdrawal 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 account, and on a monthly basis, the saving account will accumulate based on the following formula: balance = balance + (interest 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 overdraft protection. The account's overdraft amount is decremented as it is used. Based on the UML diagram, develop a complete program to solve the problem. Due date: End of lab hours Note: 1. Choose a proper naming convention. 2. Copy or other forms of cheating is forbidden.