Question: please answer this question all answer at chegg is wrong and it just prints all input values i need it for my computer assembling class

please answer this question all answer at chegg is wrong and it just prints all input values i need it for my computer assembling class thanks.

Write a program in ARM using ARMSim# to perform the following tasks:

Open a file named "integers.dat" and keep track of the following information.

1. the first integer value (i)

2. the second integer value (j)

3.the total number of integers in the file

4.the number of integers greater than i

5.the number of times integer j appears

Output the four pieces of information to the console (stdout) For example, if "integers.dat" contains the integers "0 4 134 -10 -34 77 4 -654 20 4" I would expect "0 4 10 6 3" to be the result.

Meeting the above requirements is a bare minimum for the assignment. In order to get full credit, your program should: have appropriate comments (not too much and not too little) check for errors, such as a missing file or an empty file have a readable output (e.g. "Integer i is 0. Integer j is 4. File contains 10 integers. There are 6 integers greater than i. Integer j appears 3 times.") Please submit a single file called "project1.s" to the assignment.

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