You have to make report card of a student including his bio-data (Name, AGE, Class), subject marks
(English, Urdu, Science, Pakistan Studies, Arts), percentage and grade. Grade specifications are as
follows
= > 80% A+ Grade
= > 70% & < 80 A Grade
= > 60% & <70 B Grade
= > 50 & < 60 C Grade
< 50 Fail
1. Print a proppt to enter a student's name
2. Read student.Name as a string
3. Print a proppt to enter the student's age
4. Read student.Age as integer
5. Print a proppt to enter the student's class
6. Read sudent.Class as a string
7. Set total eqial 0
8. Print a proppt to enter mark for English
9. Read student.English as integer
10. Add student.English to total
11. Read student.Urdu as integer
12. Add student.Urdu to total
13. Read student.Science as integer
14. Add studentScience to total
15. Read student.Pakistan as integer
16. Add student.Pakistan to total
17. Read student.Arts as integer
18. Add student.Arts to total
19. Set student.Percentage = total / 5
20. If student.Percentage > 80 set student.Grade equals "A+"
21. Else if student.Percentage > 70 set student.Grade equals "A"
22. Else if student.Percentage > 60 set student.Grade equals "B"
23. Else if student.Percentage > 50 set student.Grade equals "C"
24. Else set student.Grade equals "Fail"
Comments
Leave a comment