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
Newspapers are irrelevant now, magazines will get you much more viewers.
Answer:
The following where many reasons why IPv6 was used instead of IPv5 which are the limitation of it's 32 bit address, IPv5 began or used with a different name called Internet streaming, IPv6 provides unlimited addressing, because it comprises of 128 bit.
Explanation:
Solution:
The following reasons why Proponents of IPs used IPV6 instead of IPv5 is stated as follows:
- Due to its limited 32 bit addressing
- IPv6 offers almost unlimited addressing because of its 128-bit addressing
- IPv5 started under a different name which is internet stream(ST)
- ST(Internet streaming) was developed for streaming video and voice
- ST was developed by Apple, NeXT, and Sun Microsystems
- ST was effective on specific frequency to carry out communication