Sta 302 Assignment Solution Cs401

Assignment # 1

MTH303 (Fall 2014)

Total marks: 15
Lecture # 1 to 10
Due date: 01/12/2014
DON’T MISS these important instructions:
• Upload assignments properly through LMS, (No Assignment will be accepted through email).
• All students are directed to use the font and style of text as is used in this document.
• This is an individual assignment, not group assignment, so keep in mind that you are supposed to submit your own, self made & different assignment even if you discuss the questions with your class fellows. All similar assignments (even with some meaningless modifications) will be awarded zero marks and no excuse will be accepted. This is your responsibility to keep your assignment safe from others.
• Above all instructions are for all assignments so may not be mentioned in future.
• Solve the assignment on MS word document and upload your word (.doc) files only.

Question 1: Marks 5


Distinguish the linear and non-linear differential equations out of the following.

i)
ii)
iii)
iv)
v)


Question 2: Marks 10

Solve the Bernoulli differential equation by using an appropriate substitution.

CS401 Assignment No 2 Spring 2017

Here you can read and Download CS401- Computer Architecture and Assembly Language Programming Assignment No 2 Spring 2017 Solution and Discussion. Assignment Total marks = 20. CS401 Assignment No 2 Deadline Date 16 May, 2017. Previously we shared CS401 Assignment No 1 Solution Spring 2017.
CS401 Assignment No 2 Spring 2017 Solution and Discussion
Recommended:CS401 Mid Term Past Papers / Notes

You Can Also Download CS401 Mid Term Papers,CS401 Short Notes, CS401 Assignment Solutions, CS401 Lecture Wise Questions Answers Files, CS401 Solved MCQs, CS401 Solved Quiz , CS401 Solved Mid Term Subjective Papers , CS401 Mid Term Objective Papers from Virtual Study Solutions For Preparation of Mid Term Papers.

Topic Covered in CS401 Assignment:


  • Branching
  • Unconditional Jumps & Relative Addressing
  • Bit Manipulation
  • Multiplication
  • Bitwise Operations & Masking Operations
Recommended : CS401 All Final Term Past Papers

CS401 Assignment Rules for Marking


  • It should be clear that your assignment would not get any credit if: 
  • The assignment is submitted after the due date. 
  • The submitted assignment does not open or file is corrupt. 
  • Strict action will be taken if submitted solution is copied from any other student or from the internet. 
  • You should consult the recommended books to clarify your concepts as handouts are not sufficient.
  • You are supposed to submit your assignment in .doc or docx format.
  • Any other formats like scan images, PDF, zip, rar, ppt and bmp etc will not be accepted.
Recommended :C++ Programming basic Concepts and Questions

CS401 Assignment NOTE

No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date. 

If you people find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline no queries will be entertained in this regard.

For any query, feel free to email at: cs401@vu.edu.pk

CS401 Assignment Question


Marks = 20

An arithmetic progression (AP) or arithmetic sequence is a sequence of numbers such that the difference between the consecutive terms (An-1& An) is constant “d”.

You are required to write assembly language code that has two different subroutines:
1 - Subroutine to generate an Arithmetic Sequence

You will have to write a subroutine named as “A_Sequence”, which will use some local variables “ASeq” & “Ddiff”.
  • Where the “Ddiff” is a data word contains Dh (0xD). 
  • The Arithmetic Sequence “ASeq” will start from a decimal number 3. 

This subroutine will generate first 10 terms of Arithmetic Sequence (ASeq). So, Arithmetic Sequence (ASeq) will be shown as:

2 - Subroutine to find the Arithmetic Sequence Term.

You will have to write a subroutine named as “N_Term”. In this subroutine, while using the Arithmetic Sequence (ASeq) and (Ddiff) from previous subroutine, you are required to find the value of 23rd term of arithmetic sequence.
Recommended :How to write C++ Program to make a Simple Snake Game

CS401 Assignment No 2 Solution Spring 2017

CS401 Assignment No 2 solution

[org 0x0100]

jmp start

number: db02

multiplicand:db0

multiplier: db0

multiResult: dw0

squareResult:dd0

square: mov[multiplicand], AX

mov[multiplier], AXcallmult

movAX,[multiResult]mov[squareResult], AX

ret

multi: movCL,8

movBX,[multiplicand]movDX,[multiplier]

carryCheck: shr BX, 1jncskip

add[multiResult],BX

skip: shl BX, 1

decCL

jnzcarryCheckret

start: movAX,[number]

call square

movDX,[squareResult]

subbyte[number],

1addDX, AX

add byte[number],

2movAX,

[number]mov[multiplicand],

AXmovbyte[multiplier],

2call multi

addDX,[multiResult]

shrDX,1 ; divisionby2

movAX,0x4c00 ;ending programint0x21

Download Link for CS401 Assignment No 2



Please Subscribe below or Like us on Facebook. Thank You.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *