# COMPUTER ARCHITECTURE cs301

INSTRUCTION TO SOLVE THIS SECTION B: THE BELOW LINK IS THE TUTORIAL FOR HOW TO SOLVE FLOATING POINT CALCULATIONS USING ASSEMBLY LANGUAGE:
https://chortle.ccsu.edu/AssemblyTutorial/Chapter-…
SOTWARE REQUIIRED IS QTSPIM
SUBMISSION INSTRUCTIONS: You are required on google drive. Your folder must include the following
2. Code in word document
3. Input and outputs screen short.
Q1- Write a MIPS 32 Assembly program that implements the following high-level C code:
float B=7.8 ;
float M=3.6;
float N=7.1;
float R = (- M * N) (M-B);
Q2- Implement the following C code in a complete MIPS 32 assembly language program. Substitute calls to syscall print float for the printf() function calls:
float X;
float Y;
if( X < Y )
printf(“X is lowern”);
else
printf(“X is not lowern”);

Run the program three times, each time assigning two values to X and Y that test your program’s logic. Choose the pairs of numbers from the following table:
1 7210260.5
2 7210272.15
3 9210720.2
4 9210059.25
5 11110029.3
6 12117021.4
Submit both your assembly code and sample output along with the chosen pairs from the above table. (one screen-shot of the output)
Q3: Area of a circle
Write a MIPS32 Assembly program that prompts the user for the radius of a circle. Calculate and display the circle’s area. Use the syscall procedures to read and print floats. Use PI as : 3.14159265359
Write a MIPS32 Assembly program to implement the following quadratic function: F(x) = 3×2 2x 8
The program should get the value of x from the user and then solve the equation and print the value of
F(x) to the console. Use the syscall procedures to read and print floats.

Don't use plagiarized sources. Get Your Custom Essay on
COMPUTER ARCHITECTURE cs301
Just from \$13/Page
Calculate the Price of your PAPER Now
Pages (550 words)
Approximate price: -

Why Choose Us

Top quality papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

We have hired a team of professional writers experienced in academic and business writing. Most of them are native speakers and PhD holders able to take care of any assignment you need help with.

Free revisions

If you feel that we missed something, send the order for a free revision. You will have 10 days to send the order for revision after you receive the final paper. You can either do it on your own after signing in to your personal account or by contacting our support.

On-time delivery

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & confidential

We use several checkers to make sure that all papers you receive are plagiarism-free. Our editors carefully go through all in-text citations. We also promise full confidentiality in all our services.

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

## Calculate the price of your order

Total price:
\$0.00

How it works?

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.