Questions
Write a program, which reads a list of student records from a file in batch mode....

Write a program, which reads a list of student records from a file in batch mode. Each student record comprises a roll number and student name, and the student records are separated by commas. An example data in the file is given below.

· SP18-BCS-050 (Ali Hussan Butt), SP19-BCS-154 (Huma Khalid), FA19-BSE-111 (Muhammad Asim Ali), SP20-BSE-090 (Muhammad Wajid), SP17-BCS-014 (Adil Jameel)

The program should store students roll numbers and names separately in 2 parallel arrays named names and rolls, i.e. in the above case, 1st element of names contains “Ali Hussan Butt” and 1st element of rolls contain “SP18-BCS-321”; similarly, 2nd element of names contains “Huma Khalid” and 2nd element of rolls contain “SP19-BCS-154” and so on. Hint: You may use delimiters string “() ,”. Ignore empty strings returned as tokens (i.e. strings with length 0), if any.

In the end, first, display roll numbers and names for only the following students:

· Who are enrolled in BCS program.

· Whose roll number is between 100 and 200. (Hint: you can extract last 3 characters of roll number, convert it into integer and then check range 100-200)

For example, in the above case, only following students should be displayed.

1. Ali Hussan Butt, roll number: SP18-BCS-050

2. Adil Jameel, roll number: SP17-BCS-014

NOTE:USE ONLY C LAUNGAGE AND DONT USE FILE HANDLING.

In: Computer Science

A university administrator expects that 25% of students in a core course will receive an A....

A university administrator expects that 25% of students in a core course will receive an A. He looks at the grades assigned to 60 students. a. What are the expected value and the standard error for the proportion of students that receive an A? b. Use an appropriate normal transformation to calculate the probability that the percentage of students that receive an A is 20% or less. c. Use an appropriate normal transformation to calculate the probability that the proportion of students who receive an A is between 0.20 and 0.35. d. Use an appropriate normal transformation to calculate the probability that the proportion of students who receive an A is not between 0.20 and 0.30

In: Statistics and Probability

The hypothesis is that students who are familiar with the Theory of Algorithms learn the programming...

The hypothesis is that students who are familiar with the Theory of Algorithms learn the programming language C++ faster than students who are not familiar with this theory. We have gathered data from 30 students who are familiar with the Theory of Algorithms (Group 1) and 30 students who are not familiar with the Theory of Algorithms (Group 2). Experiments showed students from Group 1 took a mean of 32.5 hours to complete the training course of C++, while students Group 2 the mean was 42.1 hours. The p-value was 0.14.

In: Computer Science

The mean GPA of night students is 2.28 with a standard deviation of 0.39. The mean...

The mean GPA of night students is 2.28 with a standard deviation of 0.39. The mean GPA of day students is 1.91 with a standard deviation of 0.64. You sample 30 night students and 20 day students.

a. What is the mean of the distribution of sample mean differences (night GPA - day GPA)?

b. What is the standard deviation of the distribution of sample mean differences (night GPA - day GPA)?

c. Find the probability that the mean GPA of the sample of night students is less than the mean GPA of the sample of day students.

In: Statistics and Probability

A university financial aid office polled a random sample of 801801 male undergraduate students and 858858...

A university financial aid office polled a random sample of 801801 male undergraduate students and 858858 female undergraduate students. Each of the students was asked whether or not they were employed during the previous summer. 571571 of the male students and 513513 of the female students said that they had worked during the previous summer. Give a 98%98% confidence interval for the difference between the proportions of male and female students who were employed during the summer.

Step 2 of 4:

Find the critical value that should be used in constructing the confidence interval.

In: Statistics and Probability

A plug-in transformer supplies 9.00 V to a video game system. How many turns are in its secondary coil if its input voltage is 120 V and the primary coil has 381 turns?

(A) A plug-in transformer supplies 9.00 V to a video game system. How many turns are in its secondary coil if its input voltage is 120 V and the primary coil has 381 turns? What is its input current when its output is 1.33 A?

(B)What is the characteristic time constant of a 24.2 mH inductor that has a resistance of 4.08 Ω? If it is connected to a 12.0 V battery, what is the current after 12.5 ms?

