Questions
Goal: To bring together everything you've learned about repetition, relational operators, and input validation and show...

Goal: To bring together everything you've learned about repetition, relational operators, and input validation and show your mastery of these concepts.


You are to write a program that will allow a user to enter as many numbers as they want (one number at a time and all numbers must be greater than zero). You must have a way for the user to stop entering values. Once the user stops, you will immediately display the following:

  • The lowest number was:
  • The highest number was:
  • The number of values entered was:
  • The average of the numbers was:

An IPO or Flowchart for the problem.

A test case sheet that shows 3 sets of input data, and the expected results of running the
program for each set of input data.

C Code

In: Computer Science

Code the game of Rock, Paper, Scissors between a human player and the computer. You can...

Code the game of Rock, Paper, Scissors between a human player and the computer. You can check out the game on Wikipedia if you are not familiar with it. Create a 4 option menu with the human player choices, plus the option of exiting the game. Randomly determine the computer’s choice (although a great deal of AI research has gone in to determining the best computer move).

• Loop the game until the human player exits.

• Count the number of times the computer and the human each won.

When you’re done, display the total number of hands played, the number of times the human won and the number of times the computer won. Declare the highest total of winning hands the game winner.

In: Computer Science

JAVA) I need to get 10 integer numbers from the user. Then I need to find...

JAVA) I need to get 10 integer numbers from the user. Then I need to find sum of odd numbers, sum of even numbers, the lowest number of all numbers, the highest number of all numbers, and the average of all numbers( use double, with the two digit decimal)

process;

loopCount = 1

While LoopCount <= 10

Read number from the keyboard

If odd, add to the total of all odd numbers

If even, add to the total of all even numbers

Add to the total of ALL numbers

Determine the smallest and largest number

Increment loopCount

End Loop Identify and display all three totals and range of numbers

Compute and display the average

In: Computer Science

Given a data file murders.dat containing the number of murders in Hampton roads cities write program...

Given a data file murders.dat containing the number of murders in Hampton roads cities write program code to accomplish the following: 1. Read the data from the murders.dat file and store into parallel arrays or an array of struct 2. Print the total number of murders in the Hampton roads cities 3. Print all of the data read 4. Print the name of the city with the most murders 5. Print the name of the city with the least murders 6. Print the names of all cities with 10 or more murders 7. Print cities sorted by number of murders (lowest to highest)

C++

i just need help with printing the cities sorted by number of murders

In: Computer Science

Assignment III 1) Use the non-machine formula to calculate the variance and standard deviation from the...

Assignment III 1) Use the non-machine formula to calculate the variance and standard deviation from the following data Herd 1 67 62 69 72 68 68 71 69 65 71 70 64 64 66 71 67 75 2) What is the probability that one card selected from a deck of 52 is a club or a number card or both? 3) A container contains 10 green tennis balls and 7 orange tennis balls. What is the probability of drawing 2 green tennis balls in a row? Draw without replacement. 4) A die is rolled four times what is the probability of rolling 3 twos? 5) A pair of dice is rolled 5 times, what is the probability of 3 sixes? 6) An internal study by the Technology Services department at Lahey Electronics revealed company employees receive an average of two emails per hour. Assume the arrival of these emails is approximated by the Poisson distribution. a) What is the probability Linda Lahey, company president, received exactly 1 email between 4pm and 5 pm yesterday? b) What is the probability she received 5 or more email during the period? c) What is the probability she did not receive any email during the period? 7) The personnel manager of Cumberland Pig Iron Company is studying the number of onthe-job accidents over a period of one month. He developed the following probability distribution in the following table. Compute the mean, variance, and standard deviation of the number of accidents in a month. Number of Accidents Probability 0 .40 1 .20 2 .20 3 .10 4 .10

In: Statistics and Probability

suppose that the mean number of fatal car accidents each year in VA is 26.5 and...

suppose that the mean number of fatal car accidents each year in VA is 26.5 and these accidents follow a Poisson distribution. a) find the mean and standard deviation of the number of fatalities per day in VA? b) Find the probability that on a given day there are 2 fatal car accident accident in VA? C) Find the probability that on a given day there will be at least one fatal one fatal car accident in VA? D) Find the probability that on a given day there will be at most one fatal car accident in VA?

In: Statistics and Probability

Basic probability question. Please solve with details showing the usage of formula for combination/permutation as needed....

Basic probability question. Please solve with details showing the usage of formula for combination/permutation as needed.

Question: A bowl contains 10 marbles, each with a color and a number denoted by B1, B2, B3, B4, R1, R2, R3, G1, G2, G3. Two marbles are randomly drawn without replacement.
(a) What is the size of the sample space?
(b) Determine the probability of drawing two marbles that has a sum of an odd number.
(c) Determine the probability of drawing the second marble marked with a 3.

In: Statistics and Probability

Assume that random guesses are made for six multiple choice questions on an SAT​ test, so...

Assume that random guesses are made for six multiple choice questions on an SAT​ test, so that there are n equals 6 ​trials, each with probability of success​ (correct) given by p equals 0.6. Find the indicated probability for the number of correct answers. Find the probability that the number x of correct answers is fewer than 4. Upper P left parenthesis Upper X less than 4 right parenthesis equals nothing ​(Round to four decimal places as​ needed.)

In: Statistics and Probability

an electronics store sends out a survey to seven new customers to determine if they are...

an electronics store sends out a survey to seven new customers to determine if they are satisfied with their purchase. Assume the probability a customer will be satisfied is 0.7.
a. What is the mean number of customers that will be satisfied?

b. What is the standard deviation of the number of customers satisfied? 4. What is the probability of exactly five customers being satisfied?

c. What is the probability of at least one customer being satisfied? (Hint: use the compliment of “at least one”. Give the answer to seven places to the right of the decimal point

In: Statistics and Probability

A coin with P[Heads]= p and P[Tails]= 1p is tossed repeatedly (the tosses are independent). Define...

A coin with P[Heads]= p and P[Tails]= 1p is tossed repeatedly (the tosses are independent). Define (X = number of the toss on which the first H appears, Y = number of the toss on which the second H appears. Clearly 1X<Y. (i) Are X and Y independent? Why or why not? (ii) What is the probability distribution of X? (iii) Find the probability distribution of Y . (iv) Let Z = Y X. Find the joint probability mass function

In: Statistics and Probability