The toll program illustrates the use of conditional statements;
As a general rule, conditional statements are used to make decisions
<h3>The
toll program</h3>
The toll program written in Python where conditional statements are used to make several decisions is as follows:
def calc_toll(hour, morning, weekend):
toll_fee = 0
if weekend == False:
if morning == True:
if hour < 7:
toll_fee+=1.15
elif hour < 10:
toll_fee+=2.95
elif hour <= 12:
toll_fee+=1.90
else:
if hour < 3:
toll_fee+=1.90
elif hour < 8:
toll_fee+=3.95
elif hour >= 8:
toll_fee+=1.40
else:
if morning == True:
if hour < 7:
toll_fee+=1.05
elif hour <= 12:
toll_fee+=2.15
else:
if hour < 8:
toll_fee+=2.15
elif hour >= 8:
toll_fee+=1.10
return toll_fee
Read more about conditional statements at:
brainly.com/question/24833629
#SPJ1
The antivirus software on a computer can detect and eradicate the most recent viruses Download the latest signature files regularly.
<h3>What is antivirus software on a computer?</h3>
- Antivirus software is a class of schedules designed to deter, detect and clear malware conditions on individual computing devices, networks, and IT systems.
- Antivirus software is a schedule or set of schedules that are prepared to prevent, search for, detect, and remove software viruses, and other nasty software like worms, trojans, adware, and more.
- The most standard antivirus software is McAfee Antivirus Plus is our top pick for multiple devices because its subscriptions offer protection for every machine in the home for a reasonable cost.
To learn more about antivirus software on a computer, refer to:
brainly.com/question/17209742
#SPJ4
Answer:
B. False
Explanation:
This is false because for a policy to prevent an infection, there are different processes that takes place. Such processes include detecting the type of infection that enters into the system and then trying to fight it off through the programmed tools.
Detection and reporting of symptoms also helps in the identification of the infection before it is fought.
I think it's C. Visual Programming
but I'm not 100% sure