Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Next Generation Databases NoSQLand Big Data

Authors: Guy Harrison

1st Edition

1484213300, 978-1484213308

More Books

Students also viewed these Databases questions

Question

Explain the strength of acid and alkali solutions with examples

Answered: 1 week ago

Question

Introduce and define metals and nonmetals and explain with examples

Answered: 1 week ago