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
Mandarinka [93]
3 years ago
13

A certain list, L, contains a total of n numbers, not necessarily distinct, that are arranged in increasing order. If L1 is the

list consisting of the first n1 numbers in L and L2 is the list consisting of the last n2 numbers in L, is 17 a mode for L ? 17 is a mode for L1 and 17 is a mode for L2.
Computers and Technology
1 answer:
Free_Kalibri [48]3 years ago
3 0

In this question, we are given ,

  • A certain list, L, contains a total of n numbers, not necessarily distinct, that are arranged in increasing order.
  • L1 is the list consisting of the first n1 numbers in L.
  • L2 is the list consisting of the last n2 numbers in L.

Explanation:

As per the information given in statement 1, 17 is a mode for L1 and 17 is a mode for L2.

Therefore, we can infer that ,

  • 17 must occur in L1, either same or a greater number of times as any other number in L1.
  • 17 must occur in L1, either same or a greater number of times as any other number in L2.

As all elements in L are in ascending order, we can also conclude that

  • Each number between last occurrence of 17 in L1 and the first occurrence of 17 in L2 must be equal to 17 only.
  • Therefore, 17 occurs either same or greater number of times as any other number in L.
  • Thus, 17 is a mode for L.

However, from this statement, we cannot conclude anything about the mode of L1, L2, or L.

Hence, statement 2 is not sufficient to answer the question.

Therefore, 17 is a mode for L1 and 17 is a mode for L2.

You might be interested in
Write a program that calculates and displays a person’s body mass index (BMI). The BMI is often used to determine whether a pers
GuDViN [60]

Answer:

<em>This program is written using C++</em>

<em>Comments are used to explain difficult lines</em>

<em>Program starts here</em>

#include<iostream>

using namespace std;

int main()

{

//Declare variables

float BMI, Height,Weight;

// Prompt user for inputs

cout<<"Ener Height (in inches): ";

cin>>Height;

cout<<"Enter Weight (in pounds): ";

cin>>Weight;

//Calculate BMI

BMI = (Weight * 703)/(Height * Height);

cout<<"Your Body Mass Index (BMI) is "<<BMI<<endl;

//Test and print whether user is underweight, overweight or optimal

if(BMI>=18.5&&BMI<=25)

{

 cout<<"You have an optimal weight";

}

else if(BMI<18.5)

{

 cout<<"You are underweight";

}

else if(BMI>25)

{

 cout<<"You are overweight";

}  

return 0;

 

}

<em>See attachment for .cpp source file</em>

Download cpp
6 0
3 years ago
Which organism can process more complex information due to a central brain?
lesya692 [45]
<span>Jellyfish, they are consider the smartest and they have found things in them to help treat cancer.</span>
7 0
3 years ago
List three tacos there are several from the opening page of the help and support center.
s344n2d4d5 [400]
Mexican tacos sascSDV
8 0
4 years ago
Write biggerDigits.cpp that has a function called biggerDigits that uses two positive integer parameters with the same number of
fomenos

Answer:

Following are the program in the C++ Programming Language:

#include <iostream> //header file

using namespace std; //namespace

int biggerDigits(int n, int m) { //define function

if (n <= 0 || m <= 0) { //set if statement

return 0;  

}  

else { //set else statement

int a,b; //set integer variables

a = n % 10; //perform modulatio  

b = m % 10; //perform modulatio

int max = a; //set integer variable and assign value  

if (b > max) //set if statement

max = b; //initialize value to max

/*solution is here*/

return 10 * biggerDigits(n / 10, m / 10) + max;

}

}

int main() // main method  

{ // code is refer from question to make the program

cout << biggerDigits(567, 765) << endl; // call the function biggerdigits

cout << biggerDigits(123456, 444444) << endl; // call the function biggerdigits

//call function and print result

cout << biggerDigits(999, 111) << endl; // call the function biggerdigits

return 0; // return the integer 0

}

Explanation:

Here, we set the header file "<iostream>" and namespace "std" then, we set a function "biggerDigits()" and pass two integer type arguments inside it.

  • we set if condition in which when the variable "n" is less than equal to 0 or m is less than equal to 0 then, it return 0.
  • we set the else statement inside it we set two integer type variables "a" and "b" then, perform modulation with both the variables.
  • we set integer variable "max" and assign value of a in it.
  • we set if condition in which we check when the variable b is greater than variable max then, initialize the value of variable b in the variable max and return the solution through recursion.
7 0
3 years ago
Lance has three tables in his database he wants to generate a report to show the data from the three table so he decides to link
oksano4ka [1.4K]
He could create foreign keys, which are basically columns in a table with values that identify a record from another table.

However, even without foreign keys you can construct queries that link data from multiple tables together.
8 0
4 years ago
Read 2 more answers
Other questions:
  • What is cryptocurrency ? I need to do a research one it please help!
    6·1 answer
  • Declare a character variable letterStart. Write a statement to read a letter from the user into letterStart, followed by stateme
    10·1 answer
  • Eric walks 7 km East in 2 hours and then 2.5 km West in 1 hour.
    13·1 answer
  • Jabez needs to alert through an SMS text message those corporate users who have a specific brand and type of mobile device regar
    13·1 answer
  • How USB FLASH Drives Store Data? Explain, Maximum 5 linesa
    10·1 answer
  • Hi hehehehehehehehehheeheh<br>​
    10·1 answer
  • What is obtained after processing data?​
    8·1 answer
  • Which position most likely requires your Master's Degree for success
    7·1 answer
  • Which of the following are characteristics of centralized version control systems? Select 3 options.
    9·1 answer
  • Tricia is managing tasks that have been assigned to her. She needs to enter mileage information in relation to a project. Which
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!