Questions
1D List Practice Could you write the code to solve the following problem that uses 1D...

1D List Practice

Could you write the code to solve the following problem that uses 1D lists?

You have been tasked with writing a Python program that will assist the CAU Registrar’s Office with determining the following:

  • the average GPA of the freshman class after their first semester
  • the top five GPAs
  • the number of students who are eligible for the Dean’s List (i.e., their GPA is 3.25 or higher)

Your program will contain at least three (3) functions - main, getInfo, and compute - that complete the following tasks:

  • a function named main that “kicks off” the program with a description of what the program will do. It will then call the getInfo function (see below).
  • a function named getInfo reads the file named freshmen.txt and puts the GPAs of the freshman class into a list (named students). This function will then call (with the list as the argument) the compute function (see below).
  • a function compute will calculate and display (to the screen):
    • the average GPA of the freshman class after their first semester
    • the top five GPAs
    • the number of students who are eligible for the Dean’s List (i.e., their GPA is 3.25 or higher)

Note: To test/run your program, you will need to generate a file named freshmen.txt that contains 450 GPAs (each on its own line) that have been randomly generated, ranging from 1.0 to 4.0

In: Computer Science

The registrar of the university with the population of N = 4,000 full-time students is asked...

The registrar of the university with the population of N = 4,000 full-time students is asked by the president to conduct a survey satisfaction with quality of life on campus. The following table contains a breakdown of 4,000 registered full-time students by gender and class designation:

Class Designation Gender Fr. Soph. Jr. Sr. Total Female 700 520 500 480 2200

Male 560 460 400 380 1800

Total 1,260 980 900 860 4000

The registrar intends to take a probability sample of n = 200 students and project the results from the sample to the entire population of full-time students.

a) If the frame available from the registrar’s files is an alphabetical list of the names of N= 4000 registered students, what type of sample could you take?

b) What is the advantage and disadvantage of selecting a simple random sample in (a)?

c) What is the advantage and disadvantage of systemic sample in (a)?

d) If the frame available from the registrar’s files is a list of the names of all N = 4,000 students compiled from eight separate alphabetical lists, based on the gender and class designation breakdowns shown in the above table, what type of sample should you take? Why?

e) Suppose that each of the N = 4,000 students lives in one of the 10 campus dormitories. Each dormitory accommodates 400 students. It is the college policy to fully integrate students by gender and class designation in each dormitory. If the registrar is able to compile a listing of all students by dormitory, explain how you could take a cluster.

In: Statistics and Probability

The registrar of the university with the population of N = 4,000 full-time students is asked...

The registrar of the university with the population of N = 4,000 full-time students is asked by the president to conduct a survey satisfaction with quality of life on campus. The following table contains a breakdown of 4,000 registered full-time students by gender and class designation:

Class Designation Gender Fr. Soph. Jr. Sr. Total Female 700 520 500 480 2200

Male 560 460 400 380 1800

Total 1,260 980 900 860 4000

The registrar intends to take a probability sample of n = 200 students and project the results from the sample to the entire population of full-time students.

a) If the frame available from the registrar’s files is an alphabetical list of the names of N= 4000 registered students, what type of sample could you take?

b) What is the advantage and disadvantage of selecting a simple random sample in (a)?

c) What is the advantage and disadvantage of systemic sample in (a)?

d) If the frame available from the registrar’s files is a list of the names of all N = 4,000 students compiled from eight separate alphabetical lists, based on the gender and class designation breakdowns shown in the above table, what type of sample should you take? Why?

e) Suppose that each of the N = 4,000 students lives in one of the 10 campus dormitories. Each dormitory accommodates 400 students. It is the college policy to fully integrate students by gender and class designation in each dormitory. If the registrar is able to compile a listing of all students by dormitory, explain how you could take a cluster.

In: Statistics and Probability

​(i) product constituents, (ii) branding, (iii) packaging, (iv) product appearance, and (v) product quality

Give one example each , as to how

(i) product constituents, (ii) branding, (iii) packaging, (iv) product appearance, and (v) product quality are adopted in global marketing efforts in an effort to meet the demands of any of the many stakeholders such as customer, government, and others. - list in bullet points format - List one point each for the five items listed above.

In: Economics

Both methionine and cysteine contain Sulphur atoms and may combine to form disulfide bridges? T/F Both...

Both methionine and cysteine contain Sulphur atoms and may combine to form disulfide bridges? T/F

Both transcription and translation require primers for them to occur T/F

The conversion of acetyl CoA to malonyl CoA is the commitment step for β-oxidation. T/F

In: Biology

If you were the President of the United States and had to choose between spending on...

If you were the President of the United States and had to choose between spending on improvements in infrastructure (bridges, roads, trains, etc.), providing health care guarantees to families, or enhancing our military strength, which would you choose? Explain why in as much detail as possible.

In: Economics

List what the a.) independent and b.) dependent variables are and c.) experimental and d.) control...

List what the a.) independent and b.) dependent variables are and c.) experimental and d.) control group are in the following study.

A study wanted to look at the effects of coffee on students' performance in school. The researchers gave one group of students one cup of coffee a day and gave another group a glass of warm water.

In: Statistics and Probability

In Webb et al (2016) BMJ Open Sport Ex Med 2 e000089, what is the key...


In Webb et al (2016) BMJ Open Sport Ex Med 2 e000089, what is the key clinical difference between the cohorts from Studies 1 and 2 versus the cohort from Study 3? Why is this difference significant?

In: Biology

A stopwatch is to be used to estimate the time between the start and end of...

A stopwatch is to be used to estimate the time between the start and end of an event. Event duration might range from several seconds to 10 minutes. Estimate the probable uncertainty in a time estimate using a hand-operated stopwatch that claims an accuracy of 1 min/month (95%) and a resolution of 0.01 s.

Please show DETAILED work please.

How is Uc calculated?(Explain)

In: Mechanical Engineering

Systematic random samples are often used to choose a sample of apartments in a large building...

Systematic random samples are often used to choose a sample of apartments in a large building or dwelling units in a block at the last stage of a multistage sample. An example will illustrate the idea of a systematic sample. Suppose that we must choose 5 addresses out of 125. Because 125/5=25, we can think of the list as five lists of 25 addresses. Choose 1 of the first 25 at random, using software or Table B. The sample contains this address and the addresses 25, 50, 75, and 100 places down the list from it. If 13 is chosen, for example, then the systematic random sample consists of the addresses numbered 13, 38, 63, 88, and 113.

(a) A study of dating among college students wanted a sample of 200 of the 8000 single male students on campus. The sample consisted of every 40th name from a list of the 8000 students. Explain why the survey chooses every 40th name.

(b) Use software or Table B at line 112 to choose the starting point for this systematic sample.

In: Math