-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a129a31
commit 5498e17
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
n1, n2, n3, n4 = map(float, input().split()) | ||
|
||
average = (n1 * 2 + n2 * 3 + n3 * 4 + n4) / 10 | ||
|
||
print(f'Media: {average:.1f}') | ||
if average >= 7.0: | ||
print('Aluno aprovado.') | ||
elif average >= 5.0: | ||
print('Aluno em exame.') | ||
|
||
final_test = float(input()) | ||
|
||
print(f'Nota do exame: {final_test:.1f}') | ||
if (final_test + average) / 2.0 > 5.0: | ||
print('Aluno aprovado.') | ||
else: | ||
print('Aluno reprovado.') | ||
print(f'Media final: {(final_test + average) / 2.0:.1f}') | ||
else: | ||
print('Aluno reprovado.') |