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 5 integer variables for the user to input 5 integersfrom the keyboard from range 0-100. You should then calculate the sum of those 5 numbers and storein a variable called UserSum.Next, you should open the file called MyNumbers.txt and input those 5 numbers into 5 integervariables. You should then calculate the sum of those 5 numbers and store in a variable called FileSum.Finally, you are to display the difference between the UserSum and the FileSum (UserSum FileSum)and store it in a variable named Difference.Write the Difference to a file called Difference.txt. Then display on the console as follows:The difference between (UserSum) and (FileSum) is (Difference).Where (UserSum)(FileSum) 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 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!