Question: You need to write a program that displays marks (as integers) given a student letter grade. Your program should be menu driven and input a

You need to write a program that displays marks (as integers) given a student letter grade. Your program should be menu driven and input a character. Valid characters are A,B,C,D and F. (as well as Q for exit) Your program should accept lowercase letters and ignore invalid entries. The menu should be looping and stop when the user enters Q.

Use the given lab template. Populate the function displayMarks(char letterGrade) with the code where indicated. Include documentation for the program with header and line comments.

IF you are using MAKEFILES (OPTIONAL) do the following:

Create a makefile with the command

g++ calculateMarksFunctions.cpp, calculateMarksHeader.h, calculateMarksMain.cpp -o calculateMarks

run this file using the linux commands

chmod u+x calculateMarks

./calculateMarks

Test that the program works

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!