Question 19 Value X Following Statement Float X 30 40 3 2 5 1 575 2 550 3 175 4 375 Questi Q30749095

Question 19 What is the value of x after the following statement? float x; 3.0 4.0 (3 2)/ 5: 1. 5.75 2. 5.50 3. 1.75 4. 3.75 Question 20 What is the value of x after the following statements? float x: x = 0; x3.04.0 x 2.0: 1. 22.0 2. 12.0 3. 10.0 4. 14.0 Question 21 Given the following code fragment and the input value of 4.0, what output is generated? tloat tax: float total: cout s renter the cost of the itemin-i cin > total: if ( total 3.0) tax - 0.10 cout <s total+ (total tax) s endli eise cout << total s endli 2. 4.4 3. 4.0 4. 3.3

media%2F5a3%2F5a3720c7-cec2-4477-a276-60

media%2F39a%2F39ae8b05-2661-4968-8a56-b7

media%2F558%2F5580e4da-9ac9-494f-b22b-45

media%2Fb02%2Fb02ef317-5b89-4005-a269-db

Question 19 What is the value of x after the following statement? float x; 3.0 4.0 (3 2)/ 5: 1. 5.75 2. 5.50 3. 1.75 4. 3.75 Question 20 What is the value of x after the following statements? float x: x = 0; x3.04.0 x 2.0: 1. 22.0 2. 12.0 3. 10.0 4. 14.0 Question 21 Given the following code fragment and the input value of 4.0, what output is generated? tloat tax: float total: cout s renter the cost of the itemin-i cin > total: if ( total 3.0) tax – 0.10 cout Show transcribed image text

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *