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

Top Trends

1

2

3

4

5

Zohaib Hassan

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

Latest Activity

4 minutes ago

2 hours ago

.... Ghalat fehmi hai ap ki huh......

2 hours ago
sweet angel liked ＋ ꜞꜞ STrAnGEr ꜞꜞ ＋'s discussion منہ دکھائی میں لعل لیتے ہیں
2 hours ago
sweet angel liked ＋ ꜞꜞ STrAnGEr ꜞꜞ ＋'s discussion اے خدا ہمیں ملا دے
2 hours ago
2 hours ago
sweet angel liked Ziddi Queen's discussion غور طلب بات
2 hours ago
sweet angel liked Mani Siddiqui's discussion Android hacking / Mobile Hacking
2 hours ago