Python Labs For Practice and make better., Assignments of Java Programming

These are python 3.9 version labs for your practice work more as you can.

Typology: Assignments

2020/2021

Uploaded on 04/18/2021

muhammad-rehan-6
muhammad-rehan-6 🇵🇰

5

(2)

2 documents

1 / 11

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Name : Muhammad Rehan
CMS ID : 342377
1)Pseudocode:-
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
Flowchart:-
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Python Labs For Practice and make better. and more Assignments Java Programming in PDF only on Docsity!

Name : Muhammad Rehan

CMS ID : 342377

1)Pseudocode:-

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

Flowchart:-

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)

3)Pseudocode:-

Exam score (A,B,C,D,E) , Passing score =P

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

3) Flowchart:-