Question: i need help writing this code program. please help. Are you Solvent or Bankrupt? Suppose savings and expenses are variables of type double that have
i need help writing this code program. please help.
Are you Solvent or Bankrupt?
Suppose savings and expenses are variables of type double that have been given values by the user. Write program that checks if the saving is greater than or equal to the expenses. In this case, the program outputs the word Solvent, decreases the value of savings by the value of
expenses, and sets the value of expenses to zero if saving is at least as large as expenses. If saving is less than expenses, the program simply outputs the word Bankrupt and does not change the value of any variables.
Sample input :
Sample output :
Solvent: New savings amount is $
Sample input :
Sample output :
BANKRUPT
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
