Question: 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

 5 - computa D EECS1012: Lab 5-computa EECS1012 Lab 5 -

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!