Answered step by step
Verified Expert Solution
Link Copied!

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 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 ;
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions