Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

7.17 LAB: Medical device vulnerability scoring In this lab, you will complete the implementation of a Medical Device Vulnerability Scoring webpage. The purpose of this

7.17 LAB: Medical device vulnerability scoring

In this lab, you will complete the implementation of a Medical Device Vulnerability Scoring webpage. The purpose of this webpage is to return a score that numerically quantifies how vulnerable a specific vulnerability is to the particular attack. The properties of the system will be selected from a group of predetermined options, where each option is a styled radio button. Once options are selected for all possible properties, the webpage will display the vulnerability score (and hide the warning label).

1. Implement a function called updateScore() that verifies one button from each property is selected.

2. Using JavaScript, add a click or change event listener to each radio button (Do not add the event listener to the button label). Notice that the radio buttons are hidden using CSS.

3. Once one button from each property is selected, the webpage should:

- Hide the warning label by setting the display style of the

with ID warning to none. Note: both none and hidden have similar visual effects, however none doesn't occupy any space, while hidden does occupy space, affecting the layout).

- Compute the vulnerability score.

- The score should be updated and displayed inside the

with ID score.

4. The score must have a minimum of 0 and a maximum of 10.

5. The final score must be rounded up to the tenths decimal place, and displayed with one decimal place. Ex: If the final score is 7.311456, the score should be displayed as 7.4.

6. Once the score is being displayed, updating a property will automatically update the vulnerability score.

7. The score is computed as:

=()((3.326258289)+(1.1))ScoreFinal=(Scopestatus)((3.326258289ScoreBase)+(1.1ScoreExploitability)), where the ,ScopeStatus,ScoreBase, and ScoreExploitability are calculated as:

If ScoreBase is 0, then ScoreFinal should be 0.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Modern Database Management

Authors: Donald A. Carpenter Fred R. McFadden

1st Edition

8178088045, 978-8178088044

More Books

Students also viewed these Databases questions

Question

Find y'. y= |x + X (x) (x) X 1 02x+ 2x 1 O 2x + 1/3 Ex 2x +

Answered: 1 week ago