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 visitor's age is stored in the variable age, the day of the week is stored in a variable day, and the price in dollars is stored in the variable price. Which piece of code will correctly decide the price for each ticket. A. B. C. D.

Answers

Answer 1

Answer:

D because we want the code to say day is equal to tuesday or day is equal to thursday and age is less than or equal to 10

Explanation:

Answer 2

Answer:

C.

Explanation:

You need an && statement because it says both Tuesday AND Thursday not Tuesday OR Thursday which is what the rest of the answer choices say.


Related Questions

Other Questions
Which equation gives the number of 1/4 centimetre that are in 7/8 centimetres Is there a phobia for chemical reactions specifically? PLEASE HELP!! Write a paragraph to proof to show that if PLEASE HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! In science class, Mrs. Moore's students were directed to weigh a 300-gram mass on the balance scale. Tina weighedthe object and reported 328 grams. 3 achievements of the first stage of French Revolution In Lord of The Flies what is the theme and the analysis of the characters. how do the characters effect the theme and what do they represent. a. What gland secretes LH (luteinizing hormone)? b. On what day does the LH reach its peak concentration? c. What happens to the egg in the ovary on Day 14 after LH levels reach their peak? Refer to B Events in the Ovary. Where were most of the cities of the empire located? Why do you think that was so? (please help me ) 1 , 3 , 6 , 10 , 151) What is the nth term of the sequence?2) Use the nth term to work out the 21st term of the sequence. Solve 8x 2(x + 1) = 7x + 8. (5 points) Question 3 options: 1) 6 2) 6 3) 10 4) 10 I need help on this please!!!!! Write the equation of the line that passes through the points (-3,-8) and (6,-4).Put your answer in fully reduced point-slope form, unless it is a vertical or horizontalline. help on 36 pleasee :DD English - help asap please. The story is "with friends like these" by Dorothy Rowe. Holly needs to buy some cloth. The following deals are available at various stores. Choose the best deal.$16.52 per 6 yd$13.85 per 5 yd a$16.52 for 6 yd b$13.85 for 5 yd cNeither What is the person that introduces a bill called?Please someone answer I need this. sorry im a bit slow could somebody help please why do the leaves of the plant grown in the shade have horizontal growth Why did German government most likely order the New Jersey munitions bombings?The Russians had invaded Berlin.The U.S. refused to sell military supplies to Germany.The company charged Germany more than other countries for weapons.The US entered the war.