Question: We work with the function exam _ percentage _ rule, which implements the computation of your exam percentage according to our syllabus. Implement the function
We work with the function exampercentagerule, which implements the computation of your exam
percentage according to our syllabus. Implement the function using a LAMBDA:
LAMBDATHEEMMLET
The connection to the syllabus should be easy: TH Take Home EExam EExam M
Makeup MMakeup In each exam, you can make between and points. Please carefully
review the relevant parts of the syllabus, which serves as specification for what needs to be implemented.
Your function must use the MAX function to implement the rule regarding TH and E
Could you implement the following versions of function exampercentagerule?
OneStep version. The function works correctly for one student.
Manual ManySteps version. The function works correctly for five students by dragging down the
OneStep formula five rows.
Automatic ManySteps version using MAP. Fill out the Function Recipe only for this corrected
solution. The function must work correctly for any number of students. This is intended for a large
MOOC class that might have students. The following function almost solves the problem but
requires a correction.
LAMBDATHEEMMLET
COMMENT"Calculate exam percentage many students weighted percentage
COMMENT"Function for makeup exam rule. makeup exam means: exam not taken",
override,LAMBDAexammuexam, IFmuexamexam,muexam
examweights,
THreal,MAXTHE
THrealMAPTHELAMBDAteMAXte
THrealIFETHETH
Ereal,overrideEM
Ereal,overrideEM
unweightedexampercentages,HSTACKTHreal,Ereal,Ereal
weighted,examweightsunweightedexampercentages,
result,BYROWweightedLAMBDArowSUMrow
ShowHeader,HSTACKexamweights","","","THreal","EE"weighted","","","result"
Show, IFERRORVSTACK
ShowHeader,
HSTACK
IFERRORexamweights,"examweights problem"
IFERRORTHreal,"THreal problem"Ereal,Ereal,weighted,
IFERRORresult"result problem"
ShowGradeTTHGradeTEGradeTEGradeTMGradeTM
Our task is to write a function that computes the grade for any number of students without using dragging.
In this situation, we need to look for nonspilling functions like MAX, MIN, SUM, AND, OR that are
aggregators, ie they produce one output. We have multiple options available.
Use the MAP function to reduce the problem to singlecell arguments.
Rewrite the function so that it becomes spilling. For example, ANDab can be rewritten as a b
which is spilling. TRUE has value and FALSE has value
Use BYROW and HSTACK to apply the function row by row. But this has limitations
Create a worksheet called Exam Percentages and put all three versions of the function exampercentagerule
in it Create the Excel table GradeT given below. For the first version use the first row of GradeT. For
the second version use all rows through dragging. For the third version, give all rows as input.
TH E E M M
Test your solution carefully. For table GradeT, the output should be:
Note that are allocated for the nonexam grade
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
