need in 6hours

profiletaneta89
ca2-fall2015.pdf

National University of Computer & Emerging Sciences –FAST (Isb) Dept. of Computer Science: Computer Organization & Assembly Language-Fall 2015

1. No Roll # - No grade! Due Date: Sep 10, 2015

till 8:00am

Demo based evaluation

2. Programming Tasks

3. Only practice can make you perfect so Keep Calm and Code On 

Sep 04, 2015 Page 1 of 4

Roll #: Section:

1. Make following patterns using nested loops;

-----------------------------------------------------------------------------------------------------------------

1

212

32123

4321234

543212345

4321234

32123

212

1

-----------------------------------------------------------------------------------------------------------------

12345

23456

34567

45678

56789

Sep 04, 2015 Page 2 of 4

-----------------------------------------------------------------------------------------------------------------

A

BC

CDE

DEFG

EFGHI

-----------------------------------------------------------------------------------------------------------------

|_

||_

|||_

||||_

|||||_

||||||_

51

52

53

54

41

42

43

31

32

2 1

Sep 04, 2015 Page 3 of 4

2. Make multiplication table with size given by user. Assuming for size 6, table will be as;

1 2 3 4 5 6

1 1 2 3 4 5 6

2 2 4 6 8 10 12

3 3 6 9 12 15 18

4 4 8 12 16 20 24

5 5 10 15 20 25 30

6 6 12 18 24 30 36

Note: Take asciis of space, carriage return, line feed from asci table.

3. Write a code to find largest factor of a number, given by user e.g;

For number 24, its 12

Note: For this, you must know how to have double digit input and double digit output

Sep 04, 2015 Page 4 of 4

Coding Practice:

1 Variable names must be meaningful

2 Codes must be well commented

3 Make Labels wherever required. Unnecessary labeling will help us to give you zero without

demo.

Submission Guidelines:

1 Only one submission is allowed so be careful about it.

2 You must name each text file as batch_rollnumber_QuestionNumber as; 14_1234_01.txt. You must

submit 3 text files for 3 questions.

3 If SLATE stops working at the last moment (if condition needs to be validated otherwise else exists

so don’t bother condition) then you must submit a folder containing all text files with name as;

batch_rollnumber_section [14_1234_B] to [email protected]. Subject of your email must

be ‘COAL_Assignment_02’. This email id is only for submissions and don’t expect reply from this

id, either.

4 Keep striving till you don’t get it. There is no other blessing for a Computer Science student

than being sufficient in coding