Lavenesh D.

asked • 12/20/20

Create a complete C program for lecturers to keep track of students’ assessment.

Ask the user to enter the type of assessment, either Q for Quiz or A for Assignment.

o Use switch case statement to identify their choice.

o If their choice is Quiz:

▪ Ask the user to enter quiz 1 and quiz 2 marks.

▪ Sum up the marks.

▪ Display the assessment type and total.


o If their choice is Assignment:

▪ Ask the user to enter the assignment marks.

▪ Use if else statement to identify the status of the assignment based on the table below.


Assignment marks Assignment status

0 to less than 50 Re-do Assignment

50 to less than 70 Good

70 to 100 Excellent

Other values Not available


o Display the assessment type and the assignment status.

o If the user entered other values, display “Invalid assessment code entered”

o Display the results as shown below.


Enter type of assessment: Q                                                            Enter type of assessment: Q

Enter quiz 1 And Quiz 2 mark: 7.5 10                                                Enter assignment marks :67

Assessment Type: Quiz                                                                     Assessment type: Assignment

Quiz Total:17.50                                                                                  Status: Good



Patrick B.

for the mark of 67, the assessment should be A, not Q... I am only inputting ONE assignment score based on that sample I/O, as you DID NOT DIRECTLY answer my question. Therefore, I am ASSUMING there is only ONE assignment score based on the sample I/O
Report

12/20/20

1 Expert Answer

By:

Patrick B. answered • 12/20/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.