Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this assignment you are to write a program that calculates a student's final grade and outputs the final letter grade to the console using

In this assignment you are to write a program that calculates a student's final grade and outputs the final letter grade to the console using functions. Two tests scores and one homework score will be supplied by the user. To calculate the final score assume that the tests are each worth 40% and the homework is worth 20% of the total score. You should implement and use the following two functions:

image text in transcribedimage text in transcribed

In this assignment you are to write a program that calculates a student's final grade and outputs the final letter grade to the console using functions. Two tests scores and one homework score will be supplied by the user. To calculate the final score assume that the tests are each worth 40% and the homework is worth 20% of the total score. You should implement and use the following two functions 1) calcFinalscore: This function is a value-returning function whose purpose is to compute the final score for a student. It takes three parameters: testl, test2, and hw (all doubles), and returns the final score as a double 2) printFinalScore: This function is a non value-returning function that outputs a student's final score and letter grade to the console. It takes the parameter finalScore (a double) The breakdown of letter grades is as follows: 90 or above is an A, 80 to 90 is a B, 70 to 80 is a C, 60 to 70 is a D, and less than 60 is a big fat F The following is skeleton code you might want to use to start your program. #include using namespace std; // **declare the function prototype for "calcFinalScore" here // declare the function prototype for "printFinalScore" here int main() // local variables double testl, test2 // the two tests scores double hw; double finalScore; // the student's final score // the homework score cout testl; cout test2 cout > hw; /call calcFinalScore here // ca11 printFinalScore here system ("PAUSE") return 0 // ***implement calcFinalScore here // ***implement printFinalScore here

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Online Market Research Cost Effective Searching Of The Internet And Online Databases

Authors: John F. Lescher

1st Edition

0201489295, 978-0201489293

More Books

Students also viewed these Databases questions

Question

Distinguish between poor and good positive and neutral messages.

Answered: 1 week ago

Question

Describe the four specific guidelines for using the direct plan.

Answered: 1 week ago