Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Section 4 - Exercise 38 Grade Statistics #7

Open
abl73 opened this issue Jan 28, 2025 · 1 comment
Open

Section 4 - Exercise 38 Grade Statistics #7

abl73 opened this issue Jan 28, 2025 · 1 comment

Comments

@abl73
Copy link

abl73 commented Jan 28, 2025

Regarding the last exercise of section 4 (part 4 number 38 Grade Statistics) I don't understand the error in my outcome.

When entering:
20 100 -> Score: 30 so grade: 5
10 10 -> Score 11 so fail
9 100 -> Score 19 but fail because 9 < 10
15 75 -> Score 22
18 40 -> Score 22

In my view there are two fails:

  • The second input fails (as 10 exampoints and 1 exercisepoint = 11 -> <14 so fail
  • The third input fails as 9 < 10; so below threshold

So my percentage of pass = 60%, but the corrections keep stating it should be 80%?

@KoutsAlex
Copy link

KoutsAlex commented Jan 31, 2025

could you please post the TMC report and your code? I think I had the same problem as you.

But with the same input I am getting this, and TMC accepted my submit

Exam points and exercises completed: 20 100
Exam points and exercises completed: 10 10
Exam points and exercises completed: 9 100
Exam points and exercises completed: 15 75
Exam points and exercises completed: 18 40
Exam points and exercises completed:
Statistics:
Points average: 20.8
Pass percentage: 60.0
Grade distribution:
5: *
4:
3: **
2:
1:
0: **

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants