forked from dayanec/git-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexercicio4-1.php
More file actions
47 lines (44 loc) · 1.38 KB
/
exercicio4-1.php
File metadata and controls
47 lines (44 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
$P1 = 10;
$M1 = 10;
$M2 = 10;
$Proj1 = 10;
$Proj2 = 10;
$Proj3 = 10;
$Proj4 = 10;
$TrabF = 10;
$Proc = 10;
$PF = 10;
$MI = (30*$P1 + 10*$M1 + 10*$M2 + 5*$Proj1 + 5*$Proj2 + 5*$Proj3 +
5*$Proj4 + 10*$TrabF + 20*$Proc)/100;
if($M1 >= 7.5){
$MF = $MI;
echo 'Aprovado sem Prova Final<br>';
echo 'Parabéns!!! Boas férias';
}else{
$MF = ($MI + $PF)/2;
if(($MF>=6.0)&&($MF!=$M1)){
echo 'Aprovado com Prova Final<br>';
echo 'Agora já pode descansar tranquilo.';
}else{
echo 'Reprovado<br>';
echo 'Não foi dessa vez. Ano que vem tem mais TWII.<br>';
}
}
echo "\nMédia Intermediária: $MI<br>";
echo "Média Final: $MF";
?>
</body>
</html>