Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a JavaScript program that does the following: Ask user to enter five grades using prompt. Find how many students failed and how many students

image text in transcribed

Write a JavaScript program that does the following: Ask user to enter five grades using prompt. Find how many students failed and how many students passed the exam. Grade less than 50 is fail. Print each Grade as h2. Print the result of how many students failed or passed as hl Change the color of hl. The result like the following: - gnment:h.html Fle/Users/Administrator/Desktop/first semester_2021/ Gradel is 99 Grade2 is 35 Grade3 is 68 Gradet is 42 Grade5 is 88 number of students [passed]:3 number of students (failed]:2

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

DB2 9 For Linux UNIX And Windows Advanced Database Administration Certification Certification Study Guide

Authors: Roger E. Sanders, Dwaine R Snow

1st Edition

1583470808, 978-1583470800

More Books

Students also viewed these Databases questions

Question

How soon after an injury must an employee make a claim? LO.1

Answered: 1 week ago