Question
How do I make Your marks are between 90 and 100 display in this C++ code? It seems to be running fine except without Your
How do I make "Your marks are between 90 and 100" display in this C++ code? It seems to be running fine except without "Your marks are between 90 and 100" displaying.
#include
#include "CalculateMarksHeader.h" #include
void calculateMarksMenu(){ char ch = ' '; while (ch!='Q'){ displayMenu(); ch=inputChoice(); displayMarks(ch); }
} void displayMenu(){ cout< } void display(string message){ cout< void displayMarks(char letterGrade){ //use a switch / case statement //to branch to the correct displayMarks method //So if input is 'A' displayAMarks() should be called } void displayAMarks(){ display("*********************************"); display("Your marks are between 90 and 100"); display("*********************************"); } void displayBMarks(){ display("*********************************"); display("Your marks are between 80 and 89"); display("*********************************"); } void displayCMarks(){ display("*********************************"); display("Your marks are between 70 and 79"); display("*********************************"); } void displayDMarks(){ display("*********************************"); display("Your marks are between 60 and 69"); display("*********************************"); } void displayFMarks(){ display("*********************************"); display("Your marks are below 60"); display("*********************************"); }
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