Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

it is C# console program. need it done ASAP. need a picture of output and whole program. thank you :) Write a C# console program

it is C# console program. need it done ASAP. need a picture of output and whole program. thank you :) image text in transcribed
image text in transcribed
Write a C# console program that prints a calendar for a given year. Call this program calendar. 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 4 Thursday 1 Monday 5 Friday 2 Tuesday 6 Saturday 3 Wednesday 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 366 days. That extra day comes at the end of February. Thus, a leap year has 366 days with 29 day, 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 and display the instructions on how to run the program. It should run until the user want to quit, which you need to use do...while loop as required. You also need to check input validation for correct input information (the day of week). This program are required to use enumeration type for month title, and switch for display month days with correct form as show in example below. Sample Input: Enter the year for which you wish to generate the calendar: 2004 Enter the day of the week that January first is on: Sample output: Calendar for year 2004 January Sun Mon Tue Wed Thu 4 17 18 25 5 12 19 26 6 73 20 27 7 14 27 28 8 15 22 29 Fri 2 9 16 23 30 Sat 3 10 17 24 37 February 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 and display the instructions on how to run the program. It should run until the user want to quit, which you need to use do...while loop as required. You also need to check input validation for correct input information (the day of week). This program are required to use enumeration type for month title, and switch for display month days with correct form as show in example below. Sample Input: Enter the year for which you wish to generate the calendar: 2004 Enter the day of the week that January first is on 4 Sample output: Calendar for year 2004 January Sun Mon Tue Fri 4 5 12 19 26 Wed Thu 1 7 8 14 15 21 22 28 29 6 13 20 27 18 25 Sal 3 10 17 24 37 9 16 23 30 February Sun Mon 7 Tue 3 Wed 4 Thu 5 Sat Fri 6 ** Note: Zip the whole project folder and add your name to the zip file name as A3-student's name; then upload to blackboard before Due Date 3/15 midnight

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions

Question

Explain the importance of Human Resource Management

Answered: 1 week ago

Question

Discuss the scope of Human Resource Management

Answered: 1 week ago

Question

Discuss the different types of leadership

Answered: 1 week ago

Question

Write a note on Organisation manuals

Answered: 1 week ago

Question

Define Scientific Management

Answered: 1 week ago