Question
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
- Compute the vulnerability score.
- The score should be updated and displayed inside the
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started