Hi. I am having difficulty understanding exactly how my instructor wants this set up. I have my c++ book, but even with that, it's very difficult incorporating all of what the book wrote, with the different things he wants. So, from reading the instructions and looking at my code, can anyone tell me if I am setting this up ok? Any advice with the if/else statements? Thanks.
Topics
Branches
if statement
if/else statement
Description
Write a program that will determine whether the user passed or failed a test. The program will ask the user to input the following:
Percent Pass Score
This represents the minimum percent scores required to pass the test.
Maximum Test Score
This represents the maximum total scores in the test.
User Test Score
This represents the actual scores obtained by the user in the test.
From the above input values, the program will compute the user percent scores in the test. It will compare the percent user score with the percent pass score. If the user percent score is equal to or greater than the percent pass score, the program will consider the user having passed the test. Otherwise, the program will consider the user having failed the test. At the end, the program will display the result summary. See the Test section below.
Ok, here is an update. I suppose I'm still confused on how to alter the "test result" without making it a constant. Or at least that's what the professor is asking for. Heres the updated code that I'm still having problems with.