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
pashok25 [27]
3 years ago
15

A restaurant recorded the ages of customers on two separate days. You are going to write a program to compare the number of cust

omers in their forties (ages 40 to 49).
What is the missing line of code?

customerAges = [33, 23, 11, 44, 35, 25, 35, 68, 51]

count40s = 0
for item in customerAges:
_____;
count40s = count40s + 1
print("Forties:", count40s)


if 40 > item > 49

if 40 < item < 49

if 40 <= item <= 49:

if 40 >= item >= 49
Computers and Technology
1 answer:
Mama L [17]3 years ago
5 0

Answer:

if 40>= item >=49

Explanation:

You might be interested in
The older computer had a CPU that ran at 266MHz compared to a current CPU that runs 3.7GHz. How many times faster is the new CPU
sergij07 [2.7K]

Answer:

Number of times new computer faster than old computer = 13.90 times (Approx)

Explanation:

Given:

Clock speed of old computer = 266 MHz

Clock speed of new computer = 3.7 GHz

266MHz = 0.266GHz

Find:

Number of times new computer faster than old computer

Computation:

Number of times new computer faster than old computer = Clock speed of new computer / Clock speed of old computer

Number of times new computer faster than old computer = 3.7 / 266

Number of times new computer faster than old computer = 3.7 / 0.266

Number of times new computer faster than old computer = 13.90 times (Approx)

3 0
3 years ago
During the data transmission there are chances that the data bits in the frame might get corrupted. This will require the sender
pashok25 [27]

1. Based on Scenario A, the packets should be encapsulated in multiple frames to minimize the re-transmission overhead.

This is because there will be the need to re-transmit the packets because the network environment is not reliable and accurate.  Therefore, a single frame may be too costly when the need for re-transmission arises.

2. Based on Scenario B, the packets should be encapsulated in a single frame because of the high level of network reliability and accuracy.  

There will not be further need to re-transmit the packets in a highly reliable and accurate network environment.  This environment makes a single frame better.

Encapsulation involves the process of wrapping code and data together within a class so that data is protected and access to code is restricted.

With encapsulation, each layer:

  • provides a service to the layer above it
  • communicates with a corresponding receiving node

Thus, in a reliable and accurate network environment, single frames should be used to enhance transmission and minimize re-transmission overhead.

Learn more about data encapsulation here: brainly.com/question/23382725

5 0
3 years ago
Which describes the safest way to sit at a desk while typing on the computer?
Anna35 [415]

Answer:

Keep the knees and hips at 90-degree angles and the wrists straight.

Explanation:

From computer ergonomics, sitting at a desk and typing can affect the back, cause discomfort and sometimes injury. To protect the back, always sit with the knee and hips positioned at 90 degree while keeping the wrist straight and also position the equipment appropriately to always suite this posture.  

7 0
3 years ago
Which layer in the Transmission Control Protocol/Internet Protocol (TCP/IP) model is responsible for delivering data between two
s2008m [1.1K]

Answer:

Network.

Explanation:

The Transmission Control Protocol/Internet Protocol (TCP/IP) model is a standard networking protocol which allows network devices such as routers, switches, and host computers to interconnect and communicate with one another over a network. The Transmission Control Protocol/Internet Protocol (TCP/IP) model comprises of four (4) layers and these includes;

I. Application layer.

II. Transport layer.

III. Internet layer.

IV. Network layer.

The network layer in the Transmission Control Protocol/Internet Protocol (TCP/IP) model is responsible for delivering data between two nodes.

Basically, this layer known as network layer is the fourth layer of the Transmission Control Protocol/Internet Protocol (TCP/IP) model and it is typically responsible for the transmission of packets from one network device to another.

4 0
3 years ago
Write a method named quarterstodollars. the method should accept an int argument that is a number of quarters, and return the eq
enyata [817]
 public static void quarterstodollars(String[] args) {    Scanner input = new Scanner(System.in);    System.out.println("Enter number of Quarters:");
    System.out.print("Quarters:");    int Q1 = input.nextInt();
DecimalFormat fmt = new DecimalFormat("$#,###.##");    System.out.println("Total:"+fmt.format(calctotal(Q1)));}public static double calctotal(int Q1) {    double total;    total=(0.25 * Q1);    return (total);}

Hope this helps!
7 0
4 years ago
Read 2 more answers
Other questions:
  • What is needed to create a good problem statement?
    10·1 answer
  • What are some programs that you have used that have condition-controlled loops and count-controlled loops?
    10·1 answer
  • When at the rightmost cell in a row, press the ENTER key to move to the first cell in the next row; do not press the TAB key.
    14·1 answer
  • Write a function shampoo_instructions() with parameter num_cycles. If num_cycles is less than 1, print "Too few.". If more than
    9·1 answer
  • You are managing an FTP server installed in Ubuntu Server. The server has created a very large log le, vsftpd.log. Which command
    14·1 answer
  • Which of the following is NOT an e-reader you would use as an alternative to carrying around a set of textbooks?
    13·1 answer
  • Hoda needs to create a chart that is associated with an Excel spreadsheet. She needs to ensure that if the data in the spreadshe
    12·1 answer
  • You need to select the text / picture /shape before you can Hyperlink.
    9·1 answer
  • Darla is going to start writing the HTML code for a web page. What would she start with?
    11·1 answer
  • Which device allows users to directly hear data from a computer
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!