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

  Define difference between any two of these n citie

design a file dist.dat for storing pairwise distances represented as an NxN table of numbers. The number at the intersection of the i-th column and j-th row is the distance from city i to city j. So the table is symmetric.

  Program to find grade of students on basis of test scores

Write down a C++ program which finds a better grade for a student based upon two test scores. For a numeric average x.

  Telecommunications planning model

Discuss how to utilize the telecommunications planning model in detail and also explain the significance of the strategic management in order to support this model.

  Build a java program named comparefiles.java

make a java program named CompareFiles.java and enter the code to check if the files, TeamProj.txt and TeamProj2.txt, exist.

  Express how to use the six steps of the psdlc

Each time you need to play a particular song, you have to manually search through the boxes to find the CD that has the song you need. It has become a habit that as individuals finish playing a CD, they would simply put it in the nearest box.

  Network cable planning

The company is very concerned with the network errors. State the advice you would provide regarding the design of the building and network cable planning which would help in order to decrease the network errors.

  Explain the characteristics of a high performance team

Listing and define six major SDLC phases and the products of each. Indicate the CASE tools that would be used to support each phase.

  Preparing a copy of hard drive

After we have the target media prepared and assembled along with all our tools assembled for investigation we should now make a copy of hard drive.

  Troubleshooting the infected system

AV software has eliminated the malware from a highly infected system. After first reboot, an error message is displayed which consists of a reference to the strange DLL file which is missing.

  Why didn''t the vendor just bid fewer disks

Why didn't the vendor just bid fewer disks

  Application to computer science

Find the matrices that represent the relations.

  Creating the method

Assume we wish to form a method for class BinaryTree which decides whether two trees have same structure. The header of the method could be as follows: public boolean isIsomorphic(BinaryTreeInterface otherTree).

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