string[] enc = new string[15];
int[,] prod = new int[15, 13];
int i,m,p;
int mayor = 0
int pos=0
int suma = 0
string encargado
int sumatotal = 0;
for (i = 0; i < i =" 0;" m =" 0;" suma =" suma">Print "Analisis de produccion"
Print " la sumatotal de: \t total de produccion"
for (i=0 ; i<15 sumatotal="sumatotal">Print("",enc[i], sumatotal);
if (prod[i, 12] > mayor)
{
mayor = prod[i, 12];
pos = i+1;
encargado = enc[i];
}
else
{
}
}
Print("el total de produccion de todas las estaciones en el año es{0}:",sumatotal);
Print "la estacion mas productiva fue:",pos
Print "el engargado es:", encargado
Print "con la cantidad de:", mayor
fin.
ESTACIONES DE TRABAJO.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQULrHJF2_rn_UQxN0-_RmI7koSntIq2Grk-oDWUn3ev-1lz0TAuIxm3IPFfdSkb7SBli6p1zLksD6FTq30hsxG5IxvpOmA97nQBPMmQQA42S4Enp9D8n0D1iISky7ch87b8RChyiGjDMN/s320/11.4cons.bmp)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string[] enc = new string[15];
int[,] prod = new int[15, 13];
int i,m,p;
int mayor = 0;
int pos=0;
int suma = 0;
string encargado;
encargado = Console.ReadLine();
int sumatotal = 0;
for (i = 0; i < i =" 0;" m =" 0;" p =" int.Parse(Console.ReadLine());" suma =" suma" i="0" sumatotal="sumatotal"> mayor)
{
mayor = prod[i, 12];
pos = i+1;
encargado = enc[i];
}
else
{
}
}
Console.WriteLine("el total de produccion de todas las estaciones en el año es{0}:",sumatotal);
Console.WriteLine("la estacion mas productiva fue:{0}",pos);
Console.WriteLine("el engargado es:{0}", encargado);
Console.WriteLine("con la cantidad de:{0}", mayor);
Console.ReadKey();
}
}
}
No hay comentarios:
Publicar un comentario