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 16, output "Must pack less".
between 7 inclusive and 16 inclusive, output "Extra large suitcase".
between 1 inclusive and 6 inclusive, output "Mid-sized suitcase".
less than 1, output "Bad input".
End with a newline.
Click here for examples
cin numberofoutfits;
if (numberofoutfits >16){
}
cout "Must pack less" endl;
else if (7 numberofoutfits 16){
cout "Extra large suitcase" endl;
}
else if numberofoutfits 6{
}
cout "Mid-sized suitcase" endl;
else (numberofoutfits 1){
cout "Bad input" endl;
}
return ;
 When the given integer variable numberofoutfits is: greater than 16, output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!