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
Answer:
cell phone and television
Explanation:
they have computers inside of them so they are digital
Answer:
The algorithm is as follows
1. Start
2. Input Apple unit price
3. Input Mango unit price
4. input Tomato unit price
5. Total = Apple Price * 2 + Mango Price * 2 + Tomato Price
6. Display Total
7. End
Explanation:
Start the algorithm
1. Start
The next three lines gets input for the price of each fruit
<em>2. Input Apple unit price</em>
<em>3. Input Mango unit price</em>
<em>4. input Tomato unit price</em>
This calculates the total price
5. Total = Apple Price * 2 + Mango Price * 2 + Tomato Price
This displays the total price
6. Display Total
Stop the algorithm
7. End
Answer: Laser Beams
Explanation:
The laser beam is one of the type of technology that helps in amplifying the light by using the laser principle Stimulated emission in the laser. The word "LASER" is stand for the Light amplification by stimulated emission of radiation.
The laser is one of the device that emitted the coherent light in the form of beam rays that is propagate only in one direction. The following are the laser beam technology are as follows:
- Bar code reader
- Laser surface modification
- Information processing
- Laser range
Therefore, Laser beam is the correct answer.
Answer:
They are called System Requirements.
Explanation: