Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question: Current function: C) Optional Extra Credit (+3 pts). Write a function named calcitrGrd_xc that accepts eight scores and returns the corresponding letter grade, A

Question:image text in transcribedCurrent function: image text in transcribed

C) Optional Extra Credit (+3 pts). Write a function named calcitrGrd_xc that accepts eight scores and returns the corresponding letter grade, "A" through "F/N". Here's what the function should return: calcFnlPctg_2('125', '135', '10', '90', '90', '90', '90', '90') -> A calcFnlPctg_2('95', '115', '7', '90', '83', '85', '90', '90') -> C calcFnlPctg_2('115', '140', '10', '75', '100', '90', '87', '93') -> B > let calcFnlPctg_2 = function(mt, fnl, xc, p1, p2, 23, 24, p5) { mt = Number(mt); fnl = Number(nl); XC= Number(xc); p1 = Number(p1); p2 = Number(p2); p3 = Number(p3); p4 = Number(p4); p5 = Number(p5); let finalPercentage = 100 * (((mt + fnl + xc) / 300) * 0.7 + ((p1 + p2 + p3 + 24 + p5) / 500) * 0.3); return finalPercentage.toFixed(2); }; calcFnlPctg_2('95', '115', '7', '90', '83', '85', '90', '90'), <. c optional extra credit pts write a function named calcitrgrd_xc that accepts eight scores and returns the corresponding letter grade through here what should return: calcfnlpctg_2> A calcFnlPctg_2('95', '115', '7', '90', '83', '85', '90', '90') -> C calcFnlPctg_2('115', '140', '10', '75', '100', '90', '87', '93') -> B > let calcFnlPctg_2 = function(mt, fnl, xc, p1, p2, 23, 24, p5) { mt = Number(mt); fnl = Number(nl); XC= Number(xc); p1 = Number(p1); p2 = Number(p2); p3 = Number(p3); p4 = Number(p4); p5 = Number(p5); let finalPercentage = 100 * (((mt + fnl + xc) / 300) * 0.7 + ((p1 + p2 + p3 + 24 + p5) / 500) * 0.3); return finalPercentage.toFixed(2); }; calcFnlPctg_2('95', '115', '7', '90', '83', '85', '90', '90'), <.>

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 And Expert Systems Applications 23rd International Conference Dexa 2012 Vienna Austria September 2012 Proceedings Part 1 Lncs 7446

Authors: Stephen W. Liddle ,Klaus-Dieter Schewe ,A Min Tjoa ,Xiaofang Zhou

2012th Edition

3642325998, 978-3642325991

More Books

Students also viewed these Databases questions

Question

2. How should this be dealt with by the organisation?

Answered: 1 week ago

Question

explain what is meant by the term fair dismissal

Answered: 1 week ago