2. (a) Write down a structure capable of storing the following information about a student registered...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2. (a) Write down a structure capable of storing the following information about a student registered in CSE 103 course: (5) ID Gender Class test score Mid-term score Final Exam score Total score (b) Use the above structure to take input of N students' information as input in an array of structure. N will also be input to your program. (5) (c) In the same program, write down a function that will take students' information (within an array of structure) and the number of the students as parameters and returns how many of them failed. Assume that a student needs to obtain total 60 in order to pass in the exam. (5) (d) In the same program, write down another function that will take students' information (within an array of structure) and the number of students as parameters and returns the ID of the student obtaining the highest marks. (5) 2. (a) Write down a structure capable of storing the following information about a student registered in CSE 103 course: (5) ID Gender Class test score Mid-term score Final Exam score Total score (b) Use the above structure to take input of N students' information as input in an array of structure. N will also be input to your program. (5) (c) In the same program, write down a function that will take students' information (within an array of structure) and the number of the students as parameters and returns how many of them failed. Assume that a student needs to obtain total 60 in order to pass in the exam. (5) (d) In the same program, write down another function that will take students' information (within an array of structure) and the number of students as parameters and returns the ID of the student obtaining the highest marks. (5)
Expert Answer:
Answer rating: 100% (QA)
include Structure to store student information struct Student int ID char Gender float ClassTestScor... View the full answer
Related Book For
Understanding Basic Statistics
ISBN: 9781111827021
6th Edition
Authors: Charles Henry Brase, Corrinne Pellillo Brase
Posted Date:
Students also viewed these programming questions
-
HOW DO SOFTWARE 1 Data Structures and Algorithms A certain program has to maintain an array, count, of N counters which are all initialised to zero. The value of counter i can be incremented by one...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
Use Eq. (6) to estimate Af = f(3.53, 8.98) - f(3.5,9)
-
What is the total charge of all the electrons in a 25-kg bar of aluminum? (Aluminum has 13 electrons per atom and an atomic mass of 27 u.)
-
Suppose that X1, . . . , Xn form a random sample from the normal distribution with known mean and unknown variance 2, and the following simple hypotheses are to be tested: H0: 2 = 2, H1: 2 = 3. a....
-
As sales manager for a nationwide electrical products distributor, you are about to roll out a new line of electrical products. What method would you use to train the 500 salespeople in your national...
-
MULTIPLE-CHOICE QUESTIONS 1. Which of the following is not a reason that audit firms continue to experience high levels of litigation? a. Joint and several liability statutes. b. Class action...
-
After taking a look at Fisher-Price's website, choose two effective and two ineffective KPIs for this company that would be aligned with the sales and marketing goals. For all the KPIs, you are to...
-
Dwight Donovan, the president of Donovan Enterprises, is considering two investment opportunities. Because of limited resources, he will be able to invest in only one of them. Project A is to...
-
The tangent plane equation of the level surface z = -x? - 3y? at point (2,2,-16) is. O a. -4x+12y+2z-16 O b. 8x+6y+z=16 O c. Ax-12y z=16 O d. 4x1 12y1z=8 e. 4x1 12yz=16
-
Haiti was hit by a devastating earthquake on January 12, 2010. A quarter of a million lives were lost and millions more were left injured and homeless. Many countries sent medical teams and medical...
-
A lump-sum tax is a fixed amount of tax per person. If a lump-sum tax, \(T\), raises the same amount of revenue for the government as a tax on earnings at the rate, \(t\), then \(t w H=T\), where...
-
Parents with a child in subsidized childcare in the province of Qubec, Canada, pay a basic amount and, depending on family income, may pay an additional amount. As of January 1, 2017, families with a...
-
A firm in the state of Karnataka in India can source one of its factors of production either within the state, \(F_{K}\), or from the neighboring state of Maharashtra, \(F_{M}\). Assume the quality...
-
Select a sustainable product and describe its packaging. What positive inferences have you made about the product from the packaging? Are these inferences justified or is this an example of the halo...
-
For the Cobb-Douglas utility function, find the Marshallian demand function, Find the total Price Effect, Substitution Effect and Income effect, if price of commodity X increases from Rs. 1 to Rs. 2,...
-
In muscle tissue, the ratio of phosphorylase a to phosphorylase b determines the rate of conversion of glycogen to glucose 1phosphate. Classify how each event affects the rate of glycogen breakdown...
-
Accrotime is a manufacturer of quartz crystal watches. Accrotime researchers have shown that the watches have an average life of 28 months before certain electronic components deteriorate, causing...
-
Two random samples were drawn from members of the U.S. Congress. One sample was taken from members who are Democrats and the other from members who are Republicans. For each sample, the number of...
-
What is a sample statistic? Give three examples.
-
If youd like to have $5,000,000 at retirement in 45 years and you expect to earn 10 percent annually, which is around the average return over the past 50 years, what lump sum would you have to invest...
-
Obaidullah Hamzah, who recently sold his Ford Mustang, placed $15,000 in a savings account paying annual compound interest of 7 percent. a. Calculate the amount of money that will be accrued if he...
-
How many years will the following take? a. \($550\) to grow to \($1,049.50\) if invested at 6 percent compounded annually b. \($37\) to grow to \($63.87\) if invested at 9 percent compounded annually...
Study smarter with the SolutionInn App