Design a program which uses two two-dimensional arrays as follows: an array which can store up...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Design a program which uses two two-dimensional arrays as follows: an array which can store up to 50 student names where a name is up to 25 characters long - an array which can store marks for 5 courses for up to 50 students The program should first obtain student names and their corresponding marks for a requested number of students from the user. Please note that the program should reject any number of students that is requested by the user which is greater than 50. The program will compute the average mark for each course and then display all students and their marks, as well as the average mark for each course. A sample output produced by the program is shown below, if assumed that the user entered marks for 4 students. Please note that the computation of the average mark for each course should use type casting. Student PRG DGS MTH ECR GED Ann Smart 93 85 87 83 90 Mike Lazy Yo Yo 65 78 57 65 61 69 58 72 68 75 Mа Ма 84 79 83 81 83 AVERAGE 80.0 71.5 75.0 73.5 79.0 Design a program which uses two two-dimensional arrays as follows: an array which can store up to 50 student names where a name is up to 25 characters long - an array which can store marks for 5 courses for up to 50 students The program should first obtain student names and their corresponding marks for a requested number of students from the user. Please note that the program should reject any number of students that is requested by the user which is greater than 50. The program will compute the average mark for each course and then display all students and their marks, as well as the average mark for each course. A sample output produced by the program is shown below, if assumed that the user entered marks for 4 students. Please note that the computation of the average mark for each course should use type casting. Student PRG DGS MTH ECR GED Ann Smart 93 85 87 83 90 Mike Lazy Yo Yo 65 78 57 65 61 69 58 72 68 75 Mа Ма 84 79 83 81 83 AVERAGE 80.0 71.5 75.0 73.5 79.0
Expert Answer:
Answer rating: 100% (QA)
studentcpp include include include using namespace std int main int max50 char studentNames25ma... View the full answer
Related Book For
Practical Management Science
ISBN: 978-1305250901
5th edition
Authors: Wayne L. Winston, Christian Albright
Posted Date:
Students also viewed these programming questions
-
As an imaginative experiment, design a program which you feel would effectively address a social problem. Even though this would be a visionary program, consider realistic constraints of time,...
-
A companys warehouse can store up to four units of a good. Each month, an average of 10 orders for the good are received. The times between the receipts of successive orders are exponentially...
-
Write a program which uses a structure having the indicated member names to store the following data: Name (student name) IDnum (student ID number) Tests (an array of three test scores) Average...
-
Jobs A, B, and C are waiting to be started on Machine Center X. When they are finished at this center, they must be moved to Machine Center Y for final processing. Machine capacity for both centers...
-
Let P and Q be polynomials. Find if the degree of P is (a) less than the degree of Q and (b) greater than the degree of . lim
-
Dell is considering replacing one of its material handling systems. It has an annual O&M cost of \($48,000,\) a remaining operational life of 8 years, and an estimated salvage value of \($6,000\) at...
-
Determine the resultant internal loading on the cross section through point C of the pliers. There is a pin at A, and the jaws at B are smooth. 20 N -120 mm- 40 mm 15 mm- 80 mm 30 20 N B
-
The items that follow are from the Income Statement columns of the work sheet for Ben's Repair Shop for the year ended December 31, 2011. Prepare entries in journal form to close the revenue,...
-
The following information is relevant for the year ended 31 December, 2022 Cash Account receivables Prepaid expenses Inventories Land Buildings 2022 2021 '000 54,000 '000 37,000 68,000 26,000 4,000...
-
Determine the moment of each force about the bolt located at A. Given: FB = 40 lb a = 2.5 ft α = 20 deg γ = 30 deg FC = 50 lb b = 0.75 ft β = 25 deg Fc FB
-
An action analysis report reconciles activity-based costing product costs with traditional product costs based on direct labor. a. TRUE b. FALSE
-
Turn to the Handbook of Grammar, Mechanics, and Usage at the end of this book and review all of Section 1.4 (Adjectives). Then look at the following 10 items and identify the preferred choice within...
-
Write four tweets to persuade other college students to take the business communication course. Think of the first message as the headline of an advertisement that makes a bold promise regarding the...
-
Communication Ethics: Distinguishing Ethical Dilemmas and Ethical Lapses [LO-5] Briefly explain why you think each of the following is or is not ethical. a. Keeping quiet about a possible...
-
Which sentence is in the active voice? a. The report will be written by Leslie Cartwright. b. Leslie Cartwright will write the report. 4. Which sentence is in the passive voice? a. The failure to...
-
The following paragraphs contains a variety of errors, potentially involving spelling, grammar, capitalization, punctuation, abbreviation, number style, word division, or vocabulary. Identify them...
-
Consider the following information: Rate of Return If State Occurs State of Probability of State of Economy Economy Stock A Stock B Stock C 20 Boom .367 .467 .347 Good .40 .137 .117 187 Poor .30 .027...
-
On April 29, 2015, Auk Corporation acquires 100% of the outstanding stock of Amazon Corporation (E & P of $750,000) for $1.2 million. Amazon has assets with a fair market value of $1.4 million (basis...
-
The HiTech company produces Blu-Ray disc players. Estimated demands for the next four quarters are 5000, 10,000, 8000, and 2000. At the beginning of quarter 1, HiTech has 60 workers. It costs $2000...
-
For the distribution data shown in Table 5.10, what is the least-cost assignment of truckloads to carriers that meets the necessary requirements? What is the cost of this distribution plan?epilogue...
-
The Ventron Engineering Company has just been awarded a $2 million development contract by the U.S. Army Aviation Systems Command to develop a blade spar for its Heavy Lift Helicopter program. The...
-
Standard air flows past a flat surface, and velocity measurements near the surface indicate the following distribution: The coordinate \(y\) is measured normal to the surface and \(u\) is the...
-
A new computer drive is proposed to have a disc, as shown in Fig. P1.84. The disc is to rotate at \(10,000 \mathrm{rpm}\), and the reader head is to be positioned 0.0005 in. above the surface of the...
-
The space between two 6-in.-long concentric cylinders is filled with glycerin (viscosity \(=8.5 \times 10^{-3} \mathrm{lb} \cdot \mathrm{s} / \mathrm{ft}^{2}\) ). The inner cylinder has a radius of 3...
Study smarter with the SolutionInn App