[ITEM]
27.04.2020

How To Write A Calendar Program In C

77

Sunnysky 4108 series 380 kv motor settings. Home C Projects 10 Mini Projects in C Language with Source Code. Calendar Application Project How to Execute – Extract the project files into a folder and run the calendar.exe file to execute the project. You can even load the calendar.c file into C editor and execute the program the routine way. Write a text analyzer program that.

It's user based program. It should show user to enter month starting day.e.g: Means if user enters 2, then month should start from Tuesday and there will be empty space below Monday. If user enters 5, then month should start from Friday and respectively so on. And main thing is that it should skip to next line after Sunday.

https://code.sololearn.com/cJlF5W2YF26W/?ref=appI am unable to understand how you can print the calendar without the year.This one, will print the 'actual' calendar, like it would look for the month.I know, the output may not be as you wanted. But you haven't provided sample input for the same. Please provide one.

Check my C++ Program that generates Calendar. Link: https://code.sololearn.com/cV6hV2racWih/#cpp

Is there any programmer , who Is gonna accept challenge?

Any ideas of how I can have a calendar for all 12 months print for any year?
The user inputs the year and the day of the week for January 1st of that year. (Sunday = 0, Monday = 1, etc.)

Important:
I cannot use cases. (That's what I've mostly seen online to solve this problem)
I can only use <iostream>, no other libraries.
And I am supposed to use two for loops.

Could someone provide a pseudocode or any suggestions?

  • 4 Contributors
  • forum 10 Replies
  • 13,039 Views
  • 2 Years Discussion Span
  • commentLatest Postby 0igoLatest Post

deceptikon1,790

Well, you know how many days are in each month, and what weekday the year starts, so the algorithm stands out immediately as a couple of nested loops with a few counters that wrap around at appropriate times. You're looking at around 10 lines of code.

Don't over complicate things, this is almost a no brainer. Of course handling leap years and error handling the weekday input are both minor complications, but it's not a big deal. See if you can come up with an algorithm on your own.

Write
Edited by deceptikon
[/ITEM]
[/MAIN]
27.04.2020

How To Write A Calendar Program In C

1

Sunnysky 4108 series 380 kv motor settings. Home C Projects 10 Mini Projects in C Language with Source Code. Calendar Application Project How to Execute – Extract the project files into a folder and run the calendar.exe file to execute the project. You can even load the calendar.c file into C editor and execute the program the routine way. Write a text analyzer program that.

It's user based program. It should show user to enter month starting day.e.g: Means if user enters 2, then month should start from Tuesday and there will be empty space below Monday. If user enters 5, then month should start from Friday and respectively so on. And main thing is that it should skip to next line after Sunday.

https://code.sololearn.com/cJlF5W2YF26W/?ref=appI am unable to understand how you can print the calendar without the year.This one, will print the 'actual' calendar, like it would look for the month.I know, the output may not be as you wanted. But you haven't provided sample input for the same. Please provide one.

Check my C++ Program that generates Calendar. Link: https://code.sololearn.com/cV6hV2racWih/#cpp

Is there any programmer , who Is gonna accept challenge?

Any ideas of how I can have a calendar for all 12 months print for any year?
The user inputs the year and the day of the week for January 1st of that year. (Sunday = 0, Monday = 1, etc.)

Important:
I cannot use cases. (That's what I've mostly seen online to solve this problem)
I can only use <iostream>, no other libraries.
And I am supposed to use two for loops.

Could someone provide a pseudocode or any suggestions?

  • 4 Contributors
  • forum 10 Replies
  • 13,039 Views
  • 2 Years Discussion Span
  • commentLatest Postby 0igoLatest Post

deceptikon1,790

Well, you know how many days are in each month, and what weekday the year starts, so the algorithm stands out immediately as a couple of nested loops with a few counters that wrap around at appropriate times. You're looking at around 10 lines of code.

Don't over complicate things, this is almost a no brainer. Of course handling leap years and error handling the weekday input are both minor complications, but it's not a big deal. See if you can come up with an algorithm on your own.

Write
Edited by deceptikon