Complete the following tasks: a. Design a class named AutomobileLoan that holds a loan number, make and
Question:
Complete the following tasks:
a. Design a class named AutomobileLoan that holds a loan number, make and model of automobile, and balance. Include methods to set values for each data field and a method that displays all the loan information. Create the class diagram and write the pseudocode that defines the class.
b. Design an application that declares two AutomobileLoan objects and sets and displays their values.
c. Design an application that declares an array of 20 AutomobileLoan objects. Prompt the user for data for each object, and then display all the values.
d. Design an application that declares an array of 20 AutomobileLoan objects. Prompt the user for data for each object, and then pass the array to a method that determines the sum of the balances.
Step by Step Answer: