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]
3 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]3 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
The purpose of this assignment is to gain an understanding of the different variable type binding. You will write three function
SpyIntel [72]

Answer:

20!!!

Explanation:

3 0
3 years ago
Search for availability and pricing for a room for 2 adults and 2 kids (5 and 6 years old) for 4 nights in Madrid, Spain in abou
RoseWind [281]
Is this an actual asignment
4 0
2 years ago
Which of the following is used to add a visual effect to objects, such as text or graphics? A. Triggers B. Animations C. Transit
Lapatulllka [165]
B. Animations is correct
5 0
2 years ago
Read 2 more answers
Alan is quite surprised to see that his computer has been running slower than usual. Which of the following steps or actions sho
Llana [10]

Answer:

D is the correct answer i think.

Explanation:

8 0
3 years ago
Label each part. *GIVING BRAINLIEST*
ollegr [7]

Answer:

A.) Stator Magnets

B.) Windings

C.) Brushes

D.) Terminals

E.) Commutator

F.) Armature

7 0
3 years ago
Other questions:
  • What is word processing?
    15·2 answers
  • whats something that u want to do but ur parents wont allow it like having a phone or going to a college ​
    11·2 answers
  • To remove a header or footer from a document you can open the header and footer and manually delete the content true or false
    9·1 answer
  • Audio editing software contains several codecs that allow you to
    15·1 answer
  • You can view information for the individual people who will perform the tasks on theproject in the
    7·1 answer
  • How do you innovate or improve a product?
    12·1 answer
  • When an item in a menu is black, it means that _____.
    6·2 answers
  • A chief Information Security Officer (CISO) is performing a BIA for the organization in case of a natural disaster. Which of the
    8·1 answer
  • WHO IS EXCITED FOR COLD WAR SEASON 1????
    10·2 answers
  • ..................... is a group of related information stored in the computer​
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!