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
geniusboy [140]
4 years ago
10

In statistics the mode of a set of values is the value that occurs most often. Write a program that determines how many pieces o

f pie most people eat in a year. Set up an integer array that can hold responses from 30 people. For each person, enter the number of pieces they say they eat in a year. Then write a function that finds the mode of these 30 values. This will be the number of pie slices eaten by the most people. The function that finds and returns the mode should accept two arguments, an array of integers, and a value indicating how many elements are in the array.

Computers and Technology
1 answer:
Feliz [49]4 years ago
6 0

Answer:

  see below

Explanation:

The program of interest is the function "findMode[x, n]" in the attached. It is written the Wolfram Language of Mathematica.

The basic idea is that the data in the array is sorted. The sorted array is partitioned into sets of identical elements, and the number in each of those sets is counted. The maximum of those counts is the mode. The location of the maximum count corresponds to the location of the set having that count. We use that location information to pull out the mode value(s).

If there is more than one mode, all are reported.

__

An example data array is provided, along with the program output.

You might be interested in
Provide an example of a time in your personal or work life when you used the household measuring system and measured out an exac
Svetach [21]

Answer:

Cooking

Explanation:

Cooking and baking would be the easiest answer to come up with. It's the most practical thing that you would be measuring liquids and solids for. For example, you should measure how much water or flour you use when making food. Try and think of a time you may have used a measuring cup of some sort.

8 0
3 years ago
Many computer magazines and Web sites present comparisons of several DBMSs. Find one such DBMS comparison article and compare th
Marianna [84]

<u>In DBMS comparison normally end user compare the following this</u>

1. Cost effective.

2. How much storage capacity

3. Number of concurrent users or connection.

4. Extend storage capacity

<u>Explanation:</u>

Normally end users compare DBMS such as oracle, MySQL, sqlserver, MS access, and postages sql and mongo db.

If it is document oriented or image search best is mongo dB or clouch db, for best relationship management of DBMS such as oracle, MySQL server extra.

For colonial adventure tours and DBMS I would suggest either mongo dB or oracle all depends on organization.

7 0
3 years ago
(01.05 LC)
andriy [413]
The answer is input! because the input is what the user enters, the output is what comes out from that, and the text and value aren’t related to the user
7 0
4 years ago
Read 2 more answers
Any one know??please let me know
babunello [35]

Answer:

B

Explanation:

4 0
3 years ago
Read 2 more answers
"Na2SO3” represents sodium sulfite.
STatiana [176]
There are four atoms
5 0
3 years ago
Read 2 more answers
Other questions:
  • Martha wants to invite her coworkers to her birthday party. She uses the mail merge feature to compose and send the invitations.
    6·1 answer
  • Why is Abraham called the Father of Believers?
    6·1 answer
  • Before using large downloaded files that are in a compressed format, it is necessary to_____ them. A) Copy B) Extract C) Open D)
    9·1 answer
  • Sue needs to add a header and a footer to a presentation. Which process should she use to do this?
    10·2 answers
  • Write a method called sum with a while loop that adds up all numbers between two numbers a and b. The values for a and b can be
    11·2 answers
  • How does Shakespeare immediately introduce Tybalt as a menacing character?
    9·1 answer
  • PLS HELP SOON
    15·1 answer
  • A local pizza shop is selling a large pizza for $9.99. Given the number of pizzas to order as input, output the subtotal for the
    12·1 answer
  • Select the correct answer.
    15·1 answer
  • What can you do to make sure no one outside your company can gain access to its wireless network?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!