Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

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

Views: 568

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 

Click on the below link to download the file

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 Spring 2021 || Modern Programming Languages

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

 

ADA

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

 

ADA

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

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service