Question
This assignment is to achieve CO: C01Understand and design the fundamental concepts of object oriented approach using UML and java. (C2,PLO1) CO2construct a Java program
C01Understand and design the fundamental concepts of object oriented approach using UML and java. (C2,PLO1)
CO2construct a Java program that requires the use of arrays to hold primitive data types and objects.(C6,PLO2)
CO3produce a GUI or applet using the GUI components that incorporates event handlings(C3,PLO3)
CO4 Producea Java application using the GUI components. (C4,PLO3)
CO5Develop a complete GUI based Java application or applet that incorporates event- handlings.(C4,PLO3)
Question 2
Please develop a complete java program following the figure 1 below.
Question 3
Write a java program named MyLoan that uses an abstract class named FamilyInsurance and subclasses which can display two differenttypes of loans, Car and Health. And the cost per month for each loan.
Each of the subclasses contains constructor which will sets the cost per month based on the type of loan, and prompt the user any appropriate data entry for the loan calculation. For example, Car loan, you might ask the user the age of the car or want to protect windscreen or not, flood and etc. Same goes to Health insurance. Please find the correct data for your program.
Include and abstract toData() method in the FamilyInsurance class that constructs a String containing all the required data. Ask the user for the type of insurance and then display the appropriate Object. Save your files as FamilyInsurance.java, Car.java, Health.java and MyLoan.java.
Find at least 5 relevant elements for each of insurance.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started