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 =...
-
The Allegheny School of Music has hired you as a consultant to help in analyzing the behavior of the school's costs. Use the account-classification method of cost estimation to classify each of the...
-
The margin of error is also called the maximum error of the estimate. Explain why.
-
Zappos.com is a popular website known mainly for its discounted shoe sales. In 2012, a hacker hacked into the Zappos website in an effort to obtain the personal account information of Zappos...
-
The intangible assets section of Sappelt Company at December 31, 2015, is presented below. Patents ($70,000 cost less $7,000 amortization) ......... $63,000 Franchises ($48,000 cost less $19,200...
-
State suitable case for each model Hierarchical Model Network data model Relational model Object-oriented data model
-
The G. Saussy Manufacturing company is putting out four new electronic components. Each of Saussy's four plants has the capacity to add one more product to its current line of electronic parts. The...
-
The function graphed Increasing on the interval(s) Decreasing on the interval(s) is:
-
create 3 possible test questions for each math equation listed with an explanation on how to solve them. Some or all of the following formulae may be required to complete certain quantitative...
-
Department of Energy's "Guide to Renewable Energy." How does the word incentives affect the meaning of this sentence? Installing renewable energy systems can be costly, but federal and state...
-
The J=0 to J=1 rotational transition of Carbon monoxide (CO) occurs when it absorbs energy in the microwave region at a frequency (f) 1.153 x 1011 Hz. We ignore any changes in the vibrational energy...
-
Explore the issue 1. Should marijuana be legalized? 2. Should we increase taxes on the richest 1 percent of Americans to fund government programs to help middle-class households? 3. Should developers...
-
Share a story or a link to an interesting news article that addresses how a particular company or industry is using data to improve its business. Explain why you think this use of data is...
-
Steam enters a turbine operating at steady state at 2 MPa, 336 C with a velocity of 95 m/s. Saturated vapor exits at 0.1 MPa and a velocity of 41 m/s. The elevation of the inlet is 2 m higher than at...
-
Imagine that your best friend knows you are taking a psychology course and wonders what psychology is all about. How would you define psychology for your friend? Write an essay on the discipline of...
-
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 ...
-
You may have management colleagues who think that social responsibility isnt an important issue for organizations and, therefore, it shouldnt play a role in employee recruitment and selection. The...
-
In the roles of an employer, how would you handle a situation where employees have taken on a greater sense of social responsibility than that is immediately apparent in your organization? How would...
-
Companies have recently been created, such as Social Intelligence, that offer pre-employment social media screening. Using an Internet search, identify some of the companies offering this service....
Study smarter with the SolutionInn App