Answer:
#include <iostream>
#include <string>
using namespace std;
int main() {
string mth;
int dy;
cin >> mth >> dy;
if ((mth == "January" && dy >= 1 && dy <= 31) || (mth == "February" && dy >= 1 && dy <= 29) || (mth == "March" && dy >= 1 && dy <= 19) || (mth == "December" && dy >= 21 && dy <= 30))
cout << "Winter" << endl;
else if ((mth == "April" && dy >= 1 && dy <= 30) || (mth == "May" && dy >= 1 && dy <= 30) || (mth == "March" && dy >= 20 && dy <= 31) || (mth == "June" && dy >= 1 && dy <= 20))
cout << "Spring" << endl;
else if ((mth == "July" && dy >= 1 && dy <= 31) || (mth == "August" && dy >= 1 && dy <= 31) || (mth == "June" && dy >= 21 && dy <= 30) || (mth == "September" && dy >= 1 && dy <= 21))
cout << "Summer" << endl;
else if ((mth == "October" && dy >= 1 && dy <= 31) || (mth == "November" && dy >= 1 && dy <= 30) || (mth == "September" && dy >= 22 && dy <= 30) || (mth == "December" && dy >= 0 && dy <= 20))
cout << "Autumn" << endl;
else
cout << "Invalid" << endl;
return 0;
}
Explanation:
Answer:
#include <stdio.h>
int main()
{
int avg = 0;
int sum =0;
int x=0;
/* Array- declaration – length 4*/
int num[4];
/* We are using a for loop to traverse through the array
* while storing the entered values in the array
*/
for (x=0; x<4;x++)
{
printf("Enter number %d \n", (x+1));
scanf("%d", &num[x]);
}
for (x=0; x<4;x++)
{
sum = sum+num[x];
}
avg = sum/4;
printf("Average of entered number is: %d", avg);
return 0;
}
Answer:
lo que es cierto del software de código abierto?
opera con los principios subyacentes de la producción de iguales y la colaboración masiva, creando un desarrollo de software más sostenible para los usuarios finales.
Explanation:
Answer:
Moreover, buildings need HVAC installed in them because:
HVAC systems are used for controlling the overall climate in a building. ...
HVAC fosters enhanced productivity in offices as they feel comfortable. ...
HVAC improves air quality in the building, helping make it appropriate for human breathing and comfort. ...
HVAC systems help you achieve more savings when it comes to energy bills
Explanation: