Chapter 5 IM Answers

Chapter 5 IM Answers - An Introduction to Programming with...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
An Introduction to Programming with C++: Fifth Edition 978-1-4188-3618-4 Chapter 5 Answers CONCEPT LESSON REVIEW QUESTIONS 1. a diamond 2. c == 3. a != 4. a item == “CHAIR” || item == “DESK” 5. d initial == ‘A’ || initial == ‘a’ 6. b false 7. a true 8. a true 9. a true 10. a arithmetic 11. a transform(emp.begin(), emp.end(), emp.begin(), toupper); 12. b initial = toupper(initial); EXERCISES – PENCIL AND PAPER 1. if (quantity > 10) cout << “Over 10” << endl; else cout << “Not over 10” << endl; //end if 2. cout << “Enter the hours: ”; cin >> hours; if (hours > 40) cout << “Overtime” << endl; else cout << “Regular” << endl; //end if 3. if (num1 == num2) cout << “Equal” << endl; //end if 4. initial = toupper(initial); 5. initial == ‘x’ 6. transform(name.begin(), name.end(), name.begin(), toupper); 7. state == “ILL” || state == “IND” EXERCISES – COMPUTER 1. See the Cpp5\Chap05\Ch5ConE01 Solution-IM files. 2. See the Cpp5\Chap05\Ch5ConE02 Solution-IM files. 3. See the Cpp5\Chap05\Ch5ConE03 Solution-IM files. 4. See the Cpp5\Chap05\Ch5ConE04 Solution-IM files. 5.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

Chapter 5 IM Answers - An Introduction to Programming with...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online