1. Write an interactive program to process the exam scores for a group of students in...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Write an interactive program to process the exam scores for a group of students in a C++ programming course. Begin by specifying the number of exam scores for each student. Then enter each student's name and exam scores. Calculate an average score for each student, and on overall class average. Write out the overall class average, followed by the name, the individual exam scores and the average score for each student. Store the student names in a two-dimensional character array, and store the exam scores in a two dimensional floating-point array. Test the program using the following set of student exam grades. Name п II midterm midter midterm Grade 100 - 90 A+ 89 - 85 A 84 - 80 B+ 79 - 75 B 74 - 70 B- 69 - 65 C+ 64 - 60 C 59 - 55 C- 54 - 52 D+ 51 - 50 D Ali 65 80 84 B+ Brown 54 76 84 B+ Davis 48 89 94 A+ C+ Smith 78 66 65 Mehmet 77 78 98 A+ Kaya Jones 55 79 78 50 70 80 B+ A+ Prince 65 100 95 49 -0 F 2. Write a C++ programming using struct in C++ according to the table. 3. Implement the following functions. a) Function Celsius returns the Celsius equivalent of a Fahrenheit temperature. b) Function Fahrenheit retuns the Fahrenheit equivalent of a Celsius temperature. c) Use these functions to write a program that prints charts showing the Fahrenheit equivalents of all Celsius temperatures from 0 to 100 degrees, and the Celsius equivalents of all Fahrenheit temperatures from 32 to 212 degrees. A. 1. Write an interactive program to process the exam scores for a group of students in a C++ programming course. Begin by specifying the number of exam scores for each student. Then enter each student's name and exam scores. Calculate an average score for each student, and on overall class average. Write out the overall class average, followed by the name, the individual exam scores and the average score for each student. Store the student names in a two-dimensional character array, and store the exam scores in a two dimensional floating-point array. Test the program using the following set of student exam grades. Name п II midterm midter midterm Grade 100 - 90 A+ 89 - 85 A 84 - 80 B+ 79 - 75 B 74 - 70 B- 69 - 65 C+ 64 - 60 C 59 - 55 C- 54 - 52 D+ 51 - 50 D Ali 65 80 84 B+ Brown 54 76 84 B+ Davis 48 89 94 A+ C+ Smith 78 66 65 Mehmet 77 78 98 A+ Kaya Jones 55 79 78 50 70 80 B+ A+ Prince 65 100 95 49 -0 F 2. Write a C++ programming using struct in C++ according to the table. 3. Implement the following functions. a) Function Celsius returns the Celsius equivalent of a Fahrenheit temperature. b) Function Fahrenheit retuns the Fahrenheit equivalent of a Celsius temperature. c) Use these functions to write a program that prints charts showing the Fahrenheit equivalents of all Celsius temperatures from 0 to 100 degrees, and the Celsius equivalents of all Fahrenheit temperatures from 32 to 212 degrees. A.
Expert Answer:
Answer rating: 100% (QA)
1 Using arrays include using namespace std float studentAvgfloat afloat b float c float sumavg sumabc avgsum3 return avg string calculateGradefloat avgScore string g ifavgScore90 gA else ifavgScore85 ... View the full answer
Related Book For
Basic Statistics for the Behavioral Sciences
ISBN: 978-0840031433
6th edition
Authors: Gary W. Heiman
Posted Date:
Students also viewed these programming questions
-
A researcher measures the following scores for a group of people. The X variable is the number of errors on a math test, and the Y variable is the persons level of satisfaction with his/her...
-
A group of students held their breath as long as possible and recorded the times in seconds. The times went from a low of 25 seconds to a high of 90 seconds, as you can see in the stemplot. Suggest...
-
An athletic director is recording long-jump scores for a group of students. The expected value of each of their long jumps is 7 meters, and the standard deviation is 0.2 meters. If 20 such jumps are...
-
Ellie, a CPA, incurred the following deductible education expenses to maintain or improve her skills: travel and transportation 1700.00 Tuition 6000.00 Books 800.00 Elli's AGI FOR THE YEAR IS 60,000...
-
Consider the following LP: Maximize z = 2x1 + 3x2 subject to X1 + 3x2 6 3x1 + 2x2 6 X1, x2 0 (a) Express the problem in equation form. (b) Determine all the basic solutions of the problem, and...
-
What are the ways to estimate the cost of common stock (i.e. or the required return on common stock)? We can use the dividend growth model formula P=D/(r-g) to estimate the cost of common stock (r)....
-
You have recently been employed as the manager of internal audit for a large multinational financial services company. It is clear to you that you have been given the job because of your reputation...
-
Championship Sporting Goods started March with an inventory of 9 sets of golf clubs that cost a total of $1,350. During March, Championship purchased 27 sets of clubs for $4,320. At the end of the...
-
The following data relate to Santa Mia, Incorporated, a new company: Planned and actual production 200,000 units Sales at $48 per unit 170,000 units Manufacturing costs: Variable $18 per units Fixed...
-
Kalogridis Corp. manufactures industrial dye. The company is preparing its 2011 master budget and has presented you with the following information: a. The projected December 31, 2010, balance sheet...
-
Which costs are important to consider in balancing economic order quantities?
-
Creating a 30-second Radio Advertisement Script Direction: Develop a 30-second radio advertisement script about the Louis Vuitton Brand. Then, provide a brief paragraph description of what will take...
-
Run Company produces a variety of products in its large production facility. The company uses a just-in-time approach and only keeps about four hours' worth of inventory of all input materials. The...
-
Given the fixed beam shown in the figure below (Fig Q10) solve the following problem. Using three (3) elements of equal length calculate the displacement w, given the following parameters. 3 1. The...
-
Suppose that the zero-coupon yield curve is as follows: Maturity Yield to maturity 1 4% 2 5% 3 6% 4 7% Calculate the price of a 3-year 5% annual coupon bond with a par value of $1,000 ?
-
Unit sales of Product 1 are currently 20,000, while unit sales of Product 2 are currently double those of Product 1. What will the company's sales forecast be assuming sales of Product 1 increase by...
-
Suppose Diva hedges with a six-month forward contract. How many USD would they receive if the spot price is 92 YEN/USD on September 28? 0 0/10 pts
-
A non-charmed baryon has strangeness S = 2 and electric charge Q = 0. What are the possible values of its isospin I and of its third component I z ? What is it usually called if I = 1/2?
-
What does each of the following terms mean? (a) ANOVA (b) One-way design (c) Factor (d) Level (e) Treatment (f) Between subjects (g) Within subjects
-
We find that the correlation between math ability (X ) and musical aptitude scores (Y) is r = +.44. The standard error of the estimate is SY, = 3.90. Bubbles has a math score of 60 and Foofy a score...
-
In question 23, (a) How would you determine which variable to call X? (b) In a different study, my title is Creativity as a function of Intelligence. Which variable is my X variable? Why?
-
Prove that if \(x, y>0\) then \(\frac{1}{2}(x+y) \geq \sqrt{x y}\). For which \(x, y\) does equality hold?
-
After a delicious meal at the well-known French restaurant La Racine et Puissance Rationelle, critic Ivor Smallbrain notices that the bill comes to \(x\) pounds, \(y\) pence, where \(x\) and \(y\)...
-
Show that the decimal expression for \(\sqrt{2}\) is not periodic.
Study smarter with the SolutionInn App