Question: When the given integer variable numberofoutfits is: greater than 1 6 , output Must pack less. between 7 inclusive and 1 6 inclusive, output Extra
When the given integer variable numberofoutfits is:
greater than output "Must pack less".
between inclusive and inclusive, output "Extra large suitcase".
between inclusive and inclusive, output "Midsized suitcase".
less than output "Bad input".
End with a newline.
Click here for examples
cin numberofoutfits;
if numberofoutfits
cout "Must pack less" endl;
else if numberofoutfits
cout "Extra large suitcase" endl;
else if numberofoutfits
cout "Midsized suitcase" endl;
else numberofoutfits
cout "Bad input" endl;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
