Case1 If Diagonally Opposite Chairs Have To Cross Along Edges of Room
Case1 If Diagonally Opposite Chairs Have To Cross Along Edges of Room
Case1 If Diagonally Opposite Chairs Have To Cross Along Edges of Room
A2]
Case1 if diagonally opposite chairs have to cross along edges of room
stand up while true if not
if touching wall
turn left 90 degrees continue
if touching chair
sit down
case2:if diagonally placed chairs and allowed to cross diagonally or are placed
across the room and facing each other
Stand up
While true
Take step
Sit down
A3]input ID number
Display ID number, first name, last name, major field of study, grade point average
i=1 list1=[]
While i<=rec
C)
list1=[]
While True
If yes
a5]
a]algorithm
STEP1: get account number
STEP3: set i as 1
set i=1
i=i+1
output:
enter account number:85496
enter name:Arjun Narayanan
enter balance due:19000
account number is 85496
CUSTOMER NAME IS ARJUN.NARAYANAN
Your balance due for 1 month is 17100.00
thank you
B]
STEP4: set i as 1
if account number=12345
break
set i=1
flowchart:
code:while True:
enter name:arjun.narayanan
enter balance due:20000
account number is 344692
customer name is arjun.narayanan
Your balance due for 1 month is 18000.00
Your balance due for 2 month is 16000.00
Your balance due for 3 month is 14000.00
Your balance due for 4 month is 12000.00
Your balance due for 5 month is 10000.00
Your balance due for 6 month is 8000.00
Your balance due for 7 month is 6000.00
Your balance due for 8 month is 4000.00
Your balance due for 9 month is 2000.00
Your balance due for 10 month is 00.00
thank you
Your balance due for 3 month is 56000.00
Your balance due for 4 month is 48000.00
Your balance due for 5 month is 40000.00
Your balance due for 6 month is 32000.00
Your balance due for 7 month is 24000.00
Your balance due for 8 month is 16000.00
Your balance due for 9 month is 8000.00
Your balance due for 10 month is 00.00
thank you