






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
These are python 3.9 version labs for your practice work more as you can.
Typology: Assignments
1 / 11
This page cannot be seen from the preview
Don't miss anything!







Let num1=A, num2=B, num3=C Step1) Start Step2) Input num(A,B,C) Step3) If numA>numB and numA>numC then Go to step 6 Else Step4) If numB>numC and numB>numA then Go to step 6 Else Step5) If numC>numA and numc>numB then Step6) Display “num” is largest num. Step7) Stop
Pseudocode:-(b) O=Overtime hour Step1) Start Step2) I= Step3) Input N,H,O Step4) If N<=I then calculate W=NH Else N>I then calculate W=40H +1.5HO Step5) Output “W”weekly pay Step6) Stop Flowchart:-(B)
C) pseudocode:- Gross Pay=G=W Step1) Start Step2) Input N,H,O Step3) Calculate G=H*N+O Step4) Display “W”weekly pay Step5) Stop Flowchart:-(C)
L=num of passing score , F=num of failing score Step1) Start Step2) L=0 , F= Step3) If A>=P then passed Else failed Step4) If passed calculate L=L+1 Else F=F+ Step5) If B>=P then passed Else failed Step6) If passed calculate L=L+1 Else F=F+ Step7) If C>=P then passed Else failed Step8) If passed calculate L=L+1 Else F=F+ Step9) If D>=P then passed Else failed Step10) If passed calculate L=L+1 Else F=F+ Step11) If E>=P then passed Else failed Step12) If passed calculate L=L+1 Else F=F+ Step13 Output “L” and “F” num of passing and failing score