Skip to content

Commit 4a68667

Browse files
authored
Merge pull request #146 from dpdiest/patch-31
Update readme.md
2 parents 744ea16 + f0539ee commit 4a68667

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

labs/GradeCalculator/readme.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Grade Calculator
55
This lab serves multiple goals:
66

77
- To have you read a high-level description of a program,
8-
- To help you in implementing this high-level description,
8+
- To help you implement this high-level description,
99
- To help you structure your reasoning and mathematical understanding of a simple problem,
1010
- To exhibit different implementations of this high-level description.
1111

@@ -22,35 +22,35 @@ We will assume that your grade for this class will be computed as follows:
2222
In-class Tests 2 100 40%
2323
Final Exam 1 200 40%
2424

25-
Our goal is to write a program that asks the user for their grades obtained *so far* (it is possible that some quizzes, projects, tests are still to be taken, or that the final did not happened yet) and compute their *current* class average.
25+
Our goal is to write a program that asks the user for their grades obtained *so far* (it is possible that some quizzes, projects, and tests are still to be taken, or that the final has not happened yet) and computes their *current* class average.
2626

27-
Your program can either ask the user for the number of quizzes, projects, test and exam taken so far, and then ask for the values, or use a sentinel value (as shown in the example below) to know when to "stop".
27+
Your program can either ask the user for the number of quizzes, projects, tests, and exams taken so far, and then ask for the values, or use a sentinel value (as shown in the example below) to know when to "stop".
2828
This means if they say that they have taken only 2 quizzes (or put the sentinel value for quiz 3), then the program should not ask for the later quiz grades (this is also true for the projects and exams).
29-
It is fine to assume that the user will only enter "correct" numerical values and not to perform any user-input validation, but your program should be flexible enough so that changing the number of quizzes, for instance, would require to change only a variable or a couple of values.
29+
It is fine to assume that the user will only enter "correct" numerical values, and you will not need to perform any user-input validation, but your program should be flexible enough so that changing the number of quizzes, for instance, would require changing only a variable or a couple of values.
3030

3131
An example of execution could be:
3232

3333
```{.text}
3434
For all the questions below, enter
3535
- your grade, or
3636
- "0" if you missed the evaluation, or
37-
- "-1" if that evaluation did not happened yet.
37+
- "-1" if that evaluation has not happened yet.
3838
39-
What was your grade for quiz 1 (out of 20)?
39+
What was your grade for Quiz 1 (out of 20)?
4040
1̲6̲↵
41-
What was your grade for quiz 2 (out of 20)?
41+
What was your grade for Quiz 2 (out of 20)?
4242
1̲4̲↵
43-
What was your grade for quiz 3 (out of 20)?
43+
What was your grade for Quiz 3 (out of 20)?
4444
-̲1̲↵
4545
Your average for the quiz is 75.00 %.
46-
What was your grade for project 1 (out of 20)?
46+
What was your grade for Project 1 (out of 20)?
4747
2̲2̲↵
48-
What was your grade for project 2 (out of 20)?
48+
What was your grade for Project 2 (out of 20)?
4949
-̲1̲↵
5050
Your average for the project is 110.00 %.
51-
What was your grade for in-class test 1 (out of 100)?
51+
What was your grade for Test 1 (out of 100)?
5252
6̲6̲↵
53-
What was your grade for in-class test 2 (out of 100)?
53+
What was your grade for Test 2 (out of 100)?
5454
-̲1̲↵
5555
Your average for the tests is 66.00 %.
5656
What was your grade for the final (out of 200)?
@@ -75,7 +75,7 @@ Once you have the equation figured out, you need to understand how you can obtai
7575
You have two possible ways of doing it:
7676

7777
- Will you ask first for the number of quizzes taken, and then ask for the values, or
78-
- Will you ask for the values, and take "-1", for instance, as a signal that this quiz did not happened yet.
78+
- Will you ask for the values, and take "-1", for instance, as a signal that this quiz has not happened yet?
7979

8080
Try to implement one or the other, without worrying about the computation at this point (just add, for instance, the value entered).
8181

@@ -91,4 +91,4 @@ However, the solution is flexible enough (and, hopefully, commented enough) so t
9191
## With arrays
9292

9393
Another solution to this problem is in [Grade_Calculator_with_Arrays](Grade_Calculator_with_Arrays.zip).
94-
This solution is much more flexible, uses fewer variable, but it may also be more difficult to understand, because it uses arrays in a subtle way.
94+
This solution is much more flexible and uses fewer variables, but it may also be more difficult to understand because it uses arrays in a subtle way.

0 commit comments

Comments
 (0)