Predict the output for the C++ program in Program Q2 if the input by the user at line 4 is as in Table Q2. Program Q2 1. int age: 2. 3. cout>age: 5. 6. if(age>12) 7. 8. if(age>=15) 9. 10....


C++


Predict the output for the C++ program in Program Q2 if the input by the user at line 4 is as in Table Q2.<br>Program Q2<br>1.<br>int age:<br>2.<br>3.<br>cout<<>age: 5. 6. if(age>12) 7. 8. if(age>=15) 9. 10. coutee"Category D"; 11. 12. else 13. { 14. coute<"category c":="" 15.="" 16.="" )="" 17.="" jelse="" 18.="" {="" 19.="" if="" (age="">< 1)="" 20.="" 21.=""><"category b":="" 22.="" 23.="" else="" 24.="" 25.="" cout=""><"category a":="" 26.="" 27.="" }="" table="" q2="" answer="" age="" output="" 25="" 15="" 10="" 12.8="" "/="">
Extracted text: Predict the output for the C++ program in Program Q2 if the input by the user at line 4 is as in Table Q2. Program Q2 1. int age: 2. 3. cout<"enter age:":="" 4.="" cin="">>age: 5. 6. if(age>12) 7. 8. if(age>=15) 9. 10. coutee"Category D"; 11. 12. else 13. { 14. coute<"category c":="" 15.="" 16.="" )="" 17.="" jelse="" 18.="" {="" 19.="" if="" (age="">< 1)="" 20.="" 21.=""><"category b":="" 22.="" 23.="" else="" 24.="" 25.="" cout=""><"category a":="" 26.="" 27.="" }="" table="" q2="" answer="" age="" output="" 25="" 15="" 10="">

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here