Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The program below calculates the total mark of a bachelor course to determine if a student pass or fail of the course. Identify at
The program below calculates the total mark of a bachelor course to determine if a student pass or fail of the course. Identify at least SIX (6) syntax errors, state the line number then provide the correct code respectively, as an example shown in Table 1 below. 1. ##include 2. 3. int main 4. ( 5. struct assessment 6. 7. 8. 9. int quiz; int test; int FE; 10. } 11. 12. 13. 14. 15. here; 16. 17. 18. 19. 20. { 21. 22. int total=0; struct assessment SEBB2033 (18, 20, 0); printf("FE: "); scanf("%f", SEBB2033.FE); if (SEBB2033.FE> 50) printf("Invalid FE mark. Please reenter. "); continue here; 23. } 24. 25. 26. 27. 28. total SEBB2033.quiz +SEBB2033.test +SEBB2033.FE; (total>80)? printf ("Pass "), printf ("Fail "); return 0; 29.) Table 1. Sample of your answer Code line Line 1. #include Correct C code
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started