Hi all,
it might be trival for you but I am new with java and got stuck so hope you can help me with that…
I need to get average grade from each of few modules here in code, I used radio buttons and want to get the value from the group, dont know do I need to put all of them in labels or is there any other way to get value out of them and display the average than?
your help appreciated ?
THANKS!
[CODE]<p id=”one” class=”hiddenDiv” [B]form name=”semester1[/B]” action”#”> [B]can these name be usefull somehow?[/B]
whats your scores in these modules?</br>
Web developement:
<label> <input type = “radio” name = “web” [B]labels here or just name=”web” can be used?[/B]
value = “fail” /> 0-39 </label>
<label> <input type = “radio” name = “web”
value = “59” /> 40-59 </label>
<label> <input type = “radio” name = “web”
value = “75” /> 60-75 </label>
<label> <input type = “radio” name = “web”
value = “89” /> 76-89 </label>
<label> <input type = “radio” name = “web”
value = “100” /> 90-100 </label>
</br></br>
Programming :
<label> <input type = “radio” name = “pr”
value = “fail” /> 0-39 </label>
<label> <input type = “radio” name = “pr”
value = “59” /> 40-59 </label>
<label> <input type = “radio” name = “pr”
value = “75” /> 60-75 </label>
<label> <input type = “radio” name = “pr”
value = “89” /> 76-89 </label>
<label> <input type = “radio” name = “pr”
value = “100” /> 90-100 </label>
</br></br>
Interactive case study: <label> <input type = “radio” name = “ics”
value = “fail” /> 0-39 </label>
<label> <input type = “radio” name = “ics”
value = “59” /> 40-59 </label>
<label> <input type = “radio” name = “ics”
value = “75” /> 60-75 </label>
<label> <input type = “radio” name = “ics”
value = “89” /> 76-89 </label>
<label> <input type = “radio” name = “ics”
value = “100” /> 90-100 </label> </br>
<input type = “button” name = “submit”
onclick=calc(average) value=”submit” name=”submit” type=”submit” [B]i need these button to do the job of getting average from all modules and let say showing average on alert…[/B]/>