Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started