please help me

Question#1: Create a Customer class that includes fields for last name, first name, and postal code.

Include a default constructor that initializes last name and first name to “XXX” and zip code to “00000” if no arguments are supplied.
Check whether the zip code is five digits or not
Include a display function
Write a main() function that instantiates and displays two Customer objects: one that uses the default values, and one for which you supply your own values
Save the file as Customer.cpp


Question#2: Create a class named SavingsAccount. Provide fields for the customer (use the Customer class from the previous Exercise), account number, balance, and interest rate.

Provide two constructors. One requires a customer and sets each numeric field to 0; the other requires a customer and an account number and sets the account’s opening balance to JD100 at 3% interest.
Check whether the account number is 9 digits or not.
Include a function that displays an account’s data fields.
Write a main() function that instantiates one SavingsAccount object of each type and displays their values.
Save the file as SavingsAccount.cpp
We're happy to help, but you have to tell us what you need help with. What have you done so far? What specific questions do you have?
Hello abuh,

Given this:

Question#1: Create a Customer class that includes fields for last name, first name, and postal code.

1. Include a default constructor that initializes last name and first name to “XXX” and zip code to “00000” if no arguments are supplied.

2. Check whether the zip code is five digits or not.

3. Include a display function.

4. Write a main() function that instantiates and displays two Customer objects:
   a. one that uses the default values,
   b. and one for which you supply your own values

Save the file as Customer.cpp


What have you done for just #1?

Andy
I want help to write this content code ....

Question#1: Create a Customer class that includes fields for last name, first name, and postal code.

1. Include a default constructor that initializes last name and first name to “XXX” and zip code to “00000” if no arguments are supplied.

2. Check whether the zip code is five digits or not.

3. Include a display function.

4. Write a main() function that instantiates and displays two Customer objects:
a. one that uses the default values,
b. and one for which you supply your own values

Save the file as Customer.cpp
Hello abuh,

I am not here to write your code for you. That is how you learn.

You could start with:
https://www.learncpp.com/cpp-tutorial/welcome-to-object-oriented-programming/ chapter 11.1.

And the next chapter:
https://www.learncpp.com/cpp-tutorial/classes-and-class-members/ chapter 11.2.

Show some effort and post some code. I will be glad to help you work out any problems you have at least to the best of my understanding.

If you still are looking for someone to do the work for you try the "Jobs" forum.

Andy
I want help to write this content code


What help do you need? What don't you understand? What is the issue? What have you produced so far? Post your current code.
Topic archived. No new replies allowed.