Question: When the given integer variable numOutfits is: less than or equal to 5 , output Small suitcase. between 5 exclusive and 1 2 exclusive, output

When the given integer variable numOutfits is:
less than or equal to 5, output "Small suitcase".
between 5 exclusive and 12 exclusive, output "Large suitcase".
greater than or equal to 12, output "Must pack less".
End with a newline.
Ex: If the input is 4, then the output is:
Small suitcase
int numoutfits;
cin numoutfits;
if (numoutfits 5){
}
cout "Small suitcase";
if else (numoutfits 12){
}
cout "Large suitcase";
if else (numoutfits 12){
})
cout "Must pack less";
return 0;
}
 When the given integer variable numOutfits is: less than or equal

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Question Write 2 5 0 words one double spaced page from your perspective as ... View full answer

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!