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
In chemical reactions, as a carrier of materials or keeping the temperature of cells from quickly changing.
Answer:
The correct answer for the given question is an option(b) i.e java.
Explanation:
Java is an object oriented programming language that is mostly used for the creating the websites.Java is most secure and reliable programming language than the other programming language.
C is a programming language but it is not object oriented programming language thats why this option is incorrect.
Visual basic is a Programming language it is also used to create a web page but it is not commonly used to create a web page thats why this option is incorrect.
The scheme is not used to create a web page thats why this option is also incorrect.
It stands for arithmetic logic unit
Answer:
Hi
Explanation:
Hi I need points to do my ela work !