C++ for Engineers and Scientists
C++ for Engineers and Scientists
4th Edition
ISBN: 9781133187844
Author: Bronson, Gary J.
Publisher: Course Technology Ptr
bartleby

Videos

Textbook Question
Book Icon
Chapter 8, Problem 3PP

(Data processing) Write a C++ program that allows the user to enter the following information from the keyboard for each student in a class (up to 20 students):

Name Exam 1 Grade Exam 2 Grade Homework Grade Final Exam Grade

For each student, your program should first calculate a final grade, using this formula:

F i n a l   G r a d e   =   0.20   ×   E x a m   1   +   0.20   ×   E x a m   2   +   0.35   ×   H o m e w o r k   +   0.25   ×   F i n a l   E x a m Then assign a letter grade on the basis of 90 100   =   A ,   80 89   =   B ,   70 79   =   C ,   60 69   =   D , and less than 60   =   F . All the information, including the final grade and the letter grade, should then be displayed and written to a file.

Blurred answer
Students have asked these similar questions
(C++ language)
Language: C++ (Apartment problem)  A real estate office handles , say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit? Write a program that prompts the user to enter: The total number of units. The rent to occupy all the units. The increase in rent that results in a vacant unit. Amount to maintain rented unit. The program then outputs the number of units to be rented to maximize the profit.   Note: Please include the pseudocode
NB: USE IF ELSE STATEMENTS FOR THIS CODING IN C++ • Calculate each student's grade - 10 students in a class; each student has taken five tests; each test is worth 100 points • Design algorithms to: - Calculate the grade for each student and class average - Find the average test score - Determine the grade • Data: students' names; test scores
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Boolean Algebra - Digital Logic and Logic Families - Industrial Electronics; Author: Ekeeda;https://www.youtube.com/watch?v=u7XnJos-_Hs;License: Standard YouTube License, CC-BY
Boolean Algebra 1 – The Laws of Boolean Algebra; Author: Computer Science;https://www.youtube.com/watch?v=EPJf4owqwdA;License: Standard Youtube License