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.

Answers

Answer 1

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.


Related Questions

what are 3 most common Operating systems ​

Answers

Answer: Microsoft Windows, Mac OS X, and Linux

Explanation:

Is this the answer you want or is it something else?

Answer:

Microsoft Windows, MacOS, Linux

Explanation:

These are the most common types.

Maya is a senior in high school and would like to pursue a career in web design. She needs more information about what skills and level of education are needed. What type of resource would be most helpful?

Answers

Answer:

Career resource website.

Explanation:

HTML is an acronym for hypertext markup language and it is a standard programming language which is used for designing, developing and creating web pages.

Generally, all HTML documents are divided into two (2) main parts; body and head. The head contains information such as version of HTML, title of a page, metadata, link to custom favicons and CSS etc. The body of the HTML document contains the contents or informations of a web page to be displayed.

In this scenario, Maya is a senior in high school and would like to pursue a career in web design. She needs more information about what skills and level of education are needed.

Hence, the type of resource which would be most helpful to Maya is a career resource website.

A career resource website can be defined as an online platform that offer a very clear, detailed and an elaborate approach to providing informative and helpful article, tips and advice on various career options with their specific requirements to both graduates and undergraduate students.

Answer:

Career resource website.

Explanation:

Took the test and got it right trust me ;)

Iciples UI
32
Select the correct answer.
Sheila is using a word processor to describe the procedure for performing a science experiment. What should she do to make it easier to read
the steps in the procedure?
A
use a numbered list to present the steps
B. align the steps with the right margin
C. decrease the line spacing between steps
D
center align the steps
Reset
Next

Answers

Answer:A

Explanation: I took the test !

The scientific procedure used by Sheila in the word processor can be processed for the ease with the numbering of the steps in the list.

What is a word processor?

The word processor is given as the computer program that has been used for the working of the document with making it editing, formatting, and adding the features to the document.

The word processing for the scientific experiment involves the series of events that takes place in the sequential order, thereby the easier way to read the process used by Sheila must be the numbering of the list.

Therefore, Sheila using the word processor describe the scientific procedure in the number list presenting steps. Thus, option A is correct.

Learn more about word processor, here:

https://brainly.com/question/14126052

#SPJ2

3
Select the correct answer.
What must a person who wants to join an online discussion group do first?
ОА. .
Email the group's moderator.
OB.
Register with the group.
O C. Reply to at least one message.
OD.
Pay a membership fee,
Reset
Next

Answers

Answer:

B. Register with the group.

Explanation:

A person who wants to join an online discussion group would have to first register with the group.

Basically, a user who is not registered with a web or local computer-based platform is considered to be a guest user and as such this user do not have the ability to post comments (messages) in its discussion group. Therefore, to have the exclusive rights and permission to participate in contributing to an online discussion group, a user must be registered with the platform as a bonafide member.

After the registration is complete, the user will have a user account (profile) which comprises of his login credentials i.e username and password.

Help !! -- Please ....................................................................................................

Answers

Answer:

1. Prompt user for input and get length and store in L

2. Prompt user for input and get width and store in W

3. Perform calculation p = 2LW and print out result

what file format should you not use for website photos?
JPEG
GIF
PNG
BMP

Answers

The answer is png. There is no png file
PNG is most common and the way how most people can open a picture.

I'm trying to move the figure a little away from, the column line and every time I move it and click ok it goes back to being beside the line like the others below​

Answers

Answer:

Try to click the center button layout.

Explanation:


One easy way to tell if a cell contains a formula instead of data is to click on the cell and look at the formula bar to
see if it

A. contains a number.
B.contains any parentheses.
C.begins with an equal sign.
D.begins with an operator.

Answers

Answer:

C.. begins with an equal sign.

Explanation:

EDGE2021

Other Questions
henry has his own dog washing business. his current business model charges by the weight of the dog Hii.. Which region receive the heaviest rainfall in the world ? Nikki used the calculations shown to determine whether a carton of 12 eggs or a carton of 18 eggs was the better buy.A carton of 12 eggs cost $2.39, and a carton of 18 eggs cost $3.39.Unit price of the 12-egg carton = ($2.39)(12 eggs) = $28.68 per eggUnit price of the 18-egg carton = ($3.39)(18 eggs) = $61.02 per eggThe 12-egg carton has the lower unit cost, so it is the better buy. I NEED HELP The graph below shows the distance traveled by four cars, A, B, C, and D, over a period of time.Which of the following statements can be concluded from the information on the graph?A. All cars traveled at least 90 kilometers.B. All cars traveled at different speeds.C. All cars traveled for 4 hours.D. All cars came to a stop, but at different times. Solve 3x + k= c for x.O'A. x = 3(c- k)O B. X=C+*3 VSpeeding A trucker handed in a ticket at a toll booth showing that in 2 h she had covered 159 mi on a toll road with speed limit 65 mph. The trucker was cited for speeding. Why A soft drink bottler incurred the following factory utility cost: $3,911 for 850 cases bottled and $3,966 for 1,000 cases bottled. Factory utility cost is a mixed cost containing both fixed and variable components. The variable factory utility cost per case bottled is closest to: Which fraction equals 4? Which best replaces the question mark? Meg is packing a shipping conditier.There is one section of the shipping container that has not yet been packed. The space available is in the shape of rectangularprism that measures 2 feet by 3 feet by 33 feet.She will pack as many boxes into the available space as possible. Each box is in the shape of a cube with side length 1 foot.The space available in the shinning container and one of the boxes are shown below. Which linear equation can be used to represent a line perpendicular to Line W passing through point (-3,-2)?line on graph is x=8 Help please What does democratic mean? Michelle is hosting a party that starts at 6:00 PM. She realizes she did not freeze the ice cubes! She puts ice cubes in the freezer at 1:00 PM hoping they freeze by the time the party starts. The water is 82 degrees Fahrenheit when put into the freezer and will freeze when it reaches 32 degrees Fahrenheit. In Michelle's freezer the water cools to 80% of the temperature from the previous hour. Will the ice cubes freeze before the party starts? The perimeter of a rectangular room is 52 feet. The length is 2 more than the width. What is the width of the room?A. 10 feetB. 14 feetC. 13 feetD. 12 feet For each branch, identify one power that they have and one way they can check another branch. Legislative:Executive:Judicial:Provide a real-world example that shows the power or check that you mentioned above for each branch.Legislative:Executive:Judicial: If you have a mass of 15kg , what is your weight on earth? Write an equation of the line that passes through (3,2) and is perpendicular to the line y= 1/3x-3 Which describes smooth muscle? a. involuntary muscle found only in the heartb. voluntary muscle you control for activityc. involuntary muscle that controls internal motionsd. voluntary muscle attached to your bones 34 is 50% of what number? The talkative girl yammered to her friends about her father because he forces her to study every single day. OR The talkative girl yammered to her friends about her father because he forced her to study every single day.