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 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
Get step-by-step solutions from verified subject matter experts
