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

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

Latest Activity

5 hours ago
7 hours ago
7 hours ago
7 hours ago
sweet angel liked Mustafa Madani's profile
9 hours ago
10 hours ago
11 hours ago