(C)Two protons are released from rest, one from location 1 and another from location 2. When these two protons reach location 3, the first proton has a speed that is 4 times the speed of the second proton. If the electric potentials at locations 1 and 2 are 231 V and 115 V, respectively, what is the electric potential at location 3?

(D)Two microwave frequencies are authorized for use in microwave ovens: 910 and 2590 MHz. Calculate the wavelength of each.

In: Physics

Laptop computers are charged using laptop chargers (adapters) which are connected to 240 V supply and...

Laptop computers are charged using laptop chargers (adapters) which are connected to 240 V supply and uses 1.5 A to provide 19 V to a computer. Describe in detail, how does adapter convert at 240 V supply to 19 V as output? Does this laptop adapter belong to step up or step down? Justify. What will be the output current if its efficiency is 96% ? The adapter uses low voltages like 240 V, 50 Hz whereas transmission lines operate at very high voltages. How it can be achieved? Inside the computer, A 50 Ω resistor and 100 μF capacitor are connected in series to a 50 Hz source. What will be the maximum voltage in the circuit if r.m.s current in the circuit is 0.3 A? Can you show that the sum of rms voltage across resistor and that across capacitor is more than rms voltage across entire circuit? Compare the phase angle for the above circuit with that for a circuit containing only capacitor.

In: Physics

Choose ONE or more of the following cases and discuss, in detail, the manner in which...

Choose ONE or more of the following cases and discuss, in detail, the manner in which the case has shaped the Australian taxation system and the importance of the case in the context of Australian business and commerce:

a.     Federal Commissioner of Taxation v Stone 2005 ATC 4234.

b.     Federal Commissioner of Taxation v Whitfords Beach Pty Ltd (1982) 150 CLR 355.

c.     Harding v Commissioner of Taxation [2007] FCAFC 29.

d.     Federal Commissioner of Taxation v Myer Emporium Ltd (1987) 163 CLR 199.

e.     Bywater Investments Limited & Ors v. Commissioner of Taxation [2016] HCA 45.

Explain your answer with reference to the facts and issues arising in the case you select, and provide an appraisal of the Court’s decision. Ensure you refer to relevant legislation, ATO Guidance and professional legal, tax or accounting commentary relevant to your case in support of your answer.

In: Accounting

Matt Peters wishes to evaluate the risk and return behaviors associated with various combinations of assets...

Matt Peters wishes to evaluate the risk and return behaviors associated with various combinations of assets V and W under three assumed degrees of correlation: Perfectly positive, uncorrelated, and perfectly negative. The expected returns and standard deviations calculated for each of the assets are shown in the following table:

Asset V: Expected Return: 8% Risk: 5%

Asset W: Expected Return: 13% Risk: 10%

a. If the returns of assets V and W are perfectly positively correlated(coefficient =+1), describe the range of (1) expected return and (2) risk associated with all possible portfolio combinations

b. If the returns of assets V and W are uncorrelated (coefficient =0), describe the range of (1) expected return and (2) risk associated with all possible portfolio combinations

c. If the returns of assets V and W are perfectly negatively correlated(coefficient =-1), describe the range of (1) expected return and (2) risk associated with all possible portfolio combinations

In: Finance

In Drosophila, the mutant genes ct (cut wings), y (yellow body), and v (vermillion eye color)...

In Drosophila, the mutant genes ct (cut wings), y (yellow body), and v (vermillion eye color) are all X-linked. Females heterozygous for all three genes were mated with homozygous recessive males. The male progeny from the cross are given below. As is conventional with Drosophila, the wild-type allele of each gene is designated by a + sign.

ct         y          v                      4

ct         y          +                      93

ct         +          v                      54

ct         +          +                      349

+          y          v                      331

+          y          +                      66

+          +          v                      97

+          +          +                      6

Determine the allele arrangement in the heterozygous parents.

Determine the gene order of these three linked genes.

Construct a linkage map showing the map distances between the three genes.

Calculate interference.

a. Determine the allele arrangement in the heterozygous parents. b. Determine the gene order of these three linked genes. c. Construct a linkage map showing the map distances between the three genes. d. Calculate interference.

In: Biology