Computers and Technology

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:30, amaliabarrera9
The can be used to paste text in any order
Answers: 1
image
Computers and Technology, 23.06.2019 05:00, sharkboy578
Acompany is inviting design for its new corporate logo from its users. this is an example of ? a. crowdfunding b. crowdvoting c. crowdsourced design d. crowdtracking
Answers: 3
image
Computers and Technology, 23.06.2019 13:30, Gearyjames8
Anetwork security application that prevents access between a private and trusted network and other untrusted networks
Answers: 1
image
Computers and Technology, 23.06.2019 15:00, MalikaJones
In the blank libreoffice writer document, to start the process of entering a date field into a letter, click on the insert menu. edit menu. file menu. fields menu.
Answers: 3
Do you know the correct answer?
MIPS assembly language The ideal gas law allows the calculation of volume of a gas given the pressu...

Questions in other subjects: