Question: Make a program that should have Date (Randomize start of the month) Weather Status of those certain Days of the Week: Sunny, Cloudy, or Rainy

Make a program that should have

  • Date (Randomize start of the month)
  • Weather Status of those certain Days of the Week: Sunny, Cloudy, or Rainy (Randomized)
  • Print the Calendar (Month view only)

Expected Output: In each run of the program, there will be a random start of the month and weather status. Example output: Make a program that should have Date (Randomize start of the month)

It's up to you if you will also randomize the end of the month, be it 28, 29, 30, or 31.

Note: This is a discussion during the topic of our union, structures, and enum, so please include it if possible. Please put the code itself, not the photo. No need for inputs, just initialize everything inside the code and randomize what should be outputted (as indicated in the instructions) Show the side-by-side interpretation of the algorithm to its corresponding code. Use only C programming (NOT C++).

January Sun Mon Tue Wed Thu Fri Sat 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 Rainy at the days of : 1,3,5,7,10,16,17,19,29,30 Cloudy at the days of: 2,4,8,9,15,24,27,28,31 Sunny at the days of: 6,11,12,13,14,18,20,21,22,23,25,26

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!