0% found this document useful (0 votes)
3 views1 page

Coding Assignment #05

The document outlines a coding assignment for CSE 232, consisting of two tasks involving assembly programming. Task 1 requires writing instructions to input 10 single-digit numbers, display them, and calculate their summation, while Task 2 involves creating a program to compute the factorial of a single-digit number not exceeding 5. Students must submit their code in two separate files with their name and ID included in comments.

Uploaded by

amare
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Coding Assignment #05

The document outlines a coding assignment for CSE 232, consisting of two tasks involving assembly programming. Task 1 requires writing instructions to input 10 single-digit numbers, display them, and calculate their summation, while Task 2 involves creating a program to compute the factorial of a single-digit number not exceeding 5. Students must submit their code in two separate files with their name and ID included in comments.

Uploaded by

amare
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Prepared By

Ahmed Al Marouf
Lecturer, Dept. of CSE, DIU

CSE 232: Coding Assignment #05


Task 1:

Write a sequence of assembly instructions to do input 10 single-digit numbers


from user. Display them on the next line. Display the summation on the next
line.
Sample:
Enter 10 single-digit numbers: 1234567891
Numbers are: 1, 2, 3, 4, 5, 6, 7,8, 9, 1
Summation: 46

Hint: Use Stack to solve the problem.

Task 2:
Write an assembly program to read a single-digit number not more than 5.
Output the factorial of that number on the next line.
Sample:
Enter a number: 7 Enter a number: 3
Invalid Number Factorial: 6

Submission Procedure:
Write/Edit the codes given with the assignment. Make two separate files
task1_yourID.asm and task2_youID.asm
Note: You must add your Name and ID inside the .asm files in comment
format.
Submit both the files under the Coding Assignment created in Google
Classroom, within the deadline. Check deadline in Google Assignment.

You might also like