Q#2 Write a C++ program to read and store the data of 15 students. The input...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Q#2 Write a C++ program to read and store the data of 15 students. The input data of each of the 15 students consists of: Id Grade (integer), input grade should be valid in the range 0.. 20 ● ● The program should do the following: • Declare three 1D arrays each of size 15 representing Id, Grade and Percentage arrays (Do not use 2D Arrays) ID ● ● Example of a sample output of a table with heading: Percentage Grade Read from the user Id and a valid grade (use validation loop) for each student and store the data into arrays, (the Id array and the Grade array) both are 1D arrays. Find the percentage grade of each student and store it in the Percentage array. Display all the data (Id, Grade and Percentage of all the 15 students) in a table (use setw) (DO NOT use \t'). Display a heading for the table as shown below in the sample: 900123 900234 900345 900133 900145 Grade 20 10 15 18 5 ============ 100 50 75 90 25 Q#2 Write a C++ program to read and store the data of 15 students. The input data of each of the 15 students consists of: Id Grade (integer), input grade should be valid in the range 0.. 20 ● ● The program should do the following: • Declare three 1D arrays each of size 15 representing Id, Grade and Percentage arrays (Do not use 2D Arrays) ID ● ● Example of a sample output of a table with heading: Percentage Grade Read from the user Id and a valid grade (use validation loop) for each student and store the data into arrays, (the Id array and the Grade array) both are 1D arrays. Find the percentage grade of each student and store it in the Percentage array. Display all the data (Id, Grade and Percentage of all the 15 students) in a table (use setw) (DO NOT use \t'). Display a heading for the table as shown below in the sample: 900123 900234 900345 900133 900145 Grade 20 10 15 18 5 ============ 100 50 75 90 25
Expert Answer:
Answer rating: 100% (QA)
include include const int SIZE 15 int main int idSIZE int gradeSIZE double percentageSIZE Read data ... View the full answer
Related Book For
Introduction to Real Analysis
ISBN: 978-0471433316
4th edition
Authors: Robert G. Bartle, Donald R. Sherbert
Posted Date:
Students also viewed these algorithms questions
-
Use the definition of the vector product and the definitions of the unit vectors i, j, and k to prove Equations 11.7. You may assume that the x axis points to the right, the y axis up, and the z axis...
-
Use the definition of a derivative to show that if f(x) = 1/x, then f'(x) = -1/x2. (This proves the Power Rule for the case n = - 1.)
-
Use the definition of limit to show that (a) (b) lim (* +4x) 12, x+ 5 im --| 2x + 3 4.
-
The future value S of principal P invested for n years with an interest rate r% compounded annually may be calculated using the formula Rearrange this formula to express P in terms of S, r and n. S =...
-
A discrete random variable x can assume five possible values: 20, 21, 22, 23, and 24. The following Minitab histogram shows the likelihood of each value. a. What is p(22)? b. What is the probability...
-
How data science/ data analytics can applied in engineering course
-
Transformational leadership theory: A. Was developed in the mid-1970s by Warren Bennis. B. Is the ability to transform followers to become more self-directed in all they do. C. Involves leaders who...
-
The following selected data were taken from the financial statements of The OMalley Group Inc. for December 31, 20Y5, 20Y4, and 20Y3: No dividends on common stock were declared between 20Y3 and 20Y5....
-
A bag contains 7 red marbles, 9 white marbles and 5 blue marbles. You draw 4 marbles randomly, without replacement. What is the probability exactly two of the marbles are red?
-
On October 1, 2019, Santana Rey launched a computer services company, Business Solutions, that is organized as a proprietorship and provides consulting services, computer system installations, and...
-
Organizations can be structured in various ways, with each structure determining the manner in which the organization operates and performs. Critically discuss the various organisational structures...
-
Because existing staff are fully scheduled, if the firm is awarded the contract, it must hire one new staff member at a salary of $52,000 to handle the additional workload. The managing partner is...
-
During March, Hart Company incurred the following costs on Job 109 for the manufacture of 200 motors: Original cost accumulation: Direct materials Direct labor Factory overhead (150% of DL) Direct...
-
An asset originally purchased for $12,122,100 has an estimated salvage value of $7.622.100 after five years of use Using the Sum-of- Year's-Digits (SOYD) method of book depreciation (a) The Book...
-
In this article, answer the question. Why are great networking opportunities most important? Explain why you feel this way....
-
Brighton Services repairs locomotive engines. It employs 100 full-time workers at $16 per hour. Despite operating at capacity, last year's performance was a great disappointment to the managers. In...
-
Line Item Description North South Sales volume (units): Blouses 5,243 4,658 Skirts 3,075 7,649 Sales price per unit: Blouses $21 $15 Skirts $19 $17 Variable cost per unit Blouses $7 $7 Skirts $12 $12...
-
How does health insurance risk differ from other types of insurance risk (e.g., automobile or homeowners insurance)? What is the difference between cost sharing and cost shifting? Is retiree health...
-
Let I R be an interval and let f : I R be increasing on I. Suppose that c I is not an endpoint of I. Show that f is continuous at c if and only if there exists a sequence (xn) in I such that xn <...
-
Show that the following functions (properly defined when necessary) are in L[0, 1]. (a) x ln x/1 + x2, (b) sin x/ln x, (c) (ln x)(ln(1 - x)), (d) In x/1 - x2.
-
Let X be a nonempty set, and let f and g be defined on X and have bounded ranges in R. Show that Sup{f(x) + g(x) : x X} < supf{x) : x X} + sup{g(x) : x X} and that inf{f(x) : x X} + inf{g(x) : x ...
-
If demand is relatively _________ elastic than supply in the relevant region, the largest portion of a tax is paid by the producer.
-
Imagine driving a car with daggers sticking out of the steering wheelpointing directly at your chest. Would you drive more safely? Why?
-
Describe and explain the circular flow model. Scarcity, Trade-Offs, and Production Possibilities CHAPTER 3
Study smarter with the SolutionInn App