Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started