Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

After multiplication all marks are rounded to the nearest integer. The module mark is equal to the sum of: 1)The mark for the flight simulator

After multiplication all marks are rounded to the nearest integer. The module mark is equal to the sum of:

1)The mark for the flight simulator exercise times 0.1

2)The sum of the marks for the online reading times 0.1

3)The sum of the marks for the presentations times 0.1

4)The sum of the marks for the three MATLAB exercises times 0.2

5)The test 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 online reading, 60 % in the presentations, 40 % over the three matlab exercises and 54 % in the test. 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 test marking system will be 4/7*56 = 32.

For this question write a function in matlab 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 test 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.

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

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions