Question: Write C++ program that will use repetition statement with switch statement to compute the number of days from the beginning of the year till the
Write C++ program that will use repetition statement with switch statement to compute the number of days from the beginning of the year till the user specified date. That is user should enter the day and month as integers and the program will compute the number of days from the beginning of the year. You should assume nonleap year, so February should have 28 days.
Actually, you can do it without repetition statement with clever switch statement only.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
