Subdomain Posts
PHP | 6 hours ago
PHP | 6 hours ago
PHP | 11 hours ago
PHP | 13 hours ago
PHP | 13 hours ago
PHP | 14 hours ago
PHP | 15 hours ago
PHP | 17 hours ago
PHP | 21 hours ago
PHP | 21 hours ago
Recent Posts
None | 15 sec ago
None | 23 sec ago
None | 1 min ago
None | 3 min ago
None | 3 min ago
None | 4 min ago
JavaScript | 4 min ago
None | 4 min ago
Lua | 4 min ago
None | 4 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
By Rodrigo F on the 30th of Jun 2009 11:30:53 AM
Download |
Raw |
Embed |
Report
Procedimento Varrer;
var
i: inteiro
NomesAlunos: String;
inicio
NomesAlunos := '' // inicialização da variável
Para i:= 0 a 30 faça inicio
Se Notas[i] >= 4 e Notas[i] <= 5.9 entao
Se NomesAlunos = '' então
NomesAlunos := Nomes[i]
Senão
NomesAlunos := NomesAlunos + ', ' + + Nomes[i] // recebe ele mesmo e incrementa o nome no array
fim;
fim;
Lembrando que o preenchimento dos vetores já existem (ou seja já estão feitos)
Passo 7
procedimento Perc;
var
ComVS, SemVS, i: Integer;
PercComVS, PercSemVS : Numeric;
inicio
ComVS := 0;
SemVS := 0;
PercComVS := 0;
PercSemVS := 0;
Para i:= 1 a 30 faça inicio
Se Notas[i] >= 6.0 entao // testa quem passou direto
SemVS := SemVS + 1
Senão Se Notas[i] >= 4.0 e Notas[i] <= 5.9 entao
ComVS := ComVS + 1;
fim
// Depois das varíveis calculadas, ele pegará o percentual (lembrando que são 30 alunos, nesse meu exemplo)
PercComVS := (ComVS / 30) * 100;
PercSemVS := (SemVS / 30) * 100;
Mostra('Percentual Com Verificação: '+ PercComVS +'%');
Mostra('Percentual Sem Verificação: '+ PercSemVS +'%');
fim;
fim
Submit a correction or amendment below.
[ previous version ] | [ difference ] | Make A New Post