Questions
Write a program that reads students’ names followed by their test scores. The program should output...

Write a program that reads students’ names followed by their test scores. The program should output each student’s name followed by the test scores and the relevant grade. It should also find and print the highest test score and the name of the students having the highest test score. Student data should be stored in a struct variable of type studentType, which has four components: studentFName and studentLName of type string, testScore of type int (testScore is between 0 and 100), and grade of type char. Suppose that the class has 20 students. Use an array of 20 components of type studentType. Your program must contain at least the following functions:

  1. A function to read the students’ data into the array.
  2. A function to assign the relevant grade to each student.
  3. A function to find the highest test score.
  4. A function to print the names of the students having the highest test score.

Your program must output each student’s name in this form: last name followed by a comma, followed by a space, followed by the first name; the name must be left justified. Moreover, other than declaring the variables and opening the input and output files, the function main should only be a collection of function calls.

This should be written in C++ please thank you.

Data must be read from a file

In: Computer Science

Windsor Company acquired a plant asset at the beginning of Year 1. The asset has an...

Windsor Company acquired a plant asset at the beginning of Year 1. The asset has an estimated service life of 5 years. An employee has prepared depreciation schedules for this asset using three different methods to compare the results of using one method with the results of using other methods. You are to assume that the following schedules have been correctly prepared for this asset using (1) the straight-line method, (2) the sum-of-the-years'-digits method, and (3) the double-declining-balance method.

Year

Straight-Line

Sum-of-the-
Years'-Digits

Double-Declining-
Balance

1 $10,440 $17,400 $23,200
2 10,440 13,920 13,920
3 10,440 10,440 8,352
4 10,440 6,960 5,011
5 10,440 3,480 1,717
Total $52,200 $52,200

$52,200

What is the cost of the asset being depreciated?

What amount, if any, was used in the depreciation calculations for the salvage value for this asset?

Which method will produce the highest charge to income in Year 1?

Which method will produce the highest charge to income in Year 4?

Which method will produce the highest book value for the asset at the end of Year 3?

If the asset is sold at the end of Year 3, which method would yield the highest gain (or lowest loss) on disposal of the asset?

In: Accounting

Shipments of raw materials are on time with probability 0.9. Find the probability that exactly one...

  1. Shipments of raw materials are on time with probability 0.9.
  1. Find the probability that exactly one shipment out of the next five is LATE.
  • r.v. X=
  • X~
  • P(X?
  1. Find the probability that the fifth shipment is the first LATE one.

In: Statistics and Probability

Find the probability and interpret the results. If convenient, use technology to find the probability. During...

Find the probability and interpret the results. If convenient, use technology to find the probability. During a certain week the mean price of gasoline was $2.704 per gallon. A random sample of 38 gas stations is drawn from this population. What is the probability that the mean price for the sample was between $2.683 and $2.722 that week? Assume o= $0.046

In: Statistics and Probability

A binomial probability experiment is conducted with the given parameters. Compute the probability of x successes...

A binomial probability experiment is conducted with the given parameters. Compute the probability of x successes in the n independent trials of the experiment.

n=10, p=0.45​, x=8

P(8)=

In: Statistics and Probability

A binomial probability experiment is conducted with the given parameters. Use technology to find the probability...

A binomial probability experiment is conducted with the given parameters. Use technology to find the probability of X successes in the n independent trials of the experiment.

n=9, p=0.25, x<4

P(x<4)=

A binomial probability experiment is conducted with the given parameters. compute the probability of X successes in the n independent trials of the experiment.

n=10, p=0.6, x=5

P(5)=

In: Statistics and Probability

A binomial probability experiment is conducted with the given parameters. Compute the probability of x successes...

A binomial probability experiment is conducted with the given parameters. Compute the probability of x successes in the n independent trials of the experiment.

n equals=40 p equals=0. 03​,x equals=2

p(2) =

A binomial probability experiment is conducted with the given parameters. Compute the probability of x successes in the n independent trials of the experiment.

n equals=6​, p equals=0.65​, x equals= 3

p(3) =

A binomial probability experiment is conducted with the given parameters. Compute the probability of x successes in the n independent trials of the experiment.

n = 9, p= 0.5, x ≤ 3

The probability of x ≤ 3 success is,

A binomial probability experiment is conducted with the given parameters. Use technology to find the probability of x successes in the n independent trials of the experiment.

n =7, p= 0.6, x < 4

p(x<4) =

In: Statistics and Probability

1, A binomial probability experiment is conducted with the given parameters. Compute the probability of x...

1, A binomial probability experiment is conducted with the given parameters. Compute the probability of x successes in the n independent trials of the experiment.

n=10, p=0.5, x=4

p(4)

​(Do not round until the final answer. Then round to four decimal places as​ needed.)

2, A binomial probability experiment is conducted with the given parameters. Compute the probability of x successes in the n independent trials of the experiment.

p(38)=

​(Do not round until the final answer. Then round to four decimal places as​ needed.)

3, A binomial probability experiment is conducted with the given parameters. Compute the probability of x successes in the n independent trials of the experiment.

n=9, p=0.7, x≤3

The probability of x less than or equals x≤3 successes is nothing.

​(Round to four decimal places as​ needed.)

4, A binomial probability experiment is conducted with the given parameters. Use technology to find the probability of x successes in the n independent trials of the experiment.

n=8​, p=0.2​, x<4

p(x<4)=

​(Round to four decimal places as​ needed.)

5, A binomial probability experiment is conducted with the given parameters. Compute the probability of x successes in the n independent trials of the experiment.

n=10​, p=0.25​, x≤4

The probability of x≤4 successes is nothing.

​(Round to four decimal places as​ needed.)

In: Statistics and Probability

A pitcher throws a strike with probability 75% and a ball with probability 25%. Although reality...

A pitcher throws a strike with probability 75% and a ball with probability 25%. Although reality is probably more complicated, we'll assume that the result of each pitch is independent from another. In other words, it doesn't matter what the past history of strikes/balls has been, the probability the next pitch is a strike is 75%.

Let's imagine the pitcher is currently practicing on an empty plate (no batter).

a. What is the probability that the first two pitches are both strikes?

b. When the previous two pitches have both been strikes, what is the probability the next pitch will be a strike?

c. What is the probability of getting a strike on the first pitch or second pitch? Remember that "or" in probability really means "at least one of", so this is asking "what is the probability that at least one of the first two pitches are strikes".

d. What is the probability that the pitcher will be able to throw 9 strikes in a row (enough to end an inning in the fastest way possible).

e. Using the complement rule, find the probability that the pitcher will have at least one strike in his first 6 pitches (note: the event "at least one" is the complement of "zero").

f. Find the probability of the following sequence of pitches (S = strike, B = ball): SBBSBS

g. (Bonus) Find the probability of a "strike out", i.e., that 3 strikes occur before 4 balls. Hint: write out all possible sequences of strikes/balls that result in a "strike out", find the probability of each sequence, then appropriately combine the results. Sanity check: I found the result close to 96%.

(If you could help with coding to figure out the answers to these questions as well)

In: Statistics and Probability

A binomial probability experiment is conducted with the given parameters. Compute the probability of x successes...

A binomial probability experiment is conducted with the given parameters. Compute the probability of x successes in the n independent trials of the experiment. n equals 9 ​, p equals 0.9 ​, x less than or equals 3

Please show each step fully so I actually understand how to do this in the future.

In: Statistics and Probability