Reference no: EM133234876
Use Visual Studio to create new C# console application which does the following
1. Ask the user to enter four numbers, three digits each
2. Save each number as four separate string variable
3. Convert all string inputs into double variables
4. Add the first three numbers and store the result in an integer variable called "firstThree."
5. Add all numbers and store the result in an integer variable called "totalSum"
6. Multiply the last two numbers and store the result in an integer variable called "lastTwo"
7. Add the variables "totalSum" and "lastTwo", saving the result as an integer variable
8. Subtract the fourth number from the "lastTwo" Variable
9. Output ALL results to the console.
10. In your Header comments, answer these questions:
- What happens if the user does not enter a number?
Is the result always what you expect?
- What possible errors can happen with running the code as you have designed it?
- What do you think would be a better approach or possible additions?