0
Write an algorithm and draw a flowchart to inputs marks and display "passed " if the marks or 40 or more else display "failed ".
4 Respuestas
+ 4
int marks;
cin>>marks;
if (marks >= 40)
cout<<"passed";
else
cout<<"failed";
+ 1
You should learn to study your programming questions carefully and figure them out on your own. Presenting some form of work on your part with your question, will motivate someone to help you out.
Try Pseudo coding to figure out programming questions.
Example (Pseudo code):
display input box
get input from user
store input as integer in variable
check if variable is greater than 40
print "passed" if variable is greater than 40
print "failed" if variable is less than 40
0
To check an print pass/Fail of given obtain mark assuming pass mark 40
- 1
hey guys pls help
write an algorithm to display a marks entered by user
@ Grade A:100-90
@ Grade B:89-70
@ Grade C:69-50
@ Grade F below 50
please someone to help