You are on page 1of 11

ASSIGNMENT-1

Question # 1:

Pseudo code:

.Start

.Initialize the number

.Take the input given by the user

.Print “The Entered Number Is”

.End
Program:
Question 2:
Pseudo Code:

.  Start
. Declare variables num 1, num 2, and sum.

. Read values for num1, num2.

. Calculate sum=num1+num2.

. Print sum

. End
Question 3:

Pseudo Code:

. Start

. Declare variables two numbers.

. Declare quotient and remainder.

.quotient=num1/num2

.print “quotient”

.remainder=num1%num2

.print “remainder”

.End
Question 4:

Pseudo Code:
.Start

.Declare variables two numbers.

.print “before swap a” and “before swap b”.

.put a=a*b, b=a/b, a=a/b

. print “after swap a” and “after swap b”.

. End
Question 5:
Pseudo Code:
.Start

.Initialize sum, a, b, c

.float average

.Read a, b, c

.sum= a + b + c

.average= (a + b + c)/3

.print sum and average

.End
Question 6:

Pseudo Code:
.Start
.Read the inches from the keyboard
.Feet=inches by 12
.yard=feet/3
.inches=inches
.Display the inches as output
Question 7:
Pseudo Code:
.Start
.Read the days from keyboard
.Week=days*0.1428
.Year=days*0.00273
.Days=1*days
.Display the week, year, days as output
.End
THE END

Name: Aureed Abid


Roll no:F2022266856

You might also like