How to using the prompt and alert functions

Assignment Help Computer Engineering
Reference no: EM1332337

Produce JavaScript code (and any necessary HTML) that will perform the following functions:
1. Using the prompt and alert functions, invite the user to input 5 marks (integers) in the range 0-100.
2. Calculate the average (mean) of the 5 marks as a rounded integer or a floating point number.
3. If the average mark is 0-39, then display a message saying that the grade is a Fail, 40-69 is a Pass, and 70-100 is a Distinction. If the value is less than 0 or greater than 100, display a message saying that there has been an input error.

Reference no: EM1332337

Questions Cloud

Practice question for the sherman act : This post denotes a practice question for the Sherman Act.
Immigration process : Do you think immigration reform will reach a level which will both improve the process for obtaining citizenship and significantly improve the security of our borders?
Description of decision-making process : Compose a description of the decision-making process, including the steps on how to approach the situations, a list of questions if a meeting is granted, or a list of possible reasons for rejecting the meeting.
Suppose the relationships hold true and given performance : Suppose the relationships hold true and given performance below, what salary would you estimate for each player in 2006.
How to using the prompt and alert functions : compute the average (mean) of the 5 marks as a rounded integer or a floating point number.
Pan-european brand in continental europe : Proctor & Gamble's Pert Plus: Is it a Pan European Product?
Escribe the effect of such clauses on both the government : Describe the effect of such clauses on both the government, and other customers, noting, inter alia, the effect on the selling firmâ.
Comapre the advantages and disadvantages of using javascript : comapre the advantages and disadvantages of using JavaScript on the client-side. Where JavaScript is blocked or disabled, does that amount to a potentially significant business loss.
Policy concerning affirmative action : Write a Policy concerning Affirmative Action and keeping in mind that you will have to make your policy agreeable to some degree to all factions.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write down a test application named simpledatetest

design a class called SimpleDate that includes three instance variables - a month, a day and a year (all type int). Provide a constructor that initializes the three instance variables and validates that those values are correct (follow calendar ru..

  Verilog system

Develop a verilog system which utilizes a block code for the error management. The system must accept a 15-word block of 8-bit data words one word at a time.

  Writing into file utilizing fileinputstream

Write down an application utilizing the FileInputStream which opens a file which consists of the name of user's favourite book and then show it to the user.

  Testing program using numbers of command line arguments

Test your program thoroughly utilizing different numbers of command line arguments.

  Define how an array works

Define the purpose of a pointer.What are the disadvantages to using pointers?

  Designing the flow chart and algorithm

Write down an algorithm and develop a flow chart to find all the people who have computer experience and at least five years of company service.

  Explain how a packet is encapsulated

Explain how a packet is encapsulated

  Examine the process of formal software testing

examine software testing as a career path, and consider what skills would be desirable for a software tester.

  Explain the situation in terms of pci compliance standard

On your exit, a store employee asks to give your receipt and checks all the contents of the store bag. Document each of the above described events that are described and explain them in terms of PCI compliance standard.

  Determining the output

Specify the output if input is diamond diamond? State the output if the input is diamond gold?

  Tracking down people to obtain people

A city government wants to track down the people who run the small businesses and do not pay the city’s $125 business-license fee.

  Threats against network services

Users are familiar with some network services like HTTP (Hypertext Transport Protocol) - the Web; and SMTP (Simple Mail Transport Protocol) and POP (Post Office Protocol) - e-mail and instant messaging.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd