subject

MIPS assembly language The ideal gas law allows the calculation of volume of a gas given the pressure(P), amount of
the gas (n), and the temperature (T). The equation is:
V = nRT / P
Since we only have used integer arithmetic, all numbers will be integer values with no decimal points. The constant R is 8.314 and will be specified as (8314/1000). This gives the same result. Implement the idea gas law program where the user is prompted for and enters values for n, T, and P, and V is calculated and printed out. Be careful to implement an accurate version of this program. Your program should include a proper and useful prompt for input, and print the results in a meaningful manner.
INSTRUCTIONS:
- Use the provided assembly source file as template. Note that the format IS mandatory as well as the header output. (See source file for details).
- File name must follow the specified format: last_first_assignment. asm
- Points will be deducted if format is not followed.
nguyen_kevin_prog1.asm
# Program File: Program-1.asm
# Author: Kevin Nguyen
# Purpose: Programming assignment #1

# P R O G R A M S E G M E N T #

.text
main:
# Print mandatory output
li $v0,4
la $a0, header
syscall
la $a0, info
syscall
la $a0, author
syscall
la $a0, footer
syscall
# Add your code below this line
# Program termination
li $v0, 10
syscall

# D A T A S E G M E N T #

.data
# Mandatory output
header: .asciiz "\n++"
info: .asciiz "\n| CMPE102-S2 - FA2019 - Program1" # Course & assignment information
author: .asciiz "\n| Kevin Nguyen - 1234" # full name and last 4 digits of studentID
footer: .asciiz "\n++\n"
# End of mandatory output
# Program data definition
# Add your data here

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
Hyperactive media sales has 10 windows 7 laptop computers used by sales-people in the organization. each laptop computer has several customized applications that are used during the sales process as well as customer relationship management software. all of the applications on the laptops are difficult to configure and have large data files. if all of the laptops have current hardware, what is the easiest way to install windows 10 on them?
Answers: 1
question
Computers and Technology, 22.06.2019 18:40
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
question
Computers and Technology, 22.06.2019 23:00
Is an attack that relies on guessing the isns of tcp packets
Answers: 2
question
Computers and Technology, 23.06.2019 00:40
Consider the following statements: struct nametype{string first; string last; }; struct coursetype{string name; int callnum; int credits; char grade; }; struct studenttype{nametype name; double gpa; coursetype course; }; studenttype student; studenttype classlist[100]; coursetype course; nametype name; mark the following statements as valid or invalid. if a statement is invalid, explain why.a.) student.course.callnum = "csc230"; b.) cin > > student.name; c.) classlist[0] = name; d.) classlist[1].gpa = 3.45; e.) name = classlist[15].name; f.) student.name = name; g.) cout < < classlist[10] < < endl; h.) for (int j = 0; j < 100; j++)classlist[j].name = name; i.) classlist.course.credits = 3; j.) course = studenttype.course;
Answers: 1
You know the right answer?
MIPS assembly language The ideal gas law allows the calculation of volume of a gas given the pressu...
Questions
question
Physics, 14.12.2020 01:30
question
Mathematics, 14.12.2020 01:30
Questions on the website: 13722362