28. Write a program to ask the user to enter the marks in any four subject and display whether the user is pass or fail.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Algorithm:

Step 1: Start

Step 2: Input marks of any four subjects. (a , b, c, d)

Step 3: total = a + b + c + d

Step 4: avg = total / 4

Step 5: If avg > 40

GoTo Step 6

Else GoTo Step 7

Step 6: Print “ You are Pass” 

GoTo Step 8

Step 7: Print “ You are Fail”

Step 8: Stop/End

Flowchart:

Create a flowchart and an algorithm to display weather the user is pass or fail.
Create a flowchart and an algorithm to display weather the user is pass or fail.
Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

27. Write a program to display total surface area and volume of cylinder.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Next Post

29. Write a program to display volume of cylinder.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Related Posts