compute the final grades

compute the final grades

C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point Equivalent based on the table below. Indicate also the remarks if it is ?Passed? or ?Failed?.

View Answers

December 3, 2010 at 12:52 PM

Hi Friend,

Try the following code:

<html>
<head><title>Result</title>
<script>

function findResult(){
var result="";
var grade="";
var mm=document.form.marks.value;
if(mm>90){
grade="A";
result="Passed";
}
else if(mm>80&&mm<=90){
grade="B";
result="Passed"
}
else if(mm>70&&mm<=80){
grade="C";
result="Passed";
}
else if(mm>60&&mm<=70){
grade="D";
result="Passed";
}
else if(mm>50&&mm<=60){
grade="E";
result="Passed";
}
else if(mm<=50){
grade="F";
result="Failed";
}
document.writeln("Student Grade: <b>"+grade+"</b><br>");
document.writeln("Remarks: <b>"+result+"</b>");
}
</script>
</head>
<form name="form">
Student Marks:   <input type="text" name="marks"><br><br>
<input type="button" value="Submit" onclick="findResult();">
</form>

Thanks









Related Tutorials/Questions & Answers:
compute the final grades
compute the final grades  C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point Equivalent based on the table below. Indicate also the remarks
compute the final grades
compute the final grades  C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point Equivalent based on the table below. Indicate also the remarks
Advertisements
compute the final grades
compute the final grades  C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point Equivalent based on the table below. Indicate also the remarks
compute the final grades
compute the final grades  C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point Equivalent based on the table below. Indicate also the remarks
compute the final grades
compute the final grades  C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point Equivalent based on the table below. Indicate also the remarks
compute the final grades
compute the final grades  C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display... input a student?s final grade from 50-100. Evaluate the Final grade and display
Grades
grades in ascending order -Search for a student by name. Any help much
final
final  what does final means in "public static final void main (string args[])" ?   keyword final can be assigned only once. They cannot be modified
compute
Name, Rate per hour, No. of hours worked and will compute the daily wage... Name, Rate per hour, No. of hours worked and will compute the daily wage...; C. Write a JavaScript program that would input a student?s final grade
compute
compute  B. Write a JavaScript program that would input Employee Name, Rate per hour, No. of hours worked and will compute the daily wage of an employee. If the number of hours worked exceeds eight hours add 30% to each excess
compute
compute    Write a menu driven program that will print out the results of the following : (1) Ceiling (2) Floor (3) Absolute (4) (a+b)^3 (5) Exit... at 25% Input the name and marks of 25 students and compute the average. Print out
Change the name of the grades
Change the name of the grades  Hi, i'm developing with polar chart and i want to change the name of the grades, for example: add("variable name",5) insted of add(20, 5). Somebody know how to do it? Tanks
ModuleNotFoundError: No module named 'grades-check'
ModuleNotFoundError: No module named 'grades-check'  Hi, My Python... 'grades-check' How to remove the ModuleNotFoundError: No module named 'grades-check' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'grades-check'
ModuleNotFoundError: No module named 'grades-check'  Hi, My Python... 'grades-check' How to remove the ModuleNotFoundError: No module named 'grades-check' error? Thanks   Hi, In your python
final keyword
final keyword  why is final keyword used in java
Final Keyword
Final Keyword  hello, What is final?   hiiADS_TO_REPLACE_1 In case of class if we use final then this class can not be extended or final class may not be subclassed. A final method can't be overridden when its class
final variable
final variable  Please give some easiest and understanding example program for final variable
Compute command
Compute command  hello, What is compute command?   hii, samarADS_TO_REPLACE_1 Compute command control computations on subsets created by the BREAK command
final grade
final grade  C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point...?s final grade from 50-100. Evaluate the Final grade and display the Point
ModuleNotFoundError: No module named 'edx-bulk-grades'
ModuleNotFoundError: No module named 'edx-bulk-grades'  Hi, My... named 'edx-bulk-grades' How to remove the ModuleNotFoundError: No module named 'edx-bulk-grades' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'edx-bulk-grades'
ModuleNotFoundError: No module named 'edx-bulk-grades'  Hi, My... named 'edx-bulk-grades' How to remove the ModuleNotFoundError: No module named 'edx-bulk-grades' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'edx-bulk-grades'
ModuleNotFoundError: No module named 'edx-bulk-grades'  Hi, My... named 'edx-bulk-grades' How to remove the ModuleNotFoundError: No module named 'edx-bulk-grades' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'edx-grades-api'
ModuleNotFoundError: No module named 'edx-grades-api'  Hi, My... named 'edx-grades-api' How to remove the ModuleNotFoundError: No module named 'edx-grades-api' error? Thanks   Hi, In your python
Final Methods - Java Tutorials
The final Keyword in Java In Java, final keyword is applied in various context. The final keyword is a modifier means the final class can't be extended.... final classes The class declared as final can't be subclass or extend
What is final class?
What is final class?  Hi, What is final class? thanks   Hi, A final class is not be saubclassed. A final method can't be overridden when its class is inherited. You can't change value of a final variable
The final Keyword
The final Keyword       The final is a keyword. This is similar to const keyword in other... final methods, final classes, final data members, final local variables
Java Final Variable
Java Final Variable  I have some confusion --Final variable has single copy for each object so can we access final variable through class name,or it is necessary to create object for accessing final variable
servlet as final - JSP-Servlet
servlet as final  whether we can declare final for a servlet or not? and give the reason
private static final
private static final  Why there is necessary to make a variable private static final
compute the average of degrees
compute the average of degrees  using c++ language , write a program to do the following 1 enter three degrees of a student by the user . 2 compute the average of his degrees
Java final keyword
Java final keyword The final is a very important keyword in java, which... with the name "Final" in a Java program. We can have final methods, final classes, final data members, final local variables and final parameters. When
Java final
Java final      ... entity which makes it unchangeable later. We can have final methods, final classes, final data members, final local variables and final parameters. 1
Can a abstract class be declared final?
Can a abstract class be declared final?   Hi, Can a abstract class be declared final? Thanks
Final Project - Java Beginners
Final Project  The importance of a graphical user interface..., but it is suggested that you begin working on the final project assignment in Week 5, which... the lectures, Quick Test Programs, and Lab assignments will prepare you for the final
compute the daily wage of an employee.
compute the daily wage of an employee.   B. Write a JavaScript program that would input Employee Name, Rate per hour, No. of hours worked and will compute the daily wage of an employee. If the number of hours worked exceeds
Final method in java
Final method in java In this section we will learn about Final method in java.... If final is used with method that method will not be overridden in subclass, if final is used with class that class cannot be inherited by subclass and if final
compute the daily wage of an employee.
compute the daily wage of an employee.   B. Write a JavaScript... and will compute the daily wage of an employee. If the number of hours worked exceeds... and will compute the daily wage of an employee. If the number of hours worked
Can a main method be declared final?
Can a main method be declared final?   Hi, Can a main method be declared final? Thanks   Hi, Yes we can. The final method can be declare as follows: public final String convertCurrency() The final method can't
ModuleNotFoundError: No module named 'Final_Project'
ModuleNotFoundError: No module named 'Final_Project'  Hi, My... 'Final_Project' How to remove the ModuleNotFoundError: No module named 'Final_Project' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'Outliers-final'
ModuleNotFoundError: No module named 'Outliers-final'  Hi, My... named 'Outliers-final' How to remove the ModuleNotFoundError: No module named 'Outliers-final' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'spriteutil-final'
ModuleNotFoundError: No module named 'spriteutil-final'  Hi, My... named 'spriteutil-final' How to remove the ModuleNotFoundError: No module named 'spriteutil-final' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'Topsis-final'
ModuleNotFoundError: No module named 'Topsis-final'  Hi, My Python... 'Topsis-final' How to remove the ModuleNotFoundError: No module named 'Topsis-final' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'final-class'
ModuleNotFoundError: No module named 'final-class'  Hi, My Python... 'final-class' How to remove the ModuleNotFoundError: No module named 'final-class' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'compute-overtime'
ModuleNotFoundError: No module named 'compute-overtime'  Hi, My... named 'compute-overtime' How to remove the ModuleNotFoundError: No module named 'compute-overtime' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'numerai-compute'
ModuleNotFoundError: No module named 'numerai-compute'  Hi, My... named 'numerai-compute' How to remove the ModuleNotFoundError: No module named 'numerai-compute' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'numerai-compute'
ModuleNotFoundError: No module named 'numerai-compute'  Hi, My... named 'numerai-compute' How to remove the ModuleNotFoundError: No module named 'numerai-compute' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'compute_gc'
ModuleNotFoundError: No module named 'compute_gc'  Hi, My Python... 'compute_gc' How to remove the ModuleNotFoundError: No module named 'compute_gc' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'compute-hyperv'
ModuleNotFoundError: No module named 'compute-hyperv'  Hi, My... named 'compute-hyperv' How to remove the ModuleNotFoundError: No module named 'compute-hyperv' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'infrasim-compute'
ModuleNotFoundError: No module named 'infrasim-compute'  Hi, My... named 'infrasim-compute' How to remove the ModuleNotFoundError: No module named 'infrasim-compute' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'compute-hyperv'
ModuleNotFoundError: No module named 'compute-hyperv'  Hi, My... named 'compute-hyperv' How to remove the ModuleNotFoundError: No module named 'compute-hyperv' error? Thanks   Hi, In your python

Ads