9. (15 points) Suppose you are writing a program to calculate your final score for CSE1310...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
9. (15 points) Suppose you are writing a program to calculate your final score for CSE1310 class and assign a letter grade based on your final score. As you know, in your CSE1310 class, assignments make up 30% of the grade, class tests make up 40% of the grade, and benchmark quizzes are worth 30% of the grade. Write a program that asks the user to enter three integers (the class test score, benchmark quiz score and assignment score on a scale 0-100). Your program should calculate the final score based on the grading scheme mentioned above and display the final score and corresponding letter grade based on the following rules: • • • If the grade is between 90 and 100 inclusive, print an "A" If the grade is between 80 and 89 inclusive, print a "B" If the grade is between 70 and 79 inclusive, print a "C" If the grade is between 60 and 69 inclusive, print a "D" If the grade is between 50 and 59 inclusive, print an "E" If the grade is less than 50, print an "F" In the example outputs shown below, user inputs are marked in blue Example Output 1: Please enter your class test score (0-100): 92 Please enter your benchmark quiz (0-100): 90 Please enter your assignment (0-100):95 Final score 92 Letter Grade A 9. (15 points) Suppose you are writing a program to calculate your final score for CSE1310 class and assign a letter grade based on your final score. As you know, in your CSE1310 class, assignments make up 30% of the grade, class tests make up 40% of the grade, and benchmark quizzes are worth 30% of the grade. Write a program that asks the user to enter three integers (the class test score, benchmark quiz score and assignment score on a scale 0-100). Your program should calculate the final score based on the grading scheme mentioned above and display the final score and corresponding letter grade based on the following rules: • • • If the grade is between 90 and 100 inclusive, print an "A" If the grade is between 80 and 89 inclusive, print a "B" If the grade is between 70 and 79 inclusive, print a "C" If the grade is between 60 and 69 inclusive, print a "D" If the grade is between 50 and 59 inclusive, print an "E" If the grade is less than 50, print an "F" In the example outputs shown below, user inputs are marked in blue Example Output 1: Please enter your class test score (0-100): 92 Please enter your benchmark quiz (0-100): 90 Please enter your assignment (0-100):95 Final score 92 Letter Grade A
Expert Answer:
Answer rating: 100% (QA)
9 include using namespace std int main declare variables int testScore benchmarkQuiz assignment fi... View the full answer
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these programming questions
-
Entrepreneurs should be aware of the following issues when trying to raise capital except: Will HR be outsourced or a manger hired to run the HR department internally? Will I get anything else...
-
In this assignment, you are writing a program that converts common texting abbreviations to English words to allow people like yours truly can understand. For the assignment, you are provided with a...
-
Bovens (2005) highlights a number of types of accountability that public and nonprofit sector employees may face, including: Organizational accountability : Accountability to superiors in...
-
In Exercises approximate the definite integral using the Trapezoidal Rule and Simpson's Rule with n = 4. Compare these results with the approximation of the integral using a graphing utility. 3.1 J3...
-
What is accomplished by page buffering?
-
Draw the K-maps of these sum-of-products expansions in two variables. a) x b) xy + c) xy + x + y +
-
A DC motor-drive system has a comparator. The comparators job is to compare the existing speed of the motor with the requested speed. The motor speed is transmitted from a tachometer on the outboard...
-
Margie Anunson was just hired as the assistant treasurer of Northshore Stores, a specialty chain store company that has nine retail stores concentrated in one metropolitan area. Among other things,...
-
On January 1, Sharp Company purchased $75,000 of Sox Company 6% bonds, at a time when the market rate was 5%. The bonds mature on December 31 in five years, and pay interest annually on December 31....
-
The Hatcher Company is in the process of developing a new inventory management system. One of the event handling processes in that system is Receive Supplier Shipments. The (inexperienced) systems...
-
Debbie's Department income totals $200,000, investment in the department is $2,000,000, and the company's cost of capital is 8%. Calculate the return on investment (ROI). Calculate Residual Income...
-
On the Tokyo Stock Exchange, Honda Motor Company stock closed at 2,919 per share on Monday, June 6, 2016. Honda trades as an ADR on the NYSE. One underlying Honda share equals one ADR. On June 6,...
-
Why are fashion and clothing forms of non-verbal communication? Why and how these silent messages affect you as a consumer?
-
What is meant by the term culture fit, and why is it beneficial for both employer and employee
-
What is job satisfaction? Please explain and provide and example Why is job satisfaction important? Please explain What factors leads to job satisfaction? Please list the factors and explanation?...
-
Discuss the strengths and weaknesses of Costco Wholesale communication and recommend solutions? Explain briefly
-
We start with initial values of x,y and z as zero. Solve x, y,z in terms of other. 1. Solve the system of equation by Gauss-Jacobi method 27x+6yz = 85 Solution: 6x +15y + 2z = 72 x+6y + 54 z = 110
-
Michelles trust is subject to 3.8% surtax on the lesser of the trusts net investment income or the excess of the trusts adjusted gross income over the $12,400 threshold (the highest trust tax rate)....
-
Write a program that reads records of type Pet from a file created by the program described in the previous programming project and displays the following information on the screen: the name and...
-
Define an enumeration for each of the months in the year. Use a for-each statement to display each month.
-
Create a GUI application that draws the following picture of a magic wand, using polygons and polylines:
-
Use the data of Problem 3.8 to find the phase differences of the Loewy function for a double bladed rotor where only the distance between the blades are counted. Make the same computations for...
-
If the gust intensity with time varies as given in Fig. 3.16, obtain the lift and the moment coefficient changes about the midchord and their plots with respect to time. Fig. 3.16 Wg 0 to t
-
Find the lift and the moment coefficients about the midchord of an airfoil which undergoes a sudden vertical translation under zero angle of attack. Use the Wagner function.
Study smarter with the SolutionInn App