HELPPPPPPPPPPPPPPPPPPPP ASAP

Oct 13, 2012 at 11:38pm
program shoud print
1. the age of the person in years
2. the day of the week on which the persons was born
3. The sesaon in which the person was born


#include <iostream>
#include <string>

using namespace std;

void get_inputs(string &name, int &birth_year, int& birth_month, int& birth_day, int &current_year, int& current_month, int &current_day);
void cal_Age();
void cal_Day_Of_week();
void cal_Season();
void print();

int main()
{
string name;
int birth_year;
int birth_month;
int birth_day;
int current_year;
int current_month;
int current_day;
get_inputs(name, birth_year, birth_month, birth_day, current_year, current_month, current_day );
cal_Age();
cal_Day_Of_week();
cal_Season();
print();

system("pause");
return 0;
}


void get_inputs(string &name, int &birth_year, int& birth_month, int& birth_day, int &current_year, int& current_month, int &current_day)
{
cout << " Please type in your name ";
cin >> name;
cout << " Please enter 4 digit date of birth ";
cin >> birth_year;
cout << " Please enter 2 digit birth month ";
cin >> birth_month;
cout << " Please enter 2 digit birth day ";
cin >> birth_day;

cout << " Please enter current 4 digit year ";
cin >> current_year;
cout << " Please enter curennt 2 digit month ";
cin >> current_month;
cout << " Please enter current 2 digit day ";
cin >> current_day;
}

void cal_age(&birth_month, & birth_year, &birth_month, &birthday )
{

}
Oct 14, 2012 at 12:18am
c3azy wrote:
program shoud print
1. the age of the person in years
2. the day of the week on which the persons was born
3. The sesaon in which the person was born
Here I wrote the program for you:
1
2
3
4
5
6
7
8
#include <iostream>

int main()
{
    std::cout << "1. 20" << std::endl;
    std::cout << "2. Thursday" << std::endl;
    std::cout << "3. Summer" << std::endl;
}
Last edited on Oct 14, 2012 at 12:18am
Topic archived. No new replies allowed.