Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a header file class (Customer) with following private attributes. Customer first name Customer last name Customer account Number, Deposit amount. 1. Create public getters

Create a header file class (Customer) with following private attributes.

Customer first name

Customer last name

Customer account Number,

Deposit amount.

1. Create public getters and setters for above attributes.

2. Create a constructor with parameters of first name and last Name and account number

3. Create a constructor with first name and last name.

4. Create an object from Customer class (objOne) with first name and last name values. (Come up with your own values)

5. Create a method call printName() in Customer class. This method should print full name for the above created object (objOne).

6. Create a method call registerCustomer() in Customer class.

7. Create another object from Customer class with first name, last name and account number (objTwo). (Come up with your own values).

8. Create a method in customer class call deposit with parameter of type double deposit amount.

9. Ask customer to enter deposit amount when program runs. Store deposit amount Deposit amount variable for second object (objTwo)

10. Then call deposit method for second object (objTwo) with deposit amount. Deposit method should print deposited amount as below in the example.(Names and deposited amount can be any values you created. It doesnt have to be the same values in the example) Example: If First Name is Smith , last name is Joshua, Deposited amount is 100.0. Print Smith Joshua deposited 100.0$ to his account

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What are the major parts of an email message?

Answered: 1 week ago