Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit



E125 Programming in ‘C’ Course: Program Writing Assignment


At the beginning of the course, you were introduced to the make-up of this module. It was explained that, in Semester 1, the module would be assessed by means of a Blackboard test (worth 33.3% of the total module marks) and this C program writing assignment (also worth 33.3% of the total module marks). In Semester 2, you will have a final test which covers both Matlab and more advanced C programming (this covers the remaining 33.3% of the marks for the module).


For this assessed exercise, you are asked to write and submit a program in ‘C’ to carry out the particular task detailed here.


1 Administrative details

Your program must be handed in via Blackboard. The hand-in date for this exercise is 16.59pm on Tuesday 14th December 2021. You can hand your work in there anytime between the beginning of week 10 and the deadline. You are very strongly urged to not leave your submission to the latest possible moment to avoid computer related submission errors.

Late submission will result in a deduction of 5% of the total mark awarded for each working day after the      submission date, this is Faculty policy. (Working days – Monday to Friday - include working days within      standard vacation times). The only exceptions to this will usually be where illness or other serious                  extenuating circumstances have meant missing the hand-in date (medical evidence will often be needed to     sustain this exception). In such circumstances you MUST submit an Extenuating Circumstances form (not a self-certification form), available fromwww.sheffield.ac.uk/ssid/forms/circs, (before completing such a      form make sure you read the explanatory notes here first:http://www.sheffield.ac.uk/ssid/forms/circsnotes) hand in to the department Student Support Office.

If you believe you have good reason to ask for an extension to this hand-in date, you may discuss the circumstances with Matthew Hobbs and, at his discretion, a later hand-in date may be negotiated. (But please do the discussing well in advance of the original hand-in date expiring). Please note: being disorganised or lazy and so failing to meet the hand-in date by simply leaving tackling the exercise until it's too late is not a “good reason” and will not normally result in an extension ofthe hand-in date!

________________________________________________________________________________________


2.0 What your program should do

You have been asked to write a program to process module results (marks) for individual students so that their final end-of-year mark can be calculated and a year-end progression decision (‘pass’ or ‘fail’ the year) can be   made.  The rules for processing these results are as follows:

Assume that each student must take four modules that are each assessed by a final examination. Students must also take one course work module.  Each module is marked on a 100 point marking scale (that is with a         possible mark anywhere in the range of 0 to 100, expressed as a whole number only).

Rules for passing a module

A student will ‘Pass’ a module when they have achieve a mark in that module of40 or higher.  Where a   module is considered to be a ‘Pass’ then Credits will also be awarded for that module.  When a module is considered to be a ‘Fail’ (that is has a mark of less than 40) then no Credits are awarded.  Here are all the  modules that these students take & their credit weightings:


Module title

Credits awarded for a ‘Pass’

Maths 1

10

Maths 2

10

Tech. 1

10

Tech. 2

10

Course Work

20

Table 1: Module credit weighting


It can be seen that the maximum possible credits that a student may obtain is therefore 60.

A student’s year-end overall (weighted) average is calculated by adding (summing) their individual module marks together according to their credit value (weighting) and dividing this total by the total number of credits possible (this is known as a weighted average):



max imum _ possible _ credits

Consider the following example:



Subject

Maths 1

Maths 2

Tech. 1

Tech. 2

Course work

Credits Awarded

Overall Average

Mark Awarded

27

56

67

72

82

64.3

Possible Credits

10

10

10

10

20

Credits

Actually

Awarded

_

10

10

10

20

50

Table 2: Example of possible student results

27 *10 56 *10 67 *10 72 *10 82 * 20

Overall_ Average



Overall_ Average


Overall _ Average 64 .3333 _ recurring


Overall averages must be reported rounded up to just one decimal place after the decimal point (that is: ifthe second decimal place is ‘5’ or higher, then one is added to the first decimal place) 64.3333 will therefore be      reported as 64.3 (as the second decimal place is ‘3’, which is less than 5, so no change is made to the first         decimal place) whereas if, for example, the overall average had been 31.054 then it would have been reported   as 31.1 (as the second decimal place value here is ‘5’ and therefore 1 must be added to the first decimal place   making 31.1).

Rules for deciding overall Year-End Overall Result: Pass or Fail


The year-end progression (overall result) decision regarding whether a student ‘Passes’ or ‘Fails’ the whole year is made on the basis of both the credits awarded and the overall average.

To ‘Pass’ the year a student must obtain:




and

and




an overall average of 39.5 or higher


have been awarded at least 40 credits or more


the credits awarded must include 20 credits being awarded for course work module -  in other words students cannot ‘Pass’ the whole year without also obtaining a ‘Pass’ in course work.



2.1 Examples


Consider the following example:



Subject

Maths 1

Maths 2

Tech. 1

Tech. 2

Course work

Credits Awarded

Overall Average

Overall Result

Mark Awarded

56

92

41

76

39

57.2

Fail

Credits Awarded

10

10

10

10

_

40

Table 3: Example of possible student results 1


Student overall result is FAIL because of not passing the course work module.

Another example:



Subject

Maths 1

Maths 2

Tech. 1

Tech. 2

Course work

Credits Awarded

Overall Average

Overall Result

Mark Awarded

48

72

12

36

41

41.7

Pass

Credits Awarded

10

10

_

_

20

40

Table 4: Example of possible student results 2


Student overall result is PASS obeying all requirements.

Yet another example: