Hi, we were given the task to create a program where the user has to input 10 grades and the output is supposed to give the corresponding grading letter. I have tried and make the code for it but I can't seem to create the multiple input and multiple output. Below is the sample input and output and my code.
@againtry is there any substitution to what you use? I still havent encountered those kind of variables that uses [] as well as {}. If its okay may I know what they do?
@noir234 double Numgrade{0};
is equivalent to what you are probably used to, ie double Numgrade = 0; The curly braces were brought in to make initialization uniform with other variable declarations.
The square brackets are used in this case for an array (multiple) of items because your assignmnet description says to have multiple input and multiple output. You pile in a batch (array) of numbers, and then the program spits out the answers, one at a time.