A restaurant recorded the ages of customers on two separate days. You are going to write a program to compare the number of customers in their teens (ages 13 to 19).

What is the missing line of code to count the number of customers in their teens?

customerAges = [13, 3, 11, 24, 35, 25, 15, 18, 1]
countTeens = 0
for item in customerAges:
_____:
countTeens = countTeens + 1

if 13 <= item <= 19

if 13 < item < 19

if 13 <= item[0] <= 19

if 13 < item[0] < 19

Answers

Answer 1

Answer:

if 13 <= item <= 19

Explanation:

Edge 2021

Answer 2

The missing line of code to count the number of customers in their teens is if 13 <= item <= 19. The correct option is b.

What is programming?

A form of computer programming language known as procedural programming describes a number of well-planned actions and processes during the course of its development.

It includes statements, functions, and commands that are organized systematically to finish a computing task or program. Its main focus is on developing procedures.

While object-oriented programming is a type of programming where the emphasis is on generating objects as opposed to actions and data or logic. Inheritance, polymorphism, abstraction, and encapsulation are its four guiding concepts.

Therefore, the correct option is b, if 13 <= item <= 19

To learn more about programming, refer to the link:

https://brainly.com/question/14368396

#SPJ2


Related Questions

I need help with 9.1

Answers

Answer:

x=circumfrence of circle im 29 boi

Explanation:

Consider the popular online retailer Amazon. What aspects of its business are run through public networks, and what aspects might be run through a private intranet?

Answers

Supporting strategic business objectives: intranets can play an active role in support high-level business objectives such as building, embedding and communicating a common culture, improving employee engagement or improving staff retention rates.

Answer: public: when amazon shows what everyone is buying or what is being sold most frequently. When you put down your review of a product and your profile.

private: when you put in your address debit or credit cards your email or phone number and more so amazon can ship the product you have bought and so you can buy the product.

Explanation: this is my first time answering a question i hope this helps :)

Why does it matter if a network is set up as a LAN, or a WAN?

Answers

Answer:

A small office or business will typically only need a LAN. The local network will ensure that different files can be transferred through your office leading to a connected business environment. If you have a larger business or multiple branches, that's when you're going to need a WAN. -Google.

Answer:

A small office or business will typically only need a LAN. The local network will ensure that different files can be transferred through your office leading to a connected business environment. If you have a larger business or multiple branches, that's when you're going to need a WA

Explanation:

Write 5-7 sentences about your own personal observations in which you have been part of a "filter". You might have experienced this is in your Twitter feed, specific advertisements, or your search engine results. Be specific.

Answers

Answer:

Answered below.

Explanation:

I made a search for a product on an online grocery store. The search results came in and I bought the product. On subsequent visits to the grocery store website or on browsing other sites, I had special advertisements pop up. These advertisements were suggesting products to me similar to the one I bought on the grocery store. It was a targeted advertisement that had been sent based on my recent searches and purchases on the site. So I knew that was a filter.

What kinds of circumstances would lead you to writing a function versus using a loop? please explain in simple terms

Answers

Answer:

1. You want to use parameters

2. You don't want your program to run multiple times

3. You want to call that snippet of code throughout your program

hope this helped :D


8.10 Code Practice Question 1

Write code that takes in two words from user input and stores them in the variables x and y respectively. Then, the programs the values in x and y, and print x and y).

Note: The variable names x and y are required for this question

Answers

x = input("Enter a word: ")

y = input("Enter a word: ")

x,y = y, x

print(x)

print(y)

I hope this helps

Since we need to perform some coding functions such as:

Asking for the input of a numberStoring them as individual variablesPrinting/Displaying the values independently.

First thing we need to do is to declare the unknown variables as x and y

Next would be to write the input this way:

x= input ("Put a word:")

y= input ("Put a second word:")

x,y = y, x

Print(x0

Print(Y)

Read more about programming here:

https://brainly.com/question/18900609

what is bit and byte in computer​

Answers

A bit is the smallest unit of information a byte is to see how many bits need to be represented (letters/characters)

Hope this helps

Imagine you're in charge of managing an annual fest at your school. You have to select students and assign them different tasks. Write a short essay on the qualities and traits you would be looking for while selecting students. Explain why you think these qualities and traits are important. Also, describe how the lack of such qualities and traits would affect the work.

Answers

Answer:

Quality traits are important in many ways. A persons traits identifies them of how they treat you or how you might treat them. It is important to find good working people for the job. For example if one student is good at a specific task I might put them in that task or if another is good at stocking shelves or finding books I might put them in the library to help students find books. It is important as a supervisor to find people that listen and follow instructions not people that mess around and are unorganized. These qualities and traits are important to see the real potential of the employees. Finding the right people for the job will help the school and you as the supervisor to manage these employees. Making a application or employment sheet will help to find the right people making a sheet with some questions and have the potential employees fill it out to find their traits and skills.

Explanation:

Sorry I didn't have much background information on what you wanted me to write hope this works you can edit and change stuff though.

Also run this through Grammarly's plagiarism tester to see if it is plagiarism!

What security concept states a user should only be given the minimum set of permissions required to perform necessary tasks

Answers

The correct answer is least functionality. I hope this helps.

Which actions help to protect a computer and keep it running properly? Check all that apply.

performing regular scans
deleting any unwanted files
backing up files and other data
saving Internet browsing history
saving and storing all junk files

Answers

backing up files and othed date
saving and storing all junk files
deleting any unwanted scans

Answer:

ABC

Explanation:

100% EDGE 2022

is it just me or do people delete other peoples questions and it shows up in my inbox staying its mine

Answers

Answer:

yessss same bru.h

Explanation:

Answer:

ive had that happen before i dont know why it happens

Kayla wants to know whether she should set her network up as a WAN or a LAN. What are the three questions you would ask her, and how would those questions affect your recommendation?

Answers

Due to it's typically massive size, WAN's are almost always slower then a LAN. The further the distance, the slower the network. One of the big disadvantages to having a WAN is the cost it can incur. Having a private WAN can be expensive.

Answer:

I would ask her: One, how large will the business be? Two, how secure she wants/needs the connection to be. And three, how much money she is willing to spend to install and/or maintain her network.

Since Kayla is just starting her business, my recommendation would be to set up her network as a LAN. A LAN is a group of computers and network devices connected together, and most often reside in one building. Kayla's business will start small, so it is not needed to set up her network as a WAN. WAN's are usually not restricted to a geographical location, and can be expanded to cover a whole country, or even a planet. A LAN would make sense in the coverage aspect, since Kayla's business has not expanded yet.

Depending on how secure she wants her network to be, she can choose whether or not she uses WAN or LAN. WAN is less secure, as it covers a large geographical area, while LAN is more secure. LAN is more secure because it covers a smaller area. I would recommend using LAN as it is better to have a secure network as a business.  

Finally, Kayla needs to address the cost of setting up and maintaining a LAN or WAN. I would recommend that Kayla uses a LAN because as a starting business, it is important to allocate money properly. LAN's usually cost less to install and maintain due to it's smaller geographical radius, so it would be best to choose to set up her network as a LAN.

Explanation:

In my 4.3 Code practice: Question 1.
Every time I enter an age, it just continues to print **HUG**
What is wrong with my code?

Answers

Answer:

you have the (while) code in whenever it is greater than 0, print hug. if less than, then nothing so flip the inequality thing around again.

Hope this helps plz hit the crown

What is a letter that is written by someone you know and is used by a college during the application process?

Answers

Letters of recommendation.

Answer:

Letters of recommedation ..

Explanation:

WHY DOES THIS HAPPEN!?!??!?

Answers

Answer:

whats the qeustain?

Explanation:

objets will never appear to have more than one vamishing point
true or false

Answers

Answer: it’s True

Explanation:

Select the best answer from the drop-down menu. Sometimes people feel threatened by new ideas and different ways of doing things. This results in . conflict is resentment that a person is experiencing but doesn't express. conflict is the behavioral or action stage of conflict. This is often characterized by negative actions. Conflict can arise in the workplace because of personality issues, cultural differences, and .

Answers

Answer

Conflict

Latent

Manifest

Religious beliefs

Explanation:

Can you please help me with the AP Computer Science Fill in the blank. What goes on number 5 8 and 18. I don’t understand this I need help programming.

Answers

Answer:

you can probably just delete them. what programming language is this?

How can you make the drawing tools contextual tab appear

Answers

Answer:

C. place the insertion point in any text in the text box.

Typically, the Ribbon contains the Draw tab. Here's how to add it, though, if you can't see it on yours. Customize the ribbon by selecting it with the right mouse click. Click OK after selecting the checkbox next to draw. Thus, option C is correct.

What make the drawing tools contextual tab appear?

If your Draw Tools are hidden, you can reveal them by bringing up the View menu, selecting Toolbars, and then selecting Drawing. Look at the Draw Tools' features for a bit.

When you click outside these objects, the tools in the contextual tabs are put away, giving you the options and resources you need to deal with them.

Clicking on the item causes the tab to reappear, and you can get them back. Your workspace remains uncluttered as a result.

Therefore, place the insertion point in any text in the text box.

Learn more contextual tab about  here:

https://brainly.com/question/14139335

#SPJ2

choose the type of error described. can you help me bc i don’t know??

Answers

Answer:

logic error occurs when the result is wrong...

syntax error occurs when you use the wrong punctuation...

runtime error occurs when the program starts running...

Answer:

Logic error: When the computer outputs an undesirable value due to the wrong use of operations.

Syntax error: Occurs when syntax is not used correctly in code.

Zero division error: Occurs when a value is divided by zero.

Hope this helps :)

What is the other name of the horizontal column graph?
graph is also known as the horlzontal column graph.

Answers

Answer:

Side Graph mabye?

Explanation:

Answer:

A bar graph.

Explanation:

A bar graph is also known as the horizontal column graph.

what is meant by astigmation​

Answers

Answer:

It is a condition where the eye isn't completely round

Explanation:

Answer:

is a common and generally treatable imperfection in the curvature of your eye that causes blurred distance and near vision. Astigmatism occurs when either the front surface of your eye (cornea) or the lens, inside your eye, has mismatched curves

