write a pseudo code for a summer vacation with 2 if statements anda loop.
Solution
`Hey,
Note: Brother in case of any queries, just comment inbox I would be very happy to assist all your queries
Psuedo code for summer vacation:
Declare variables
bool WeatherConditionOk=false;
double amount=2000;
int numberOfDays=4;
int temp;
bool rainPossibility;
double rent=600;
bool tourPossible;
Use if statement to check the weather condition
if(temp<40 && rainPossibility ==false)
{
WeatherConditionOk=true;
}
Use looping structure to check the availability of fund forvacation days;
Declare temporary check variable;
double check=0;
for(int i=0;i<numberOfDays;i++)
{
check=check+500;
}
Compare the expense with the amount in hand.
If it is within limit then tour is possible or otherwise it isnot
If(check<amount && (amount-check=1000))
{
tourPossible=true;
}
else
{
tourPossible=false;
}
Stop
Kindly revert for any queries
Thanks.