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: 552

### 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

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

## Latest Activity

Asad waqas added a discussion to the group PSY101 Introduction to Psychology

### PSY101 GDB 1 Solution Spring 2021 || psy101 gdb solution 1 || 100% Correct Solution

18 minutes ago
32 minutes ago
Mr. Khan! liked ＋ ꜞꜞ STrAnGEr ꜞꜞ ＋'s discussion مرحلے شوق کے دشوار ہوا کرتے ہیں
32 minutes ago
Mr. Khan! liked Mani Siddiqui's discussion Create your Final term datasheet
32 minutes ago
Mr. Khan! liked Laila kabeer's discussion Waqt badly ga tu.....
33 minutes ago
Mr. Khan! liked иαвєєℓ αнмє∂'s discussion !!!!!!!!!! ONLINE EXAM !!!!!!!!!!
33 minutes ago
33 minutes ago
33 minutes ago