Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I don't know what's the issue here? can some one please fix it 3.23 LAB: Seasons Write a program that takes a date as input

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

I don't know what's the issue here?

can some one please fix it

3.23 LAB: Seasons Write a program that takes a date as input and outputs the date's season. The input is a string to represent the month and an int to represent the day. Ex: If the input is: April 11 the output is: Spring In addition, check if the string and int are valid (an actual month and day). Ex: If the input is: Blue 65 the output is: Invalid The dates for each season are: Spring: March 20 - June 20 Summer: June 21 - September 21 Autumn: September 22 - December 20 Winter: December 21 - March 19 293346.1751408 LAB ACTIVITY 3.23.1: LAB: Seasons main.c Loa 1 #include 2 #include 3 4 int main(void) { 5 char inputMonth[50]; 6 int inputDay; 7 8 scanf("%s", inputMonth); 9 scanf("%d", &inputDay); 10 11 if (strcmp(inputMonth, "March") && inputDay >= 20 && inputDay = 1 && inputDay = 1 && inputDay = 1 && inputDay = 1 && inputDay = 21 && inputDay = 1 && inputDay = 1 && inputDay = 1 && inputDay 21) { printf("Summer"); } else if (strcmp(inputMonth, "September") && inputDay >= 22 && inputDay = 1 && inputDay = 1 && inputDay = 1 && inputDay = 1 && inputDay = 1 && inputDay = 1 && inputDay = 21 && inputDay = 1 && inputDay = 1 && inputDay = 1 && inputDay

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions

Question

help asp

Answered: 1 week ago