Write a program that asks a student for his/her grades assessing his/her C++ programming skills. The...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that asks a student for his/her grades assessing his/her C++ programming skills. The student gets a separate grade for each homework assignment and the lab exam associated with it. In order for the student to pass the class, he/she needs to achieve 50% or better in all possible "dimensions", i.e., >= 50% average in homework assignments • >= 50% average in lab exams Assume that the student has been given 5 "sets" of homework assignments and lab exams, respectively, and that the scores are given in percentages. The program should get input from the screen and do the following: a) Calculate the best, worst, and average grades for each of the two components (hw assignments and lab exams). b) Calculate the overall grade of the student with every component carries the same weight. c) Decide whether the student passes the class or not. If the student cannot pass the class, the program should output the reason why. d) Output on the screen the input and results so that they look similar to this (use appropriate tools for formatting 1/0): 2 3 4. 15 BEST WORST AVG 94.00 90.00 80.00 100.00 100.00 10OL0 60.00 BOLOD 100.00 100.00 100.00 HW LAB 70.00 90.00 10000 AVG 100.00 95.00 75.00 80.00 95.00 Overall: 89 (option 1) (option 2) performance in <enter component here> was <504. Ty again next senester. Congratulations! You passed the class I'm sorry to inform you that you Ealed the cass, bedause yous e) (Optional) Output the same information as above to a file. The user should input the file name during run time). Do this part only if you know how to write to a file. Will teach in the class later. Write a program that asks a student for his/her grades assessing his/her C++ programming skills. The student gets a separate grade for each homework assignment and the lab exam associated with it. In order for the student to pass the class, he/she needs to achieve 50% or better in all possible "dimensions", i.e., >= 50% average in homework assignments • >= 50% average in lab exams Assume that the student has been given 5 "sets" of homework assignments and lab exams, respectively, and that the scores are given in percentages. The program should get input from the screen and do the following: a) Calculate the best, worst, and average grades for each of the two components (hw assignments and lab exams). b) Calculate the overall grade of the student with every component carries the same weight. c) Decide whether the student passes the class or not. If the student cannot pass the class, the program should output the reason why. d) Output on the screen the input and results so that they look similar to this (use appropriate tools for formatting 1/0): 2 3 4. 15 BEST WORST AVG 94.00 90.00 80.00 100.00 100.00 10OL0 60.00 BOLOD 100.00 100.00 100.00 HW LAB 70.00 90.00 10000 AVG 100.00 95.00 75.00 80.00 95.00 Overall: 89 (option 1) (option 2) performance in <enter component here> was <504. Ty again next senester. Congratulations! You passed the class I'm sorry to inform you that you Ealed the cass, bedause yous e) (Optional) Output the same information as above to a file. The user should input the file name during run time). Do this part only if you know how to write to a file. Will teach in the class later.
Expert Answer:
Answer rating: 100% (QA)
Solutions Program importing the libraries include include using namespace std initializing the main ... View the full answer
Related Book For
Database Systems A Practical Approach to Design Implementation and Management
ISBN: 978-0132943260
6th Edition Global
Authors: Thomas Connolly, Carolyn Begg
Posted Date:
Students also viewed these finance questions
-
In Python 1) Write a program that asks the user to enter a string. The program should then print the following: (a) The total number of characters in the string (b) The string repeated 10 times (c)...
-
Write a program that asks for the user's height, weight, and age, and then computes clothing sizes according to the formulas: Hat size = weight in pounds divided by height in inches and all that...
-
Write a program that asks user to input his/her full name and outputs the name in reverse. Hint: Cannot use STRREV()
-
1-Kristen prefaces her speech by talking about her inability to save or invest money. For that reason, she does her speech on an online money management course and focuses on the skills she learned...
-
A solution contains 0.0150 M lead(II) ion. A concentrated sodium iodide solution is added to precipitate lead iodide (assume no volume change). a. At what concentration of I does precipitate start to...
-
Find the ad in this book that you think is the most creative. What is its Big Idea? How and why does it work? Analyze the ad in terms of the ROI formula for evaluating effective creative...
-
CMS is a claims processing company in Mobile, Alabama. Chastity Jones, a black woman, completed an online employment application for a customer service position with CMS. Jones interviewed with a...
-
In 2008, the total payroll for the New York Yankees was $209.1 million, while the total payroll for the Tampa Bay Rays was about $43.8 million, or about one-fifth that of the Yankees. Many people...
-
Use your ERD (the attached picture) to define the table structures in the database using SQL DDL commands to build your schema. Search "Oracle Built-in Datatypes" to determine the correct datatypes...
-
George and Harry Haygood are building contractors who specialize in the construction of private home dwellings, storage warehouses, and small businesses (less than 20,000 sq. ft. of floor space)....
-
You are an employee (in your chosen field) with Goodman Gadgets which is based in Halifax, Nova Scotia. There will be a training seminar in Toronto, Ontario, that you feel will benefit the company as...
-
Goal linear programming is an extension of an LP that aims to optimise, instead of satisfying, what is stated in the objective function. a. True b. False
-
If the feasible region gets larger due to a change in one of the constraints, the optimal value of the objective function a. must increase or remain the same for a maximization problem. b. must...
-
Refer to the Boeing- Airbus dispute. What have been some of the central rulings of WTO panels since the inception of the dispute? Did Boeing have a prime- mover advantage? Why?
-
When alternate optimal solutions exist in an LP problem, then a. the objective function will be parallel to one of the constraints. b. one of the constraints will be redundant. c. two constraints...
-
In facility location problems, how many transportation models need to be developed to determine the best location of a new production facility?
-
On April 1, Bitner Company borrowed $10,000 from Century Bank. The note was for 1 year and carried an 8% annual interest rate. Bitner Company's year-end is December 31. What kind of adjustment, if...
-
In a certain school district, 3% of the faculty use none of their sick days in a school year. Find the probability that 5 faculty members selected at random used no sick days in a given year.
-
Now create the Room, Booking, and Guest tables using the integrity enhancement features of SQL with the following constraints: (a) Type must be one of Single, Double, or Family. (b) Price must be...
-
Describe the process of evaluating and selecting a DBMS product for each of the case studies described in Appendix B.
-
Describe the general structure of a PL/SQL block.
-
Which criteria to pick a strategy would you consider most important? Why? How would the context affect your answer?
-
Consider the description of Walkers Crisps' strategic marketing activity. How would you evaluate their actions? How would you compete against them?
-
Consider the segments in the male shopper insert. Describe each further. What car would they drive? What kind of holiday would they take? What beer brand would they buy?
Study smarter with the SolutionInn App