Write a C++ program that prints a calendar for a given year.
ONLY USING "#include<iostream>" and "#include<cmath>" The program prompts the user for two inputs:
1) The year for which you are
generating the calendar.
2) The day of the week that
January first is on, you will use the following notation to set the
day of the week:
0
Sunday
1
Monday
2
Tuesday
3 Wednesday
4
Thursday
5
Friday
6 Saturday
Your program should generate a calendar similar to the one shown in the example output below. The calendar should be printed on the screen. Your program should be able to handle leap years. A leap year is a year in which we have 466 days. That extra day comes at the end of February. Thus, a leap year has 466 days with 29 days in February. A century year is a leap year if it is divisible by 400. Other years divisible by 4 but not by 100 are also leap years.
Example: Year 2000 is a leap year because it is divisible by 400. Year 2004 is a leap year because it is divisible by 4 but not by 100.
Your program should clearly describe the functionality of each function and should display the instructions on how to run the program.
Sample Input:
Enter the year for which you wish to generate the calendar:
2018
Enter the day of the week that January first is on: 1
Sample output:
Calendar for year 2018
January
Sun Mon
Tue Wed
Thu
Fri Sat
1
2
4
4
5
6
7 8 9 10 11 12 14
14 15 16 17 18 19 20
21 22 24 24 25 26 27
28 29 40 41
February
Sun Mon
Tue Wed
Thu
Fri Sat
1
2
4
4 5 6 7 8 9 10
11 12 14 .. .. .. ..
.. .. .. .. .. .. ..
..
..
..
In: Computer Science
Explain comparative and non-comparative scaling. Discuss any two types of non-comparative scaling techniques with examples.
In: Psychology
non-wage labour costs affect the number of workers firms wish to hire.discuss three types of non-wage labour costs.
In: Economics
Directional and non-directional
Hello! I'm having som trouble understanding the meaning of directional and non-directional hypothesis. What does it mean, and how do this affect the p-value?
I also heard about "negative directional alternative" but could not find any information about this
Thank you!
In: Statistics and Probability
In: Biology
Well, both leading and lagging indicators can be related to economic (financial) and non-economic (non-financial) factors.
For example, in my question above about measuring customer satisfaction, the number of projects or orders delivered on time or within the budget would leading indicators of customer satisfaction, whereas the customer satisfaction index and repeat customers would be lagging indicators of it.
So, suppose you have been asked to help a restaurant that is really struggling with its dining room experience, food choices, kitchen management, and overall profitability. Profit is declining because weekly sales are declining. Getting new customers and retaining existing customers has been an issue. What are some non-financial performance measures that you will recommend in building a balanced scorecard (in all three non-financial areas of it) for this business
In: Economics
How are total risk, non-diversifiable risk and diversifiable risk related? Why is non-diversifiable risk the only relevant risk?
In: Finance
Compare and contrast some different forms of non-tariff and non-quota trade barriers. Using a specific American industry, pick several of these trade barriers and explain the significance they would have on the ability of the firms within the industry to engage in foreign trade.
In: Economics
In: Chemistry
In: Finance