Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

5 - computa D EECS1012: Lab 5-computa EECS1012 Lab 5 - computa + ents/EECS%201012/ab20works/1ab04/labot pdf - + Fit to page Page view Exercise 5. Copy

image text in transcribed
5 - computa D EECS1012: Lab 5-computa EECS1012 Lab 5 - computa + ents/EECS%201012/ab20works/1ab04/labot pdf - + Fit to page Page view Exercise 5. Copy _Ex4.html and et_Ex4.js to new files named ct_Ex.html and t_Ex.js In this exercise, you should translate your flowchart of Exercise 5 of Part 1 to js. In particular, you need to make 3 changes in your ct_Ex5.html as follows: a) Make sure you link your html file to your new js file b) Change the header to be "mapping a numerical grade to a letter grade" c) When the "enter" button is clicked, the event handler mapping() should be truered. Also, you need to make 4 changes in your ct_Ex5.js as follows: a) Make sure name of the function is mapping b) Make sure pre/post conditions are updated to reflect how this function works c) Remove codes from line 9 to the comment above the switch statement d) Uncomment the block that the switch statement is in Now, save the changes and launch ct_Ex5.html with your browser. If you enter any number greater than 79, it is correctly mapped to an A or At; Also, if you enter any number less than 40, it is correctly mapped to F. But, if you enter, any number between 40 and 79, it's not mapped correctly. Your task is to fix this issue. mapping a numerical grade to a letter grade

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions