Answer:
If a museum charges different prices based on the day of the week and age of the visitor. The pricing rules are shown below.
- On Tuesday and Thursday children 10 and under get in free ($ 0).
- For all other days and ages the cost is ten dollars ($ 10).
The code in python is;
if (day == 'Tuesday' or day == 'Thursday') and age <= 10:
price = 0
else:
price = 10
Explanation:
The logic of the algorithm suggests that that the conditional if-statement assigns zero to the price variable if the day variable is either Tuesday or Thursday and the child's age is 10 or below but assigns 10 to the price variable if the condition is not met.
Verify the USB cable is attached
Answer: Option A.
<u>Explanation:</u>
The USB cable utilized for printers is known as a USB AB cable, named for the attachments on each end. The USB-An end is a level, rectangular fitting; the USB-B end is a square attachment with two bended edges, which goes into the printer.
A USB link associates your printer to your PC, so you have an immediate association each time you print. Most of printers are good with a USB 2.0 A/B link. This is a standard link that is generally accessible and it can likewise be utilized to interface a few mice and cameras to your PC as well.
Answer: 0.1937
Explanation:
Given : A bowl contains 20 candies; 15 are chocolate and 5 are vanilla.
If we select 5 candies, then the number of ways to select them is given by permutations.
The number of ways to select 5 candies is given by :-

The number of ways of selecting any 5 candies out of 20:-

Now, the probability that all 5 are chocolate :-

Hence, the probability that all 5 are chocolate =0.1937
True it usually shows up with a blue underline