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, 21.06.2019 17:20
What do you need to know & understand about global expansion.
Answers: 2
question
Computers and Technology, 22.06.2019 07:30
Jasper and samantha are in a robotics competition. the guidelines state that the robots should be able to move a 10-gram weight at least 2 meters and turn in a circle. jasper and samantha have already built the robot. which step of the design process should they follow next to decide whether their robot meets the minimum criteria for the competition?
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
Which two technologies support the building of single-page applications?
Answers: 2
question
Computers and Technology, 24.06.2019 18:20
7. design a circuit with three inputs (x, y, and z) representing the bits in a binary number, and three outputs (a, b, and c) also representing bits in a binary number. when the input is 1, 2, or 3, the binary output should be one lesser than the input. when the input is 4, 5, or 6, the binary output should be one greater than the input. when the input is 0, the output is 0, and when the input is 7, the output is 7. show your truth table, all computations for simplification, and the final circuit.
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
Mathematics, 24.09.2019 03:30
Questions on the website: 13722363