www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

# CS508 Assignment 01 Spring 2021 Solution / Discussion

CS508 Assignment 01 Spring 2021 Solution / Discussion

Views: 548

### Replies to This Discussion

Share the Assignment Questions & Discuss Here....

Stay touched with this discussion, Solution idea will be uploaded as soon as possible in replies here before the due date.

# CS508 Assignment 01 Solution Spring 2021 Solution

CS508_Assignment%2301_Solution-Spring_2021.docx

CS508_Assignment#01_Solution-Spring_2021-Complete-Solution

CS508_Assignment%2301_Solution-Spring_2021-Complete-Solution.docx

# CS508 Assignment 1 Solution 2021 | CS508 Assignment No1 Solution Spring 2021

Cs508 Assignment 1 Solution 2021

code

function printG()

START_FUNCTION

variable height = 5

variable width = (2 * height) - 2

variable i = 0

variable j = 0

loop (i < height)

START_LOOP

j = 0 loop

(j < width)

START_LOOP

if ((i == 0 II == height 1) && (j == 0 j == width - 1))

START_IF

print(" ")

END_IF

else if (j == 0)

START_ELSE_IF

Printt("*'")

END_ELSE)IF

else if (i == 0 && j <= height)

START_ELSE_I

Print("*")

END_ELSE_IF

else if (i == height / 2 && j > height / 2)

START_ELSE_IF

print("*")

END_ELSE_IF

else if (i > height / 2 && j = width - 1)

START_ELSE_IF

print("*")

END_ELSE_IF

else if (i == height - 1 && j < width)

START_ELSE_IF

print("*")

END_ELSE_IF

else

START_ELSE

Pmt("")

END_ELSE

J++

END_LOOP

print(“\n”)

i++

END_LOOP

Question NO 2

Solution

SNOBOL

Imperative

LISP

Functional

Imperative, Object Oriented

FORTRAN

Imperative, Object Oriented

C#

Object Oriented

Cs508 Assignment 1 Solution 2021

code

function printG()

START_FUNCTION

variable height = 5

variable width = (2 * height) - 2

variable i = 0

variable j = 0

loop (i < height)

START_LOOP

j = 0 loop

(j < width)

START_LOOP

if ((i == 0 II == height 1) && (j == 0 j == width - 1))

START_IF

print(" ")

END_IF

else if (j == 0)

START_ELSE_IF

Printt("*'")

END_ELSE)IF

else if (i == 0 && j <= height)

START_ELSE_I

Print("*")

END_ELSE_IF

else if (i == height / 2 && j > height / 2)

START_ELSE_IF

print("*")

END_ELSE_IF

else if (i > height / 2 && j = width - 1)

START_ELSE_IF

print("*")

END_ELSE_IF

else if (i == height - 1 && j < width)

START_ELSE_IF

print("*")

END_ELSE_IF

else

START_ELSE

Pmt("")

END_ELSE

J++

END_LOOP

print(“\n”)

i++

END_LOOP

Question NO 2

Solution

SNOBOL

Imperative

LISP

Functional

Imperative, Object Oriented

FORTRAN

Imperative, Object Oriented

C#

Object Oriented

CS508_Assignment#01_Solution-Spring_2021-Complete-Solution

CS508_Assignment%2301_Solution-Spring_2021-Complete-Solution.docx

1

2

3

4

5

## VIP Member Badge & Others

How to Get This Badge at Your Profile DP

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

Management: Admins ::: Moderators

Other Awards Badges List

## Latest Activity

★---★ ⱮԱϚҠȺហ ȺచȺហ ★---★ posted discussions
29 minutes ago
saba zulfqar joined + M.Tariq Malik's group

### EDU302 Human Development and Learning

1 hour ago
иαвєєℓ αнмє∂ added a discussion to the group CS606 Compiler Construction

### CS606 ASSIGNMENT-03 Due Date Jul 29, 2021 TotalMarks 20

1 hour ago
1 hour ago
иαвєєℓ αнмє∂ added a discussion to the group STA301 Statistics and Probability

### STA301 Assignment-02 Due Date Jul 26, 2021 Total Marks 10.00

1 hour ago
иαвєєℓ αнмє∂ added a discussion to the group MGT101 Financial Accounting

### MGT101 ASSIGNMENT-01 Due Date Jul 28, 2021 TotalMarks 12

1 hour ago
+ ≋M≋S≋ replied to + ≋M≋S≋'s discussion Such me...........
1 hour ago
1 hour ago