Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles of Information Systems

Authors: Ralph M. Stair, George W. Reynolds

9th edition

978-1337097536, 1337097535, 978-1337515634, 1337515639, 978-0324665284

More Books

Students also viewed these Programming questions

Question

3. Speak respectfully. Use the students name.

Answered: 1 week ago

Question

What is a distributed database system?

Answered: 1 week ago

Question

8. Of what use is the central limit theorem in estimation?

Answered: 1 week ago