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 01:00
Program description: a c# app is to be created to produce morse code. the morse code assigns a series of dots and dashes to each letter of the alphabet, each digit, and a few special characters (such as period, comma, colon, and semicolon). in sound-oriented systems, the dot represents a short sound and the dash represents a long sound. separation between words is indicated by a space, or, quite simply, the absence of a dot or dash. in a sound-oriented system, a space is indicated by a short period of time during which no sound is transmitted. the international version of the morse code is stored in the data file morse.txt.
Answers: 3
question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
The forerunner to cell phones, pdas, and smartphones was
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
Need asap assignment directions: think of an organization (business, religious institution, volunteer organization, sports team) with which you have been involved. imagine outfitting it with an it infrastructure. prepare a plan for what you would do to support outfitting it. draw a map of a network connecting all the individuals, give them pcs and printers, and lay out the design as best you can. the purpose is to begin working with these concepts, not to build a perfect network.
Answers: 2
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
History, 11.12.2019 19:31
question
Mathematics, 11.12.2019 19:31
question
History, 11.12.2019 19:31
Questions on the website: 13722359