Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. The pass mark for EGA118 is 70. The problem is that the exam system expects a pass mark of 40. Thus the module marks

image text in transcribed
4. The pass mark for EGA118 is 70. The problem is that the exam system expects a pass mark of 40. Thus the module marks have to be mapped to the exam system marks. The mapping uses linear equations as follows: o If a student's module mark is 70 or less, all component marks are multiplied by 4/7 o If a student's module mark is above 70, all component marks are multiplied by MM/50-1 i. MM is the module mark After multiplication all marks are rounded to the nearest integer. The module mark is equal to the Sum of: . The mark for the flight simulator exercise times 0.1 The sum of the marks for the tests times 0.1 The sum of the marks for the seven presentations times 0.1 The sum of the marks for the three MATLAB exercises times 0.2 The exam/alternative assessment mark times 0.5 . . Percentage of available marks are used in the above calculation rather than actual mark values. As an example, assume a student achieved 80 % for the flight Simulator exercise, 70 % average in the five tests, 60 % in the presentations, 40% over the three MATLAB exercises and 54 % in the exam. This gives a module mark of 0.1-80+ 0.1-70 +0.1*60 +0.2-40+0.5*54 which equals 56 %, As this mark is 70 or less the exam system mark will be 4/7*56 = 32. For this question write a function that has an array containing the four percentages for the assignments, the first four items from the list above, as the input and returns the percentage mark the student needs to get in the exam to pass the module. Based on the example in the previous paragraph (80, 70,60,40) would be passed into the function and 82 returned from it. The function should check that the user has passed an array containing four numbers into it, if not the value returned should be set to -1. Also write a script, in a separate file, that show how you have tested your function. [20 Marks)

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

Step: 3

blur-text-image

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

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

Explain the nature of human resource management.

Answered: 1 week ago

Question

Write a note on Quality circles.

Answered: 1 week ago

Question

Describe how to measure the quality of work life.

Answered: 1 week ago