1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
liq [111]
3 years ago
13

A museum charges different prices based on the day of the week and age of the visitor. The pricing rules are shown below. On Tue

sday 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.
Advanced Placement (AP)
2 answers:
igomit [66]3 years ago
6 0

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:

Lostsunrise [7]3 years ago
4 0

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.

You might be interested in
Which word, if it occurred in a true/false question, would give you a hint at the correct answer?
forsale [732]
D is the most obviously the answer 
3 0
3 years ago
Read 2 more answers
Dr. Xi conducted an experiment on the effectiveness of an antidepressant medication. Given her research design, if she finds tha
777dan777 [17]
I believe the correct answer is C. The other answers give outside information that doesn’t correlate with the promoted question.
5 0
3 years ago
Where does the refrigerant change from a gas to a liquid and then from a liquid to a gas? (in a car)
Dafna1 [17]

Answer:

BOILING

Explanation:

6 0
3 years ago
How did a modest proposal use imagery
g100num [7]
Qhahsysyysysysysyysxyyssgsdhjjcjjcxjx
6 0
3 years ago
Why do you think it was important for a knight to be pious ?
Goryan [66]
Because he represented his kingdom with how he acted
6 0
3 years ago
Other questions:
  • a ball is fired at an angle of 30 degrees to the horizontal at an initial velocity of 10 m/s. if the ball lands 20 m away, deter
    9·1 answer
  • I am at a stop sign I decide to turn I didn't turn on my turn signal then looked around and made my turn is it okay to turn on m
    7·1 answer
  • Which of the following demonstrates intrinsic motivation?
    9·2 answers
  • discuss the assertion that non formal institution have no role to play at the processing stage of the system thery is an empty r
    8·1 answer
  • James purchased 3 pounds of steak for $21. Which equation can be used to determine the cost, y, to purchase x pounds of steak?
    15·1 answer
  • Hello people can someone help me I'm into this person and I sent him a picture of my self and he said ''You honestly don’t look
    15·1 answer
  • WILL MARK BRAINLIEST IF GOTTEN RIGHT!!!!!
    9·2 answers
  • "The Hindus believe that there is no country but theirs, no nation like theirs, no kings like theirs, no religion like theirs, n
    11·1 answer
  • Que pasó diez años antes que los españoles viniese a esta tierra?
    13·2 answers
  • Penny has a group of friends who are really smart with computers. They claim they have a fool proof way to access questions to t
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!