4. The pass mark for EGA118 is 70. The problem is that the exam system expects...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
4. The pass mark for EGA118 is 70. The problem is that the exam system expects a pass mark of 40. This means that the module marks have to be mapped to the exam system marks. The mapping uses linear equations as follows: If a student's module mark is 70 or less, all component marks are multiplied by a scaling factor equal to 4/7. If a student's module mark is above 70, all component marks are multiplied by the scaling factor equal to (2-100/MM). 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. This mark is out of 10 for the first attempt and capped to a maximum of 7 for the make-up quiz. The sum of the marks for the five Canvas quizzes. Each quiz is marked out of 2 for the first attempt and capped to 1.4 for the make-up quizzes. The sum of the marks for the seven presentations. The team gets up to 1 mark for each of the seven sets of slides and the presenter is marked out of 3. The sum of M1 + (M2 + M3)/10. M1 is the mark for the MATLAB quiz, which is out of 4 for the first sit and capped to 2.8 for the make-up quiz. M2 and M3 are the marks for the second and third MATLAB assignments, which are respectively marked out of 60 and 100. The exam contributes 25 % of the module mark. The exam has 50 marks available so the contribution to the final module mark is half the mark achieved. The problem solving exercise also contributes 25 % of the module mark. The exercise has 50 marks available so the contribution to the final module mark is half the mark achieved. As an example, assume a student scored 6 of the first attempt of the flight simulator quiz. In the make-up quiz they managed to achieve 8. As the make-up mark is capped this means they get 7 for the exercise. In the quizzes they passed all at the first attempt with marks of 1.8, 1.6, 2, 1.6, 1.4, which sum to 8.4. Their group marks for the slides were 0.9, 0, 0.8, 0.95, 0.85, 1, 0.9 and their individual presentation mark was 2.7. This makes the total presentation mark equal to 8.1. In the MATLAB they scored 3, 43, 64 marks, which gives a total of 13.7. In the exam they achieve 37 marks and in the problem solving exercise their mark was 28. This makes their total mark equal to: 7+ 8.4 +8.1 +13.7 + 0.5*37 + 0.5*28 = 69.7 This total is under 70 so their marks will be multiplied by 4/7. In this case the student will ultimately pass the module, final marks are always integer values and their unscaled mark is a pass when rounded to the nearest integer. For this question write a function that has a vector containing the six component marks, as contained in the bulleted list above and in the same order, as its input argument. The function should return the scaling factor that would be used in mapping between the module marks and the exam system mark. The function should check that the user has passed a vector with a length of six into it, if not the value returned should be set to -1. The function should also test that the values in the vector are valid, 0 to 10 for each of the flight sim exercise, presentations and quizzes, 0 to 20 for MATLAB and 0 to 25 for both the exam and problem solving exercise. Return the number -2 if any entry is outside the range. You do not need to test that the entries in the vector are all numbers, that can be assumed. Also write a script, in a separate file, that shows how you have tested your function. [20 Marks] 4. The pass mark for EGA118 is 70. The problem is that the exam system expects a pass mark of 40. This means that the module marks have to be mapped to the exam system marks. The mapping uses linear equations as follows: If a student's module mark is 70 or less, all component marks are multiplied by a scaling factor equal to 4/7. If a student's module mark is above 70, all component marks are multiplied by the scaling factor equal to (2-100/MM). 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. This mark is out of 10 for the first attempt and capped to a maximum of 7 for the make-up quiz. The sum of the marks for the five Canvas quizzes. Each quiz is marked out of 2 for the first attempt and capped to 1.4 for the make-up quizzes. The sum of the marks for the seven presentations. The team gets up to 1 mark for each of the seven sets of slides and the presenter is marked out of 3. The sum of M1 + (M2 + M3)/10. M1 is the mark for the MATLAB quiz, which is out of 4 for the first sit and capped to 2.8 for the make-up quiz. M2 and M3 are the marks for the second and third MATLAB assignments, which are respectively marked out of 60 and 100. The exam contributes 25 % of the module mark. The exam has 50 marks available so the contribution to the final module mark is half the mark achieved. The problem solving exercise also contributes 25 % of the module mark. The exercise has 50 marks available so the contribution to the final module mark is half the mark achieved. As an example, assume a student scored 6 of the first attempt of the flight simulator quiz. In the make-up quiz they managed to achieve 8. As the make-up mark is capped this means they get 7 for the exercise. In the quizzes they passed all at the first attempt with marks of 1.8, 1.6, 2, 1.6, 1.4, which sum to 8.4. Their group marks for the slides were 0.9, 0, 0.8, 0.95, 0.85, 1, 0.9 and their individual presentation mark was 2.7. This makes the total presentation mark equal to 8.1. In the MATLAB they scored 3, 43, 64 marks, which gives a total of 13.7. In the exam they achieve 37 marks and in the problem solving exercise their mark was 28. This makes their total mark equal to: 7+ 8.4 +8.1 +13.7 + 0.5*37 + 0.5*28 = 69.7 This total is under 70 so their marks will be multiplied by 4/7. In this case the student will ultimately pass the module, final marks are always integer values and their unscaled mark is a pass when rounded to the nearest integer. For this question write a function that has a vector containing the six component marks, as contained in the bulleted list above and in the same order, as its input argument. The function should return the scaling factor that would be used in mapping between the module marks and the exam system mark. The function should check that the user has passed a vector with a length of six into it, if not the value returned should be set to -1. The function should also test that the values in the vector are valid, 0 to 10 for each of the flight sim exercise, presentations and quizzes, 0 to 20 for MATLAB and 0 to 25 for both the exam and problem solving exercise. Return the number -2 if any entry is outside the range. You do not need to test that the entries in the vector are all numbers, that can be assumed. Also write a script, in a separate file, that shows how you have tested your function. [20 Marks]
Expert Answer:
Related Book For
Financial Management for Public Health and Not for Profit Organizations
ISBN: 978-0132805667
4th edition
Authors: Steven A. Finkler, Thad Calabrese
Posted Date:
Students also viewed these mechanical engineering questions
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
The new line character is utilized solely as the last person in each message. On association with the server, a client can possibly (I) question the situation with a client by sending the client's...
-
Which statement is correct? A) Tax credits reduce tax liability on a dollar-for-dollarbasis. B) Tax deductions reduce tax liability on a dollar-for-dollarbasis. C) The benefit of a tax credit depends...
-
Helicobacter pylori, the bacterium responsible for gastric ulcers, can survive in the stomach (where the pH is as low as 1.5) in part because it synthesizes large amounts of the enzyme urease. (a)...
-
Create a presentation on Patterns of Communication in Sexual Relationships.
-
Most battery-powered devices won't work if you put the battery in backward. But for a device that you plug in, you can often reverse the orientation of the plug with no problem. Explain the...
-
An economist estimated that the cost function of a single- product firm is C (Q) = 100 + 20Q + 15Q2+10Q3 Based on this information, determine: a. The fixed cost of producing 10 units of output. b....
-
A friend developed a portfolio that earns an expected return of22%22% and has a return standard deviation of 36%36%. You say that you can obtain the same expected return using the risk-free rate and...
-
You are considering undertaking a project that has beta of 1.2, an initial cost of $100 million and annual after-tax inflows of $10 million for 20 years starting at the beginning of next year. The...
-
what biological evidence is and why is it important? give an example? What are three types of biological evidence?
-
The 3 0 - day T - bills have a current yield of 6 . 4 % with inflation premium at 3 . 5 % , liquidity premium at 1 . 2 5 % , maturity risk premium at 2 . 1 5 % , and default risk premium at 2 . 7 5 %...
-
what ways does the protagonist's internal conflict contribute to the development of the story's themes and overarching narrative arc?
-
Matthew wants to take out a loan to buy a car. He calculates that he can make repayments of $ 5 5 , 0 0 0 per year. If he can get a six - year loan with an interest rate of 8 . 5 % , what is the...
-
You need $ 2 , 0 0 0 , 0 0 0 to fund your retirement in 4 0 years. If your retirement plan has an annualyield of 6 % , how much do you need to contribute to your retirement fund each paycheck (...
-
Kindly click on the below weblinks and watch the international business related videos. After watching the video, comment on video: what did you learn from each video from international business...
-
Chicago Company sold merchandise to a customer for $1,500 cash in a state with a 6% sales tax rate. The total amount of cash collected from the customer was $558. $600. $642. $636. Nevada Company...
-
Show that the volume element \[ d \omega=\prod_{i=1}^{3 N}\left(d q_{i} d p_{i}ight) \] of the phase space remains invariant under a canonical transformation of the (generalized) coordinates \((q,...
-
If the two gases considered in the mixing process of Section 1.5 were initially at different temperatures, say \(T_{1}\) and \(T_{2}\), what would the entropy of mixing be in that case? Would the...
-
Establish thermodynamically the formulae \[ V\left(\frac{\partial P}{\partial T}ight)_{\mu}=S \quad \text { and } \quad V\left(\frac{\partial P}{\partial \mu}ight)_{T}=N \] Express the pressure \(P\)...
Study smarter with the SolutionInn App