Teoria delas putas

Páginas: 2 (423 palabras) Publicado: 14 de agosto de 2012
public double promedio( )
{
double suma = 0;
for( int indice = 0; indice < TOTAL_EST; indice++ )
{
suma += notas[ indice ];
}
returnsuma / TOTAL_EST;
}

public int cuantosEncimaPromedio( )
{
// Saca el promedio utilizando el método promedio()
double promedio = promedio( );

// Calculael numero notas mayores
int vanEncima = 0;
for( int indice = 0; indice < TOTAL_EST; indice++ )
{
if( notas[ indice ] > promedio )
{vanEncima++;
}
}
return vanEncima;
}


public double darNota( int numEstudiante )
{
return notas[ numEstudiante - 1 ];
}public void cambiarNota( int numEstudiante, double nota )
{
notas[ numEstudiante - 1 ] = nota;
}
public int cuantosPasaron(){
int numEstudiante= 0;
int indice= 0;
while (indice < TOTAL_EST){
if (notas[indice]>=3.0 && notas[indice]<=5.0){
numEstudiante ++;
}
indice ++;
}
return numEstudiante;}

public double mayorNota(){
int indice = 0;
double notaMasAlta = 0.0;
while (indice < TOTAL_EST){
if (notas[indice] >= notaMasAlta){notaMasAlta = notas[indice];
}
indice ++;
}
return notaMasAlta;
}
public void hacerCurva(){
int indice = 0;
double bonificacion = 0.05;
while (indice <TOTAL_EST){
if (notas[indice] + (notas[indice] * bonificacion) <= 5){
notas[indice]+= notas[indice] * bonificacion;
}
else {
notas[indice] = 5;
}}
indice ++;

}
public int cuantosPeoresQue(int indiceEstudiante){
int indice = 0;
int peores = 0;

while (indice < TOTAL_EST){
if...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Puta
  • Puto
  • la puta que te....
  • Putas
  • Putos
  • puto
  • Putas
  • Yo, puta

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS