Question: 4. Write code segments to perform the following: a) Print You won! if score is greater than 100 and penalty is less than 10 (both

 4. Write code segments to perform the following: a) Print "You

4. Write code segments to perform the following: a) Print "You won!" if score is greater than 100 and penalty is less than 10 (both conditions must be true to win). Otherwise print "You lost." You may assume that score and penalty have already been declared and given values. b) Assign the largest of three double variables names num1, num2, and num3 to a new variable named largest. You may assume that num1, num2, and num3 have already been declared and given values

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!