Explanation:

How can internet affect business area? 


Answers

The communication between customers and businesses increases customer satisfaction and businesses are able to connect to the customers. it lets businesses go further to expand their service or product which can increases profit.

an early type of GUI is created, which includes windows, pop-ups, icons, and menus. What year did this happen? Please help!!! quick.

Answers

Answer:

1979

Sources:

Wired

InventHelp

hope i helped :D

help plz, u just gotta select all that apply :)

Answers

Answer:

Concept: Graph Analysis

We want to know all those that produce around 0.01 kg: Parsly, Coriander, Mint, Strawberry Rate positively and give brainlist

I have a problem with my Nintendo DS lite does anyone know how to fix it?

Answers

Try checking if the battery is still working, they usually tend to give out at times.

input and output devices provide means of communication between computers and outer world

Answers

Answer:

See explanation

Explanation:

This question seem incomplete as what's required was not stated.

To answer this question, I'll assume it's a fill-in-the-gap question

The definition given above describes computer peripherals.

Peripherals is one of the links between a computer user and the computer itself.

Through peripherals such as keyboards, mouse, light pen , one can send input into the computer.

In the same vein, one can get outputs through peripherals such as the computer monitor, speakers, printers, etc.

plzz help me with this question.........

Write a program to input a number find the sum of digits and the number of digits. Display the output also.......

sample input - 7359
sample digits - 24
number of digits - 4​

Answers

Answer:

please mark as brainliest!!

Explanation:

public class SumOfDigits{ public static void main(String args[]) { Scanner sc = new Scanner(System.in); System.out.println("Please enter a number to calculate sum of digits"); int number = sc.nextInt(); // Remember number/10 reduces one digit from number // and number%10 gives you last digit int sum = 0; int input = number; while (input != 0) { int lastdigit = input % 10; sum += lastdigit; input /= 10; } System.out.printf("Sum of digits of number %d is %d", number, sum); // closing Scanner to prevent resource leak sc.close(); } }

You’ve been tossed into an insane asylum. What do you tell the people there to prove to them that you don’t belong inside?

Answers

Was this a question on an assignment or are you in an asylum right now

An asylum is for crazy people. I'm crazy. Crazy people don't realize they're crazy. If I realize I'm crazy, then I'm not crazy. Therefore, I do not belong here.

5. What is a domain name used for?​

Answers

Answer:

Domain names serve to identify Internet resources, such as computers, networks, and services, with a text-based label that is easier to memorize than the numerical addresses used in the Internet protocols. A domain name may represent entire collections of such resources or individual instances.

Explanation:

*Hope this helps*

Other Questions
What inference could you make about the economic status of the nations founders based on the chart? exposed clout chaser Given m ||n, find the value of x 167 All of the following are processes included in the constructive coping method for stress except _________.Please select the best answer from the choices providedlearning to recognize and regulate stressorsconfronting the issue indirectlyensuring the body is protected from negative effects of stressevaluating stressful issues realistically The discount price of a book is 20% less than theretail price. James manages to purchase the bookat 30% off the discount price at a special booksale. What percent of the retail price did Jamespay?A) 42%B) 48%C) 50%D) 56% What do I do????????? Which industry did John Cocoris help develop in Tarpon Springs, Florida, in the early 1900s? Cotton harvesting Phosphate mining Railroad construction Sponge harvesting SOMEBODY PLEASE TELL ME THE ANSWER TO THIS QUESTION HURRY I ONLY HAVE 41 MINITES LEFT TO TAKE THID TEST!!!!! A hereditary ruler with little to no power Is 218 the correct answer, please this is worth a lot how many 1/6 cup servings are in 3/4 cups of pop corn How can the additive inverse be used to evaluate the problem below?Negative 3 minus (negative 6) help please thanks so much Grizzly bears have a diploid number of 74 chromosomes in their body cells. How many chromosomes were in each of the male's sperm cells?. pls help!!!!!!!!!!!!!! Taco Time Corporation is evaluating an extra dividend versus a share repurchase. In either case, $22,000 would be spent. Current earnings are $3.70 per share, and the stock currently sells for $91 per share. There are 4,000 shares outstanding. Ignore taxes and other imperfections. What will the companys EPS and PE ratio be under the two different scenarios? (Do not round intermediate calculations and round your answers to 2 decimal places, e.g., 32.16.) Visually (or use diagrams) to indicate which vessels connect to which chambers:Pulmonary artery to thePulmonary vein to theAorta to theSuperior vena cava to the Section 1: Experimental OverviewUse your answers from questions 1-3 as the basis for the first section of your lab report. This section provides your reader with background information about why you conducted this experiment and how it was completed. Outline the steps of the procedure in full sentences. It also provides potential answers (your hypothesis/es) relative to what you expected the experiment to demonstrate. This section should be 1-3 paragraphs in length. Read the following dream interpretation and answer the question that follows."I suspect that the patient's dream of being chased originates from his unresolved feelings of guilt during childhood."What perspective of dream interpretation is being offered?A. FreudianB. activation-synthesisC. JungianD. motivation 10x-(8 + 7x)SIMPLIFY IT ASAP PLEASE