Given the following program, which line(s) cause(s) output t…
Given the following program, which line(s) cause(s) output to be displayed on the screen? 1 // This program displays my gross wages. 2 // I worked 40 hours and I make $20.00 per hour. 3 #include 4 using namespace std; 5 6 int main() 7 { 8 int hours; 9 double payRate, grossPay; 10 11 hours = 40; 12 payRate = 20.0; 13 grossPay = hours * payRate; 14 cout
Read DetailsWhat will be displayed after the following statements execut…
What will be displayed after the following statements execute?int funny = 7, serious = 15;funny = serious % 2;if (funny != 1){ funny = 0; serious = 0;}else if (funny == 2){ funny = 10; serious = 10;}else{ funny = 1; serious = 1;}cout
Read Details