Answer:
If a museum charges different prices based on the day of the week and age of the visitor. The pricing rules are shown below.
- On Tuesday and Thursday children 10 and under get in free ($ 0).
- For all other days and ages the cost is ten dollars ($ 10).
The code in python is;
if (day == 'Tuesday' or day == 'Thursday') and age <= 10:
price = 0
else:
price = 10
Explanation:
The logic of the algorithm suggests that that the conditional if-statement assigns zero to the price variable if the day variable is either Tuesday or Thursday and the child's age is 10 or below but assigns 10 to the price variable if the condition is not met.
Answer:
See explaination
Explanation:
We already know that people all over the world are using the internet to communicate with each other to store their personal data, for the entrainment working in internet, doing online shopping and a lot of things. The user can faced with many threats. These threats are of different form.
The listed and explained below are some of the threats;
a) Compromised browser:-
Most popular browser are targeted and any security flaws exploited immediately. Criminals uses the flaws to gain access to sensitive document and shadow users browsing activity.
Phishing:-
Phishing is simply referring to the spam email or websites. Most times it is used to steal ones data, identity and funds. It looks genuine, this is what makes it hard to detect .
Poisoned websites:-
These are the fake link with hidden malware where the malware creator create a juicy news /video link which attract the user but the destination affect the PCs and the PC give a big virus alert and then compelled a visitor to be aware of the malware.
Misused social media sites:- These are often used in work place these are misused to spread Trojans and malware User download file and put the corporate network at risk .
These threats are not meaningful to the internet of Things (IOT) but there are different things like if you have a CCTV camera and it is connected to internet so by the threads anyone can take control over the cameras it can shut down the camera delete the recording of the camera and other things. There are the other threats.