Question: code for calender design. Copied answers will be reported fp = fopen(note.bin, w); } fclose(fp); while (1) { month ); printf(1. printf(2. ); year: );
code for calender design. Copied answers will be reported




fp = fopen("note.bin", "w"); } fclose(fp); while (1) { month "); printf("1. printf("2. "); year: "); &year); printf("3. printf("4. Exit "); printf("Enter your choice: "); scanf(" %c", &choice); switch (choice) { case '1' printf("Enter the day, month and scanf("%d %d %d", &day, &month, printf("The day is : %s ", getName(getDayNumber (day, month, year))); break; fp); Find the day "); Print calendar of a Add Note "); case '2': printf("Enter the month and year: scanf("%d %d", &month, &year); printf("Please enter 's' to see the notes Press any other key to continue "); calendar (year, month); break; case '3': printf("Enter the day, month and year: "); ¬e.month, ¬e.year); opened "); scanf("%d %d %d", ¬e.day, flush(); printf("Enter the note: "); fgets (note.note, 255, stdin); fp = fopen("note.bin", "a+"); if (fp == NULL) { printf("File note.bin can not be } exit(1); fwrite(¬e, sizeof(Note), 1, printf("Note added sucessfully ");
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
