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.

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

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!