For the following questions, develop the C++ program of each application. The program will not require...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
For the following questions, develop the C++ program of each application. The program will not require an object-oriented programming style. 1. Develop a program with a function qualityPoints that inputs a student's average in range 0 to 100, and returns corresponding quality points on 0 to 4 scale. Return 4 if a student's average is 90-100, 3 if the average is 80 - 89, 2 if the average is 70 - 79, 1 if the average is 60-69, and 0 if the average is lower than 60. Your program should use a for statement to receive 5 student's average scores. The output example is Enter the student's average: 90 90 on a 4 point scale is 4 Enter the student's average: 83 83 on a 4 point scale is 3 Enter the student's average: 77 77 on a 4 point scale is 2 Enter the student's average: 50 50 on a 4 point scale is 0 Enter the student's average: 64 64 on a 4 point scale is 1 For the following questions, develop the C++ program of each application. The program will not require an object-oriented programming style. 1. Develop a program with a function qualityPoints that inputs a student's average in range 0 to 100, and returns corresponding quality points on 0 to 4 scale. Return 4 if a student's average is 90-100, 3 if the average is 80 - 89, 2 if the average is 70 - 79, 1 if the average is 60-69, and 0 if the average is lower than 60. Your program should use a for statement to receive 5 student's average scores. The output example is Enter the student's average: 90 90 on a 4 point scale is 4 Enter the student's average: 83 83 on a 4 point scale is 3 Enter the student's average: 77 77 on a 4 point scale is 2 Enter the student's average: 50 50 on a 4 point scale is 0 Enter the student's average: 64 64 on a 4 point scale is 1
Expert Answer:
Related Book For
Accounting Information Systems
ISBN: 9780132871938
11th Edition
Authors: George H. Bodnar, William S. Hopwood
Posted Date:
Students also viewed these programming questions
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Discuss the role of cultural values and attitudes when determining how to deal with employees from different cultures or ethnic backgrounds. Be sure to include information on populations who find...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Describe what this statement does: print user name = + userName
-
If two point objects close together are to be seen as two distinct objects, the images must fall on the retina on two different cones that are not adjacent. That is, there must be an unactivated cone...
-
The Fed has conducted expansionary monetary policy to combat a recession but is running up against the zero lower bound, and the economy is still not recovering. What other steps could the government...
-
On June 14, 1988, Thomas John Heck Jr. executed a note promising to pay Paul D. Heck \($51,000\) at 7 percent interest compounded annually. The note contains the following payment terms: Perpetual 90...
-
Sutton Industrial Products Inc. (SIPI) is a diversified industrial-cleaner processing company. The companys Verde plant produces two products: a table cleaner and a floor cleaner from a common set of...
-
The 2020 season was expected to be a year of partying at Cedar Fair. Its namesake theme parkCedar Pointreached its 150 th year, and its Knotts Berry Farm was prepared to celebrate its 100 th...
-
Trickle bed reactors is widely used in the oil industry because of the advantages offered. In a trickle bed reactor, the oxidation of ethanol is to be carried out. The reaction is first order with...
-
The number of squares preceding each problem indicates its approximate level of difficulty. Calculate the difference between the acceleration due to Jupiter's gravity at lo's center and the...
-
Consider the following equation. y+1=1x Complete the table. X y -2 54 2 Exactly! (x, y) Use the resulting solution points to sketch the graph of the equation.
-
Investment A has a beta of 1 . 4 and an expected rate of return of 1 5 . 1 % . Investment B has a beta of 0 . 7 and an expected rate of return of 1 0 . 7 % . What is the equity premium ( market risk...
-
Given an ArrayList of Integer objects, return its size. apcsaListSize([]) 0 apcsaListSize([0, 2]) 2 apcsaListSize([1]) 1 Given an ArrayList of Integers called lst, add a new element num at the end of...
-
Article Analysis on Human Resources and Organizational Structure. please include the following sections: Introduction Procedures of the Study Variables or Research Questions Discussion of Results...
-
I am due to receive $10,000 at the end of each of the next five years. That is, I will receive $10,000 one year from now, then another $10,000 two years from now, etc. What is the duration of this...
-
For the equation 5x-3y=15, (a) write it in slope -intercept form, (b) give the slope of the line, (c) give the y-intercept, and (d) graph the line. Find the equation of the line that passes through...
-
Write a function that reads a Float24_t value: Float24_t float24_read(void) A legitimate float24 value string is of the form: "mantissabexponent" where the mantissa (m) and the exponent (e) may have...
-
How does project organization differ from functional organization in an information system department?
-
The AIS of an organization may be simple or it may be massive and complex. AISs are designed and implemented not only to maintain the ledger balances from which financial statements and reports are...
-
The Squeaky Electrical Company store serves building con-tractors in all parts of Central Illinois. The company has one bookkeeper, Ester Ladrona, who is in charge of general bookkeeping, incoming...
-
Water is to be cooled at the rate of \(10 \mathrm{~kg} / \mathrm{s}\) from \(317 \mathrm{~K}\) to \(300 \mathrm{~K}\) in a countercurrent cooling tower under conditions such that \(H_{t O G}=2.5...
-
In a plant for the recovery of acetone which has been used as a solvent, the acetone is evaporated into a stream of nitrogen gas. A mixture of acetone vapor and nitrogen flows through a duct, 0.3 by...
-
In the cooling tower of Example 8.7, to what temperature would the water be cooled if, after the tower was built and operated at the design water and air rates, the air entered at a dry-bulb...
Study smarter with the SolutionInn App