Question
A teacherwill assign homeworkand give the number of days for the students to work on. The student is responsible for calculating the due date. The
A teacherwill assign homeworkand give the number of days for the students to work on. The student is responsible for calculating the due date. The teacher does not collect homework on Friday or weekend. Write a C program that let the user entertodays day of the week (0 for Sunday, 1 for Monday, etc.) and the number of daysto allow the students to do the work, which may be several weeks. Calculateand displaythe day of the week on which the work would be due. Ifthat day Friday, Saturday, or Sundayadd enough days to D to reach the following Monday. Print the day of the week the work is dueand the corrected value of the number of the days.Example input/output:Enter todays day of the week: 6Enter the numberof days for doing the work: 15Output: The due dateisMonday. The number of days until due date is 16.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started