Conditional Statement - Seasons
Conditional Statement - Seasons
Fundamentals of Programming 1
Professor Lara
10/7/21
Analysis
In this program, we are solving whether certain dates correlate with a specific
season. A month and day are inputted by the user and an output text will tell it what
season that date belongs to.
Variables: There are only two variables used in this program. The first variable is named
“month”. The second variable is named “day”. The month variable is under a string
variable type. And the day variable is under an integer variable type.
Data Validation: The month and day variables will be put under multiple “if” statements
to determine the dates seasons. Most “if” statements will only look for the month inputs
and other statements will need to look at the day.
/*Isaac Bernal
Fundamentals of Programming 1
Professor Lara
10/7/21
In this program, we are solving whether certain dates correlates with a
specific season. A month and day is inputted by the user and an output
text will tell it what season that date belongs to.*/
#include <iostream>
#include <string>
using namespace std;
int main() {
string month;//variable used for the input of month
int day;//variable used for the input of day
return 0;
}