By using this code, complete the following instructions
The result should be displayed here
Run the function
Prompt users to enter 10 marks
- Calculate the sum and the average of the 10 marks
- Display the sum and the average along with your id as text of the
paragraph having the id “result”
- Change the font color of the paragraph to red
3) Add the appropriate code to execute the function once the button “Run the
function” is clicked.
And let the output looks like the following pictures
Extracted text: O DCASS e omet anan he pe Cakulate the sam and the average of 10 marks entre The dt CaExtracted text: mpoe e o Cakulate the sum and the average of 10 marks entred by the user sty ID 2C -ape ia: Ran he tndon
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here