Answered step by step
Verified Expert Solution
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
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 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 roommatesStep 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