Question
Respond in POWERSHELL PLEASE function howMany($obj) { Write-Host Number of hits: $obj.count return $obj.count } # DO NOT MODIFY # EXAMPLE USECASE: howMany -cc
Respond in POWERSHELL PLEASE
function howMany($obj) { Write-Host "Number of hits: " $obj.count return $obj.count }
# DO NOT MODIFY # EXAMPLE USECASE: howMany -cc 5 -ssn 15 # cc is the number of Credit Cards Stolen # ssn is the number of Social secuirty numbers stolen function incidentCost($cc,$ssn) { $totalUsers = $cc + $ssn ## Credit Card's lost Write-Host "Estimated hacker's stolen credit card data sale: " ($cc*5) " USD"
## SSN's lost Write-Host "Estimated hacker's stolen Social Security Number data worth: " ($ssn*1) " USD"
## Business cost to response of a breach ## https://www.pandasecurity.com/mediacenter/security/cost-of-a-data-breach/ Write-Host "Estimated loss and impact of the breach: " ($totalUsers*150) " USD"
return $totalUsers*150 }
## 8. With a major data breach on our hands, we must inform the CEO the expected financial loss to the business. ## A helper function has been provided called incidentCost ## Each type of sensitive data are found in the result variables from #6 and #7 above and ## can be used as arguments for this problem. ## Look at the incidentCost function for example on how it can be used. No need to modify it. ## HINT: Estimated loss to the business is greater than $200K ## YOUR CODE BELOW HERE
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