Question: YOUR PROGRAM, you are to create a program and declare 5 integer variables for the user to input 5 integersfrom the keyboard from range 0
YOUR PROGRAM, you are to create a program and declare integer variables for the user to input integersfrom the keyboard from range You should then calculate the sum of those numbers and storein a variable called UserSum.Next, you should open the file called MyNumberstxt and input those numbers into integervariables. You should then calculate the sum of those numbers and store in a variable called FileSum.Finally, you are to display the difference between the UserSum and the FileSum UserSum FileSumand store it in a variable named Difference.Write the Difference to a file called Differencetxt Then display on the console as follows:The difference between UserSum and FileSum is DifferenceWhere UserSumFileSum and Difference are the contents of the variables with those names.When you are done, you will submit the cs file via Blackboard.
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
