Function 4: Class Grading function _four ( array ) Create a JavaScript function that meets the following requirements: Receives a variable length array of numbers, representing student grades in a course The function traverses the array to determine the number of passing and failing grades. A passing grade, is grade greater than or equal to 50 The function displays the count (console log) for the number passing grades, failing grades and overall class average as illustrated below Average class grade is rounded to 1 decimal point The function retums the array containing the number of passing grades, the number of failing grades, and the overall averages of the grades, respectively, back to the caller Calling _four([50,51,80,45]) The number of passing grades: 3, failing grades: 1, and class average: 56.5 Calling _four([35,45,25,10,6,33]) The number of passing grades: 0, failing grades: 6, and class average: 25.7 Calling _four([80,90]) The number of passing grades: 2, failing grades: 0, and class average: 85.0

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
2 COMP1231 - Assignment 2(2).pdf - Adobe Reader
File Edit View Window Help
Оpen
/ 8
图
Tools
Fill & Sign
Comment
173%
Sign In
v Export PDF
Adobe ExportPDF
Convert PDF files to Word or Excel
Function 4: Class Grading
online.
Select PDF File:
4 COMP1231 - Assignment 2(...
function
four ( array )
1 file / 285 KB
Convert To:
Microsoft Word (*.docx)
Create a JavaScript function that meets the following requirements:
Recognize Text in English(U.S.)
Change
Receives a variable length array of numbers, representing student grades in a course
Convert
The function traverses the array to determine the number of passing and failing grades.
• Create PDF
A passing grade, is grade greater than or equal to 50
• Edit PDF
The function displays the count (console log) for the number passing grades, failing grades and overall
class average as illustrated below
Average class grade is rounded to 1 decimal point
The function returns the array containing the number of passing grades, the number of failing grades, and
the overall averages of the grades, respectively, back to the caller
• Combine PDF
• Send Files
• Store Files
Calling _four([50,51,80,45])
The number of passing grades: 3, failing grades: 1, and class average: 56.5
Calling _four([35,45,25,10,6,33])
The number of passing grades: 0, failing grades: 6, and class average: 25.7
Calling _four([80,90])
The number of passing grades: 2, failing grades: 0, and class average: 85.0
99+
7:46 AM
ws
2/20/2022
Transcribed Image Text:2 COMP1231 - Assignment 2(2).pdf - Adobe Reader File Edit View Window Help Оpen / 8 图 Tools Fill & Sign Comment 173% Sign In v Export PDF Adobe ExportPDF Convert PDF files to Word or Excel Function 4: Class Grading online. Select PDF File: 4 COMP1231 - Assignment 2(... function four ( array ) 1 file / 285 KB Convert To: Microsoft Word (*.docx) Create a JavaScript function that meets the following requirements: Recognize Text in English(U.S.) Change Receives a variable length array of numbers, representing student grades in a course Convert The function traverses the array to determine the number of passing and failing grades. • Create PDF A passing grade, is grade greater than or equal to 50 • Edit PDF The function displays the count (console log) for the number passing grades, failing grades and overall class average as illustrated below Average class grade is rounded to 1 decimal point The function returns the array containing the number of passing grades, the number of failing grades, and the overall averages of the grades, respectively, back to the caller • Combine PDF • Send Files • Store Files Calling _four([50,51,80,45]) The number of passing grades: 3, failing grades: 1, and class average: 56.5 Calling _four([35,45,25,10,6,33]) The number of passing grades: 0, failing grades: 6, and class average: 25.7 Calling _four([80,90]) The number of passing grades: 2, failing grades: 0, and class average: 85.0 99+ 7:46 AM ws 2/20/2022
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY