1) Write a C++ program to allow the user to enter the score of 8 courses...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1) Write a C++ program to allow the user to enter the score of 8 courses and store them in an array. Then display the scores. Count how many students their scores are greater than 60, then print Pass. Count how many students their scores less than 60 then print Fail (using a loop over the array elements) based on the following output sample. Output: Enter 8 values of scores: 90 65 49 70 55 88 73 50 The scores are: 90 65 49 70 55 88 73 50 The total number of students whose scores greater than 60: 5 Pass The total number of students whose scores less than 60: 3 Fail 1) Write a C++ program to allow the user to enter the score of 8 courses and store them in an array. Then display the scores. Count how many students their scores are greater than 60, then print Pass. Count how many students their scores less than 60 then print Fail (using a loop over the array elements) based on the following output sample. Output: Enter 8 values of scores: 90 65 49 70 55 88 73 50 The scores are: 90 65 49 70 55 88 73 50 The total number of students whose scores greater than 60: 5 Pass The total number of students whose scores less than 60: 3 Fail
Expert Answer:
Answer rating: 100% (QA)
Heres a simple C program that fulfills the requirements include int main const int numCourse... View the full answer
Related Book For
Java How To Program Late Objects Version
ISBN: 9780136123712
8th Edition
Authors: Paul Deitel, Deitel & Associates
Posted Date:
Students also viewed these programming questions
-
Briefly describe ASCII and Unicode and draw attention to any relationship between them. [3 marks] (b) Briefly explain what a Reader is in the context of reading characters from data. [3 marks] A...
-
The strike price of a compensation option is generally set on the day the option is issued. On November 10, 2000, the CEO of Analog Devices, Jerald Fishman, received 600,000 options. The stock price...
-
Compare and contrast the premises and assumptions of the industrial organization (I / O) and resource-based (RBV) models of strategic planning. What benefits does each model offer that aids in...
-
Draw Project Ps NPV profile. Does Project P have normal or nonnormal cash flows? Should this project be accepted?
-
(a) Draw an energy diagram for the situation shown in Figure 9.11 for the system that comprises Earth and the box. Assume the box keeps moving at constant velocity, and consider the rope to be part...
-
The names of the employees of Matson Office Systems and their regular salaries are shown in the following payroll register. Note that Wayne and Young are paid monthly on the last payday, while all...
-
1. Define ADT (Abstract Data Type)? 2. Mention the features of ADT.? 3. Define List ADT? 4. What are the ways of implementing linked list? 5. What are the types of linked lists?
-
You are the executive assistant to the director of sales at B-Trendz, Inc., a trendy retail store that has locations in only ten states. The company is considering branching into the online retail...
-
Consider a random sample from N(H, 0.1082), and the null hypothesis Ho : = 4.55. Suppose we observed a set of data withn= 9, = 4.484. 1. Let H1 : u # 4.55, the p-value of the observed = 4.484 is ....
-
Please answer all correctly. I will leave an upvote. Thank you for the help. 1 . The solubility of caffeine in water is 1 g / 4 6 ml . In dichloromethane, on the other hand, 1 g can be dissolved...
-
Electrochemical processes are oxidation-reduction reactions in which: A. the energy released by a spontaneous reaction is converted to electricity B. electrical energy is used to cause a...
-
(4) A typical long-chain fatty acid has the following chemical formula (CH3(CH2) COOH). (a) (2 pts) Identify and underline the dissociable H+. (b) (2 pts) Write the chemical formula again but in its...
-
Classify the conditions given as indicating that a reaction is at equilibrium, is not at equilibrium, or that the conditions may occur in either state. At equilibrium Not at equilibrium May or may...
-
the laboratory you are asked to make a 0 . 2 9 0 m iron ( III ) bromide solution using 3 1 5 grams of water. How many grams of iron ( III ) bromide should you add?ii
-
Consider an economy with two people, Donald and Melania, with two goods: yachts(denoted y) and condos (denoted c). There are 10 yachts and 20 condos in the economy. Both people have the same utility...
-
You purchase a bond with a coupon rate of 6.7 percent, a par value $1,000, and a clean price of $905. Assume a par value of $1,000. If the next semiannual coupon payment is due in two months, what is...
-
Modify Figs. 21.15 and 21.16 to allow the binary tree to contain duplicates. Fig. 21.15 Fig. 21.16 I // Fig. 21.15: Tree.java 2 // TreeNode and Tree class declarations for a binary search tree. 3...
-
In Figs. 9.109.11 methods earnings and to- String each call various get methods within the same class. Explain the benefits of calling these get methods within the classes.
-
Write an application that displays a checkerboard pattern, as follows: A A AAA AAAAA AAAA
-
You are calculating the estimated time to completion for a project of 12 months duration and a budgeted cost of $500,000. Assuming the following information, calculate the Schedule Performance Index...
-
Suppose, for Problem 13.20, that your PV was 70 and your EV was 95. Recalculate the SPI and estimated time to completion for the project with this new data. Problem 13.20 You are calculating the...
-
Go to www.brighthubpm.com/monitoring-projects/51982-understanding-the-s-curve-theory-for-project-management-monitoring/ and read the article on the multiple uses of project S-curves. What does the...
Study smarter with the SolutionInn App