Question: Computer Organization & Assembly programming Lab#4 i. Write a program that reads and stores an array of 10 records, each record consists of name of

 Computer Organization & Assembly programming Lab#4 i. Write a program thatreads and stores an array of 10 records, each record consists ofname of type string of up to 40 characters, age of type

Computer Organization & Assembly programming Lab#4 i. Write a program that reads and stores an array of 10 records, each record consists of name of type string of up to 40 characters, age of type integer, and salary of type integer ii. Write a program that prints the array of records of Parti) in a readable format( a single line for each employee). iii. Write a program that swaps any two records, and then prints the entire array. The program must ask the user to enter the record numbers. Assume the record are numbered from 1 to 10. For example, if the user enters 4 and 7, then the program swaps the record 4 and the record 7. The following code illustrates how a record can be read, stored, and printed #The following reads two records Empl and Emp2. each record consists of two attributes name and of type string of up to 40 characters and salary of type integer. and thern prints both records data. Emp: .space 88. newline: asciiz"In". text #read and store the name of the first record la $a0, Emp. Computer Organization & Assembly programming Lab#4 i. Write a program that reads and stores an array of 10 records, each record consists of name of type string of up to 40 characters, age of type integer, and salary of type integer ii. Write a program that prints the array of records of Parti) in a readable format( a single line for each employee). iii. Write a program that swaps any two records, and then prints the entire array. The program must ask the user to enter the record numbers. Assume the record are numbered from 1 to 10. For example, if the user enters 4 and 7, then the program swaps the record 4 and the record 7. The following code illustrates how a record can be read, stored, and printed #The following reads two records Empl and Emp2. each record consists of two attributes name and of type string of up to 40 characters and salary of type integer. and thern prints both records data. Emp: .space 88. newline: asciiz"In". text #read and store the name of the first record la $a0, Emp

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!