Question: assignment, Construct a program that creates a calendar when given the starting day of the year Write one page that introduces the program, outlines the

assignment, Construct a program that creates a calendar when given the starting day of the year

 assignment, Construct a program that creates a calendar when given thestarting day of the year Write one page that introduces the program,outlines the approach that was taken and why it was chosen. Givea conclusion of the effectiveness of this approach. #include using namespace std;//Function declarations bool leapyear(int year); void month(int year, int month, int dayofweek);int main() { 1/Variable declaring int firstdayofmonth; int year; I/Getting the yearentered by the user cout > year; I/Getting the firstday of theweek entered by the user while (true) cout > firstdayofmonth; if (firstdayofmonth6) // there are only 6 days in week so if #

Write one page that introduces the program, outlines the approach that was taken and why it was chosen. Give a conclusion of the effectiveness of this approach.

#include using namespace std; //Function declarations bool leapyear(int year); void month(int year, int month, int dayofweek); int main() { 1/Variable declaring int firstdayofmonth; int year; I/Getting the year entered by the user cout > year; I/Getting the firstday of the week entered by the user while (true) cout > firstdayofmonth; if (firstdayofmonth 6) // there are only 6 days in week so if # is input that is less than or more than 6 then it is invalid { cout = 1) { if ((firstDay % 7) 1) { dayofweek = 1; } else if ((firstDay % 7) 2) { dayofweek 2; cout 7) { cout

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 Databases Questions!