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 #include "CalculateMarksHeader.h" int main() { calculateMarksMenu(); } #include using namespace std; void calculateMarksMenu(); char inputChoice(); void displayMenu(); char inputYNChoice(); void quit(); void display(string message); void displayMarks(char letterGrade); void displayAMarks(); void displayBMarks(); void displayCarks(); void displayDMarks(); void displayFMarks();

#include "CalculateMarksHeader.h" #include

void calculateMarksMenu(){ char ch = ' '; while (ch!='Q'){ displayMenu(); ch=inputChoice(); displayMarks(ch); }

} void displayMenu(){ cout<>ch; ch=toupper(ch); while (ch!='A'&&ch!='B'&&ch!='Q'&&ch!='C'&&ch!='D'&&ch!='F'){ cout<<" Please enter a valid choice "<>ch; ch=toupper(ch); } return ch; } void quit(){ cout<<("Good Bye !")<

}

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!