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
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