Question
My assignment is to use a switch statement to solve: Create two void functions titled getScore and printGrade with an int argument. The function getScore
My assignment is to use a switch statement to solve:
Create two void functions titled getScore and printGrade with an int argument. The function getScore should have a Reference parameter and printGrade should have a Value parameter.The function getScore will prompt the user for the numerical score, get the input from the user, and print the numerical score. The function printGrade will calculate the course grade and print the course grade. (Be careful and note that the assignment requires you to input the grade into getScore and not directly into the main function.)
The issue is that my code is not giving the correct letter grade
#include
void getScore() { cout <<"Please enter your numerical score and your grade will be display "; cin >> score ; cout << "You entered a score of " < void printGrade() { switch (score) { case 'A': score >= 90; cout << "Your Grade is: A " <
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started