Is this anywhere close guys? I'm stuck
//----------------------------------------------------------------------------
//File--------project5.cpp
//Programmer--
//Course------CSC115
//Project-----Project #5
//Due---------November 4, 2010
//This program calculates the day of the week on which a chosen date falls.
//----------------------------------------------------------------------------
Code:
#include <iostream>
using namespace std;
//-----------------------------------------------------
//Main Program
//-----------------------------------------------------
int main()
{
int century, month, date, year;
char day;
day=weekday(day);
//------------------------------------------------------------------
//Weekday
//
//This function uses Zeller’s Congruence formula to calculate
//the day of the week on which a chosen date falls.
//
//Input Parameters
// Century---Two numbers to the left in the year
// Year------Two numbers to the right of the century
// Date-------The number of the day of the month
//
//Output Parameters
// Day---The specific day of the week in which the date falls
//
//Return Value:
// Day
//-------------------------------------------------------------------
void weekday(int century, int month, int date, int year)
{
century=
month=
date=
year=
return day;
}
cout<<"Input the year:";
cin>>year;
cout<<endl;
cout<<"Input the century:";
cin>>century;
cout<<endl;
cout<<"Input the day:";
cin>>date;
cout<<endl;
cout<<"Input the month:";
cin>>month;
cout<<endl;
cout<<"Month----"<<month;<<endl;
cout<<"Day------"<<date;<<endl;
cout<<"Year-----"<<year;<<endl;
cout<<"Weekday--"<<day;<<endl;
cout<<endl;
cout<<"Month----"<<0;<<endl;
return0;
}