Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program named hw1_1.cpp that finds a letter grade based on two scores. It prompts the user for two E xam scores. It

Write a C++ program named hw1_1.cpp that finds a letter grade based on two scores. It prompts the user for two E xam scores. It then will call a function to calculate the average, and then a different function to find a letter grade. You will write these two function. One is named find_avg(), which will take two double scores and return an average of the two scores. The other is named letter_grade() that will take a double score and then return a letter grade (so a character).

image text in transcribedimage text in transcribed

The following shows a sample execution of your program. Note that the boldfaced numbers are entered by the user. Welcome to the grade calculator ****** *** Enter exam 1 Score: 85.3 Enter exam 2 score: 95.9 ********************** * **** 90.6 Your average score: Your grade: A I've written the main function for you. Do not modify it, just write the functions: #include using namespace std; [/function declaration/prototypes int main() { double scorel, score2, average; char grade; cout > scorel; cout > score2; cout

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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions