Computer Architecture and Organization Lab Assignment 1 - Fall 2020 (CEN-221), Assignments of Digital Electronics

Instructions for assignment 1 of the computer architecture and organization lab (cen-221) at bahria university (karachi campus) for the fall 2020 semester. The assignment includes three programming tasks in mips assembly language: writing a program to compare two numbers, writing a program to print the sum of even numbers up to a given range, and writing a program to get user input in double precision and print it. The submission deadline is 10th november, 2020, and late submissions will result in a deduction of marks.

Typology: Assignments

2019/2020

Uploaded on 12/05/2020

paul.walker123
paul.walker123 🇵🇰

5

(1)

1 document

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Question 1: Write a program in MIPS Assembly language to compare 2 numbers. If the numbers are
same print the output as follows:
The numbers are same
And if the numbers are different print the output as follows:
The numbers are different
Question 2: Write a program to print sum of even numbers up to a given range by the user.
Question 3: Write a program to get user’s input in double and print it.
Note:
If you submit your assignment after the given deadline then 2 Marks will
be deducted for the late submissions.
Copied assignment will be marked zero.
BAHRIA UNIVERSITY (KARACHI CAMPUS)
ASSGINMENT # 1 - FALL 2020
Computer Architecture and Organization Lab (CEN-221)
Class: BSE 3(B)
Course Instructor: Engr.Dr. Samar Yazdani Submission Deadline: 10th November, 2020
Lab Instructor: Engr. Saniya Sarim Max Marks: 5

Partial preview of the text

Download Computer Architecture and Organization Lab Assignment 1 - Fall 2020 (CEN-221) and more Assignments Digital Electronics in PDF only on Docsity!

Question 1: Write a program in MIPS Assembly language to compare 2 numbers. If the numbers are

same print the output as follows: The numbers are same And if the numbers are different print the output as follows: The numbers are different

Question 2: Write a program to print sum of even numbers up to a given range by the user.

Question 3: Write a program to get user’s input in double and print it.

Note :

 If you submit your assignment after the given deadline then 2 Marks will

be deducted for the late submissions.

 Copied assignment will be marked zero.

BAHRIA UNIVERSITY (KARACHI CAMPUS)

ASSGINMENT # 1 - FALL 2020 Computer Architecture and Organization Lab (CEN-221) Class: BSE 3(B) Course Instructor: Engr.Dr. Samar Yazdani Submission Deadline: 10th^ November, 2020 Lab Instructor: Engr. Saniya Sarim Max Marks: 5