Write a C++ program that uses a structure to store the following data: Member Name Name...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a C++ program that uses a structure to store the following data: Member Name Name Idnum Tests Average Grade Description Student name Student ID number Pointer to an array of test scores Average rest score Course grade The program should keep a list of test scores for a group of students. It should ask the user how many test scores there are to be and how many students there are. It should then dynamically allocate an array of structures. Each structure s Tests member should point to a dynamically allocated array that will hold the test scores. After the arrays have been dynamically allocated, the program should ask for the ID number and all the test scores for each student. The average test score should be calculated and stored in the average member of each structure. The course grade should be computed on the basis of the following grading scale: Average Test Grade 91-100 Course Grade A 81-90 71-80 61-70 60 or below DUOF B C F The course grade should then be stored in the Grade member of each structure. Once all this data is calculated, a table should he displayed on the screen listing each student s name, ID number, average test score, and course grade. Input Validation: Be sure all the data (or each student is entered. Do not accept negative numbers (or any test score. Write a C++ program that uses a structure to store the following data: Member Name Name Idnum Tests Average Grade Description Student name Student ID number Pointer to an array of test scores Average rest score Course grade The program should keep a list of test scores for a group of students. It should ask the user how many test scores there are to be and how many students there are. It should then dynamically allocate an array of structures. Each structure s Tests member should point to a dynamically allocated array that will hold the test scores. After the arrays have been dynamically allocated, the program should ask for the ID number and all the test scores for each student. The average test score should be calculated and stored in the average member of each structure. The course grade should be computed on the basis of the following grading scale: Average Test Grade 91-100 Course Grade A 81-90 71-80 61-70 60 or below DUOF B C F The course grade should then be stored in the Grade member of each structure. Once all this data is calculated, a table should he displayed on the screen listing each student s name, ID number, average test score, and course grade. Input Validation: Be sure all the data (or each student is entered. Do not accept negative numbers (or any test score.
Expert Answer:
Answer rating: 100% (QA)
Read the code comments for more information C CODE include include using namespace std class student ... View the full answer
Related Book For
Discrete and Combinatorial Mathematics An Applied Introduction
ISBN: 978-0201726343
5th edition
Authors: Ralph P. Grimaldi
Posted Date:
Students also viewed these accounting questions
-
Do you know how many different ways there are to enjoy an almond? According to the agricultural cooperative Blue Diamond Growers, quite a few! After a price spike for almonds earlier in this decade,...
-
Determine how many integer solutions there are to x1 + x2 + x3 + x4 = 19, if (a) 0 x1 for all 1 i 4 (b) 0 x1 < 8 for all 1 i 4 (c) 0 x1 5, 0 x2 6, 3 x3 7, 3 x4 8
-
Look again at the histograms of test scores for the three Statistics classes in Exercise 57. a) Overall, which class do you think performed better on the test? Why? b) How would you describe the...
-
Compute the indicated quantities for the given homomorphism. Ker () for : S 3 Z 2 in Example 13.3 Data from Example 13.3 Let S n be the symmetric group on n letters, and let : S n Z 2 be defined by...
-
According to the Economist, It seems certain that the Federal Reserve will continue to accompany fiscal stimulus with the monetary equivalent, in the form of near-zero interest rates and further...
-
Vapor?liquid equilibrium calculations can sometimes be simplified through the use of a quantity called the relative volatility, which may be defined to terms of the following depiction of vapor and...
-
Fresh Food Direct, LLC, entered into a lease agreement with Jet Star Realty, LLC. Fresh Food terminated the lease before its terms end, and the parties disputed the amount of rent that Fresh Food...
-
The following information is available for Aikman Company. Instructions (a) Compute cost of goods manufactured. (b) Prepare an income statement through gross profit. (c) Show the presentation of the...
-
Find the value of an investment of $14,771 for 14 years at an annual interest rate of 5.27% compounded continuously.
-
8.1 Create a one-way data table for profit at different levels of supplier contact in range B22:C33. Ensure that the price in cell C3 is $290 and the advertising budget in cell C5 is $35,000,000 (you...
-
A. Watering-Hole Attacks, Malvertising, and Clickjacking are three types of dangerous attacks that need advanced techniques to prevent them, explain in detail the purpose of each of them. B....
-
a) In the U.S., there is a severe kidney shortage, where thousands of individuals die annually waiting for a kidney. On the graph , demonstrate what would happen if the U.S. allowed a market for...
-
Medfarm came up with a new treatment (Drug F) that costs 100,000 for life-threatening Lymphangitis that infects the fishermen. The market has the following treatments Drug Cost Life A |@|||m| B C D E...
-
Write a function blockcount for the Shell class int Shell::blockcount(string file) which accepts a file name "file" and returns the number of blocks used by that file. Note this function can be used...
-
Find a spokesperson or leader of an organization who recently did or said something which reflected poorly on the entity. It may be a current news story or conduct internet searches for an incident...
-
Suppose that you are a manager for Adobe Systems, the creator of Photoshop and other software products. Adobe rents most of its products to its customers. Suppose that it has two classes of customers...
-
Hello, I would like you to answer these questions with screen shots step by step please. Thank you DMIT1518 Assignment 7 - Linux Firewall and SSH [24 marks] Part 1- Install and connect through ssh...
-
Write a declaration for each of the following: a. A line that extends from point (60, 100) to point (30, 90) b. A rectangle that is 20 pixels wide, 100 pixels high, and has its upper-left corner at...
-
Let (Q, , ) denote the field where 0 and O are defined by A b = a + b - k, a b = a + b + (ab/m), for fixed elements k, m ( 0) of Q. Determine the value for k and the value for m in each of the...
-
(a) For n 3, how many different Hamilton cycles are there in the complete graph Kn ? (b) How many edge-disjoint Hamilton cycles are there in K21? (c) Nineteen students in a nursery school play a...
-
In part (b) of Fig. 2.4 we have an 8 Ã 8 chessboard where two squares (one blue and one white) have been removed from each of two opposite comers. Can the remaining 60 squares be covered by 15...
-
Many companies today are looking to do more than just good deeds. More and more, companies are making environmental sustainability a part of their core missions. Research companies that make...
-
Describe the challenges marketers face with changing economic conditions. What factors should marketers consider in offer value to todays customers?
-
Define marketing environment, and discuss the two parts that make up a companys marketing environment.
Study smarter with the SolutionInn App