Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Studying for C++ exam, I did work on these solutions but I want to be sure about on how to do them, and if I

image text in transcribedStudying for C++ exam, I did work on these solutions but I want to be sure about on how to do them, and if I did them correctly. I want the answers in basic C++ program

1. Write code that takes a whole number from user. 2. Write code that takes a real number from user. 3. Write code that takes a word (no whitespace, multiple letters) from user. 4. Write code that takes a single letter from user. 5. Write code that takes 2 whole numbers from user in one shot. 6. Write code that take 3 real numbers from user in one shot. 7. Write code that takes a phrase or word from user. 8. Using switch-case statement write code that takes a number from user and prints out the following. 1 Double double burger Cheese burger Hamburger Other Invalid choice 9. Write code that takes the size of their foot from user and prints out suggested slipper size. ~6 (inclusive) Small Above 6-8 (inclusive) Medium Above 8 Large 10. Write code that takes 2 real numbers in one shot and print smaller number. (If they are the same, you can print any of the two.) 11. Write code that takes two person's genders from a user. (Assume user will only input either M or F where M is for male and F is for female.) If both are male, then output They can be roommates in Smith Hall. Otherwise if both are female, then output "They can be roommates in Simmons Hall." For all other cases, output "They cannot be roommates

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

Principles Of Multimedia Database Systems

Authors: V.S. Subrahmanian

1st Edition

1558604669, 978-1558604667

More Books

Students also viewed these Databases questions

Question

3.11 Identify methods of physiological measurement.

Answered: 1 week ago

Question

Consistently develop management talent.

Answered: 1 week ago

Question

Create a refreshed and common vision and values across Europe.

Answered: 1 week ago

Question

Provide the best employee relations environment.

Answered: 1 week ago