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 C+ 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 1:
10090
Sample output 1:
Solvent: New savings amount is $10
Sample input 2:
100101
Sample output 2:
BANKRUPT
i need help writing this code program. please

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 Programming Questions!