Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Write an if - else statement

a) Suppose savings and expenditure are variables of type double. Write an if – else statement that request two inputs from the user and outputs the word “Solvent”, decreases the value of savings by the value of expenditure, and sets the value of expenditure to zero, provided savings is at least greater than the expenditure. If, however, savings is less than expenditure, the program should output the word “Bankrupt”.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question