Write an if-else statement that outputs the word solvent


Problem

Suppose savings and expenses are variables of type double that have been given values. Write an if-else statement that outputs 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 if-else statement simply outputs the word Bankrupt and does not change the value of any variables.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write an if-else statement that outputs the word solvent
Reference No:- TGS02745648

Expected delivery within 24 Hours