Reference no: EM13161730
There are 20 integers saved in a file called "data.txt" (just a random txt file with some numbers) All integers are in the range from 1 to 10
greater than 10 or less than 1). Assume you obtained these numbers from an experiment you (or someone else) ran, and now you want to write a program to do the data analysis.
Your data analysis must include:
1) Find the Arithmetic Mean of the 20 integers (this will be a floating point number).
2) Generate a table that lists each integer from 1 to 10 and the number of times it occurs. (This would be the precursor step to generating a histogram, which is NOT required in this problem)
3) Find the mode of the 20 integers (see below for the definition of a mode).
Example Output:
The mean of the data was 5.600000
The mode of the data was7
Integer Occurences
---------------------------
1 2
2 3
3 0
4 1
5 2
6 3
7 4
8 2
9 2
10 1
You must output the three values on the output screen and if possible, also on an output file called "results.txt"
Ask the user how many times you want to run
: c the algorithm. 2. Then choose a word at random from the array of Strings as the target (Use the integer random number generator)
|
Build a table of reynolds numbers at flow velocities
: Write a program code to compute and build a table of Reynolds numbers at flow velocities varying from 100 to 1000 ft/sec (at increments of 100)
|
In psuedocode, design an application
: In psuedocode, design an application that has an array of at least 20 integers. It should call a module that uses the sequential search algorithm to locate one of the values
|
Least number of comparisons needed
: What is the least number of comparisons needed to sort an array of 6 numbers, in the worst case, using any sorting algorithm that sorts with binary comparisons? Explain
|
20 integers saved in a file called "data.txt"
: There are 20 integers saved in a file called "data.txt" (just a random txt file with some numbers) All integers are in the range from 1 to 10
|
All the new strings generated
: Explain why, if on some round, all the new strings generated for any syntactic category are longer than s, and s has not already been generated for L(), then s cannot ever be put in L(). Hint: Use Exercise 11.3.5.
|
Brownian motion is a physical phenomenon
: Brownian motion is a physical phenomenon which can be observed, for instance, when a small particle is immersed in a liquid.
|
Write a program code to compute and build a table of reynold
: Write a program code to compute and build a table of Reynolds numbers at flow velocities varying from 100 to 1000 ft/sec (at increments of 100)
|
Method called printpowersof2 that accepts a maximum number
: Write a method called printPowersOf2 that accepts a maximum number as an argument and prints each power of 2 from 20 (1) up to that maximum power, inclusive. For example, consider the following calls: printPowersOf2(3); printPowersOf2(10)
|