Hi all, new to C++. Currently I need to modify a script. The things I have to change are:
-Limit the date so it does not exceed 12(months), 31(days) and the year range is between 1980-2012.
-I need a main menu with the following options:
Display bank accounts by ssn, or dob, the number of accounts, and the interest earned on the account.
Here is the script: #include <iostream>
#include <string>
using namespace std;
struct Date {
unsigned short day;
unsigned short month;
unsigned short year;
};
struct Person {
int ssn;
string name;
char address[128];
Date DoB;
};
struct Account {
Person owner;
Date OpenDate;
double balance;
float interest;
};
Show others that you are willing to apply yourself and make an effort otherwise they will not reply on this forum. Also please wrap code in [code] [/ code] braces from now on makes it look cleaner and easy for people to read
Unfortunately I don't understand how to write out the limits or how to choose a menu style. The code was transfered from notepad, where should the parenthesis begin in the very beginning of the code and end?
Just start with what you know how to do and research what you dont know. Start small make little changes.
Or if you dont get what your professor just went over before he gave out the homework, go back in your textbook and read the parts again that you dont get.
Like others said we wont do your homework for you, you have to show that your are making a effort by providing code that you wrote and then we can help you with problems that might arise.