Question: Write an if-else statement for each of the problems below: a. Output the word High if the value in the variable score is greater than

Write an if-else statement for each of the problems below: a. Output the word High if the value in the variable score is greater than 100 and output the word Low if the value of the variable score is at most 100. b. Suppose you have two variables called savings and expenses that already contain a value. Write an if-else statement that does the following: That will output the word solvent, decreases the value of savings by the value of expenses, and sets the value of expenses to zero provided that savings is at least as large as expenses. If however, savings is less than expenses, the statement simply outputs the word Bankrupt and does not change the value of any variables
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
