Question: 3. [10 points) In the box, write exactly what will be dieplayed when the following pogram in executod. - inelude int cow =9,pig=3, goat =7t

3. [10 points) In the box, write exactly what will be dieplayed when the following pogram in executod. - inelude int cow =9,pig=3, goat =7t cow = pig + poat, 2; cout "cow" " cow endi; 4. [10 points] In the box, write exactly what will be displayed when the following program in executed. \#include using namespace std; int main () \& int deer - 4 ; bool bear; bear = deer +3==7 deert+; cout deer; if (bear) 1 deer = deer 2; cout deer; 5. [10 points] Write in the box exactly what the program segment will display. string deer = "Hines", bear = "Hodgins"; if ( deer I = "ERIC") if ( bear =" "Hodgins") cout "McNair"; else cout " Cherry"; else cout "Graham"; cout " Marteena"; exactly what will be displayed when the following program in executed. using namespace std; int main () i intcow=9,p1g=3,goat=7;cow=pig+goat/2;coutcowcowendl; 4. [10 points] In the box, write exactly what will be displayed when the following program in executed. \#include using namespace std; int main () 1 int deer =4; bool bear; bear = deer +3=7; deert+; cout \& deer; if (bear) 1 deer = deer 2; cout deer; 1 5. [10 points] Write in the box exactly what the program segment will display. string deer = "Hines", bear = "Hodgins"; if ( deer = "ERIC") if ( bear = "Hodgins" ) cout "McNair"; else cout " Cherry"; else cout " Graham"; cout " Marteena
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
