Question: Write structure declaration for a structure named Account that holds the following data about a savings account. Include a constructor that allows data values to

Write structure declaration for a structure named Account that holds the following data about a savings account. Include a constructor that allows data values to be passed in for all four members.

Account number (string) Account balance (double) Interest rate (double) Average monthly balance (double)

Now in your main function write a definition statement for an Account variable that initializes the members with the following data and then cout this information to the screen:

Account number: ACZ42137 Account balance: $4512.59 Interest rate: 4% Average monthly balance: $4217.07

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!