I created a form for calculating the final Grade from exam results.
The calculation to get the final Mark for the final Grade Final Mark=((Labs(10) + Assignment(20)+Final Exam(70))/100
When clicking on the calculate button, the final marks should be calculated and the relevant final grade should be shown on the named txtFinalGr text box.
After the calculation, it should be shown on txtFinalGr.
I tried to more times to get results. but it is not shown. I need help to fix these errors.
The form code as follows.
<form id="gradeForm">
<table>
<tr>
<td><label>Labs</label></td>
<td><input type="text" id="txtLabs" name="txtLabs"></td>
</tr>
<tr>
<td><label>Assignment</label></td>
<td><input type="text" id="txtAssign" name="txtAssign"></td>
</tr>
<tr>
<td><label>Final Exam</label></td>
<td><input type="text" id="txtFinalEx" name="txtFinalEx"></td>
</tr>
<tr>
<td><label>Final Grade</label></td>
<td><input type="text" id="txtFinalGr" readonly></span></td>
</tr>
<tr>
<td><input type="button" id="btnClr" onClick="clrForm()" name="btnClr" value="Clear"></td>
<td><input type="button" id="bunCal" onClick="getGrade()" name="bunCal" value="Calculate"></td>
</tr>
</table>
</form>
also, The script as follows.
<script>
function getGrade(){
var grade = ""; //declare a variable for grade
//read the marks
var resLabs = document.getElementById('txtLabs').value;
var resAssign = document.getElementById('txtAssign').value;
var resFinalEx = document.getElementById('txtFinalEx').value;
var calRes = (($resLabs*10)+($resAssign*20)+($resFinal*70))/100;
switch(
(calRes > 75 && calRes <= 100) ? 1 :
(calRes > 60 && calRes < 74) ? 2 :
(calRes > 50 && calRes < 59) ? 3 :
(calRes > 40 && calRes < 49) ? 4 :
(calRes > 30 && calRes < 39) ? 5 :
(calRes > 0 && calRes < 29) ? 6
)
{
case 1 :grade = "A";break;
case 2 :grade = "B";break;
case 3 :grade = "C";break;
case 4 :grade = "D";break;
case 5 :grade = "E";break;
case 6 :grade = "F";break;
}
document.getElementById('txtFinalGr').value = grade;
}
function clrForm() {
document.getElementById("gradeForm").reset();
}
</script>
Thank you !!
http://kamagradr.com kamagra kopen
modafinil moa – modafinil reviews modafinil and weight loss
accutane 10 mg – buy accutane online 30mg accutane cream
http://wardenafil.com when will levitra be generic
amoxicillin – where to buy amoxicillin 500 mg amoxicillin without a doctor’s prescription
http://ivermectinhum.com ivermektin
buy vardenafil professional online – order vardenafil 30 pills buy vardenafil 20mg online
http://levitradd.com/ levitra tablets 10mg
stromectol 3 mg dosage – stromectol human stromectol 6 mg dosage
tadalafil online us – tadalafil uk cheap tadalafil daily
ivermectin human – ivermectin over the counter uk stromectol ivermectin
http://vardenafilz.com difference between cialis and levitra
accutane price uk – accutane cost in india isotretinoin 20 mg
lyrica 75 mg – generic lyrica canada canadian pharmacy price checker
https://prescriptionhim.com/ viagra without doctor’s prescription
http://prescriptionhim.com/ viagra without a doctor prescription
amoxicillin price at walmart – bulk order amoxicillin in usa rx amoxicillin 500mg
https://himshairloss.com/ proscar
http://sildenafilhim.com sildenafil
sildenafil in singapore – erectile dysfunction pump order viagra australia
generic cialis uk – tadalafil 12mg capsules where can you buy cialis cheap
ivermectin 0.5 lotion india – ivermectin tablet 1mg stromectol tablets uk
can i buy prednisone online without prescription – prednisone medicine prednisone 5 mg tablet
http://viagraxyu.com viagra cialis levitra comparison chart
provigil generic – provigil for adhd modafinil and weight loss
http://stromectolhumans.com/ stromectol
https://iwermectin.com/ buy ivermectin online
zithromax z-pak – zitmaxp.com low cost zithromax
where to buy furosemide – furosemide 40mg price buy lasix online canada
clomid canada – bbclomid buy clomid online no prescription
http://ivermectineffects.com/ stromectol cost
https://ivermectinovercounter.com/ ivermectin
https://ivermectineffects.com buy ivermectin online
what’s a doctor how do probiotics affect vaginal health
ivermectin for sale https://ivermectinhome.com
staxyn vs levitra https://levitrair.com levitra walgreens
https://ivermectinus.com/ ivermectina efectos secundarios
https://zithrozpack.com/ medicine azithromycin 500 mg
cbd and blood pressure impotence diabetes
stromectol https://ivermectinhome.com
patient have tb and hiv how a nurse will take health history index drug
ivermectin dosage chart for humans https://ivermectinhome.com
https://albuterolotc.com/ albuterol inhaler coupons printable
ivermectina https://stromectolus.com buy ivermectin
rheumatoid arthritis and tmj arkansas department of health food service permits
ivermectin side effects https://ivermectinhome.com
rheumatoid arthritis hands what is a physician do
stromectol https://ivermectinhome.com
javascript-help.li recommended top over the counter medications http://pharmvolk.com amazon pharmacy
buy ivermectin online canada https://ivermcov.com/# ivermectina posologia
physician bureau of labor statistics http://ventolinhfaer.com/ ventolin generic price
only swollen lymph nodes no other symptoms hiv what types of doctors study hiv/aids?
ivermectina efectos secundarios https://ivermectinhome.com
javascript-help.li and where to buy ivermectin for humans https://ivermectini.com ivermectin tablets
can you get aids from spit http://vardenafilz.com levitra
javascript-help.li recommended ivermectin for humans walmart https://ivermectiny.com stromectol
doctors the show ivermectin for humans http://iveramectin.com ivermectin for humans where to buy locally near me
javascript-help.li with ivermectin tablets dosage http://ivermectiny.com ivermectin for sale
stromectol tablets buy online – buy ivermectin canada cost of ivermectin pill
bulk order amoxicillin in usa – buy amoxicilina 500 mg amoxicillin for uti
can you buy viagra without prescription https://viagrob.com where to buy viagra over the counter
javascript-help.li and stromectol http://ivermectinhum.com ivermectin til mennesker
methylprednisolone dose pack no presciption – iv solu-methylprednisolone lyrica canada cost
3mg ivermactin http://ivermectinhumans.com ivermectin How to calculates and show values in JavaScript – JavaScript Help
javascript-help.li reviewed ivermectin 12 mg tablets for sale http://ivermectiny.com ivermectin dosage for humans
buy zithromax online https://azithrozpack.com purchase antibiotics
http://zithrozpack.com – z pack medical name
https://stromectolo.com – ivermectin paste 1.87% for humans
http://iwermectin.com – ivermectin usa
zyrtec with decongestant – https://allergyd.com
https://stromectolforte.com/# ivermectin pills otc
ivermektiini 1% kerma geneerinen https://www.ivermecton.com/ ivermectin over the counter
ivermectin untuk manusia http://stromectolforte.com/ buy stromectol online ivermectin for humans for sale
levitra bg http://www.levitraoff.com comparacion entre cialis levitra y viagra
ivermectinДѓ de vГўnzare http://ivermecton.com/ buy stromectol canada
female pink viagra https://viagwdp.com/# best women viagra pills sildenafil gel 100 mg
sildenafil citrate 100 mg http://www.viagwdp.com/ how to use viagra for best results viagra 90 pills
https://www.lasixotc.com how many sildenafil can i take
accutane prescription online – accutane pills generic accutane costs
Abfukvd http://ivermect1n.com/ stromectol where to buy
buy stromectol online http://stramectol.com obsergo
cheap sildalis – purchase fluconazole pills glucophage for sale
plaquenil sale – order plaquenil 200mg online cheap buy plaquenil generic
viagra 25mg gГ©nГ©rique – viagra 200mg kaufen ohne rezept vrai tadalafil 20mg prix
tadalafil cheap generic cialis for sale
canada generic tadalafil https://cialiswbtc.com/
https://cialisicp.com/ cost of cialis
lowest price cialis generic cialis tadalafil
generic cialis online fast shipping tadalafil brands
buy tadalafil tadalafil daily online
cialis without a prescription buy cialis
tadalafil daily online cheap cialis pills for sale
tadalafil goodrx generic tadalafil from uk
generic tadalafil from uk tadalafil without a doctor prescription
prescription tadalafil online generic cialis online fast shipping
tadalafil goodrx tadalafil cost walmart
tadalafil goodrx cialis at canadian pharmacy
stromectol 3 mg tablets
buy 12mg stromectol buy 12 mg ivermectin
https://www.ivermectinusd.com/ order ivermectin from india
https://ivermectinuni.com/ stromectol tablets for sale