Toll roads have different fees at different times of the day and on weekends. Write a function CalcToll() that has three arguments: the current hour of time (int), whether the time is morning (bool), and whether the day is a weekend (bool). The function returns the correct toll fee (double), based on the chart below.
Weekday Tolls
Weekend Tolls
Ex: The function calls below, with the given arguments, will return the following toll fees:
CalcToll(8, true, false) returns 2.95
CalcToll(1, false, false) returns 1.90
CalcToll(3, false, true) returns 2.15
CalcToll(5, true, true) returns 1.05
consider a mixture of two gases A and B, confined to a closed vessel. A quantity of a third gas, C, is added to the same vessel at the same temperature. How does the addition of gas C affect the following: A. the partial pressure of gas A, B. the total pressure in the vessel?
Two small charged metal spheres at a distance of 0.50 m from each other attract each other with the force F = 5.0 μN. one has a charge of -3.5 nC. What charge does the other bullet have?
What are the importance of economic growth to a country
How many moles of nitrogen are in 72.0 g of nitrous oxide n20
1 What mass of carbon monoxide gas is contained in a 15 L balloon at a pressure of 1325 mm Hg and a temperature of 36 C?
If 8.50-g of sodium hydroxide is dissolved to make 500-mL of cleaning solution,
calculate the pOH of the solution.
The demand curve for the bottle of water is Qd=100-6P and the supply Qs=28+3P.what is the equilibrium price?
In a high school class, 35% of the students take Spanish as a foreign language, 15% take French as a foreign language, and 40% take at least one of these languages. What is the probability that a randomly chosen student takes French given that the student takes Spanish?
TIC-TAC-TOE
ravan's dream is to win the tic-tac-toe champions to accomplish this,the practices alone at home to learn the strategies in the game your task is to identify the cell where ravan should place his 3rd piece so that be wins the game Assume that each cell in the tic-tac-toe board is marked with number as shown in the table below
tic tac toe
0 1 2
3 4 5
6 7 8
input:
the 1st line of input contains two space-separated integers represetation the cells where ravan has placed his 1st two piece
i/P:
0 1
o/P: 2
i/p: 0 3
o/p:6