Question: using code block 1. (19 points) Write a complete program that implements the calendar but with the following variation The program rends in the two
1. (19 points) Write a complete program that implements the calendar but with the following variation The program rends in the two numbers (NumDays and Start) normally, and then also tendes in na in ThisWeek. The purpose of This Week is so that in that week, the dates that are divisible by ThisWeek have an asterisk printed beside them Sample One INPUT: 31 3 4 // ------ Those top two output lines are // put in to help you count the spaces OUTPUT: S M T W T F S 1+++++++++++++++++++++ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20* 21 22 23 24 25 26 27 28 29 30 31 // Note here, that ThisWeek is 4, 1/ so in 4th week, 20 and 24, which // are divisible by 4, have a star. Sample Two INPUT: 31 3 3 // For this example, ThisWeek ia 3, // so, in 3rd week, 15 and 18, which // are divisible by 3. get a star OUTPUT: 2 S M T W T F S | +++|+++1 +++ +++|+++|+++|+++ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15* 16 17 18* 19 20 21 22 23 24 25 26 27 28 29 30 31
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
