Пример #1
0
  private double CalcularNota2(float por_1, float por_2, int not_1, int not_2) {
    double porce_1, porce_2, sumatoria;
    porce_1 = por_1 / 100;
    porce_2 = por_2 / 100;

    sumatoria = (porce_1 * obj.DevolverNumero(not_1)) + (porce_2 * obj.DevolverNumero(not_2));
    return Math.rint(sumatoria * 100) / 100;
  }
Пример #2
0
  private double CalcularNota1(float por_1, int not_1) {
    double porce_1, sumatoria;
    porce_1 = por_1 / 100;

    sumatoria = (porce_1 * obj.DevolverNumero(not_1));
    return Math.rint(sumatoria * 100) / 100;
  }