ClubEnsayos.com - Ensayos de Calidad, Tareas y Monografias
Buscar

Matriz java


Enviado por   •  30 de Julio de 2021  •  Apuntes  •  966 Palabras (4 Páginas)  •  68 Visitas

Página 1 de 4

Float matrizPesos[][] = new float [10][6];

       Mes 1                       2                            3                          4                         5                         6

80

70

74

72

120

95

For ( f=0; f<matrizPesos.length;f++)

{

    Nombres={“ana”,”Juan”…..}

    Estaturas={1.7, 1.8, 1.6…..}

    Edades[f] ={20,21,18,19….

    For( c=0;c<matrizPesos[0].length;c++)

    {

          Pesos={{70,71,70.5,70,70,69},{sdadadas},{sdfsdfsdfsd}}

    }

}

For(f=0;f<matrizPesos.length;f++)

{

       Indice = calcularIMC(matrizPesos[f][2], estatura[f])

       If (indice > 25)

      If(matrizPesos[f][2]/(estatura[f]*estatura[f]) > 25)

      {

               Mensaje = “Sobrepeso “ + nombre[f]

For ( f=0;f<edades.length;f++)

{

      Booleano cumple = false;

      Cumple = verificar( edades[f], estaturas[f])

      If (cumple ==true)

       Contadort++

/*

 * 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.

 */

package proyectomatrices;

import javax.swing.JOptionPane;

/**

 *

 * @author user

 */

public class Matriz2

{

    public static void main(String[] args)

    {

        String cad="";

        String cad1="";

        String cad2="";

        int f, c;

        int matrizEnteros[][] = {{20,60,37,25},{2,90,24,56},{88,11,29,4},{61,48,3,95}};

       

        for(f=0;f<matrizEnteros.length;f++)

        {

          for(c=0;c<matrizEnteros[0].length;c++)

          {

...

Descargar como (para miembros actualizados)  txt (3.5 Kb)   pdf (34.1 Kb)   docx (8.4 Kb)  
Leer 3 páginas más »
Disponible sólo en Clubensayos.com