Programação Progressiva
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.
Programação Progressiva

Fórum para dúvidas dos sites: Programação Progressiva, Java Progressivo, C Progressivo


Você não está conectado. Conecte-se ou registre-se

MINHA PRIMEIRA LISTA DE EXERCÍCIOS

Ir para baixo  Mensagem [Página 1 de 1]

1MINHA PRIMEIRA LISTA DE EXERCÍCIOS  Empty MINHA PRIMEIRA LISTA DE EXERCÍCIOS Qui Fev 12, 2015 2:35 am

Neresphoto001

Neresphoto001

Meu nome é Antonio Neres Machado... estou postando minha primeira lista (imagino que seja assim que se faça):

1) CADASTRO DE CLIENTES
/*
* 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 cadastrodeclientes.pkg1;

/**
*
* @author Antônio
*/
public class Cadastrodeclientes1 {

   /**
    * @param args the command line arguments
    */
   public static void main(String[] args) {
       System.out.print("\n\nCADASTRO DE CLIENTES\n\n0 - FIM\n1 - INCLUIR\n"
               + "2 - ALTERAR\n3 - EXCLUIR\n4 - CONSULTAR\n\nOPÇÃO:\n\n");
   }
   
}

OUTPUT
run:


CADASTRO DE CLIENTES

0 - FIM
1 - INCLUIR
2 - ALTERAR
3 - EXCLUIR
4 - CONSULTAR

OPÇÃO:

BUILD SUCCESSFUL (total time: 0 seconds)


2) AO MESTRE
/*
* 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 ao.mestre;

/**
*
* @author Antônio
*/
public class AoMestre {

   /**
    * @param args the command line arguments
    */
   public static void main(String[] args) {
       System.out.print("\n\nOlá querido professor,\n\n\n" +
"  É com alegria que me dirijo a você para \nlhe falar acerca deste curso. Quero "
               + "muito \naprender  a   programar;  me  tornar   um \nprogramador. "
               + " Espero  que  ao  longo   do\ncurso  eu  consiga  fazê-lo  bem   e  com "
               + "\nfacilidade. Há muito  queria tê-lo feito, \nmas  por  diversos"
               + " motivos não o fiz, mas \nagora tenho um bom motivo. \n\n" +
"       Este motivo me impulsiona.\n" +
"           At In the end,\n" +
"       I HOPE HAVE ACHIEVED IT !!!\n\n");
   }
   
}

OUTPUT
run:


Olá querido professor,


 É com alegria que me dirijo a você para
lhe falar acerca deste curso. Quero muito
aprender  a   programar;  me  tornar   um
programador.  Espero  que  ao  longo   do
curso  eu  consiga  fazê-lo  bem   e  com
facilidade. Há muito  queria tê-lo feito,
mas  por  diversos motivos não o fiz, mas
agora tenho um bom motivo.

      Este motivo me impulsiona.
          At In the end,
      I HOPE HAVE ACHIEVED IT !!!

BUILD SUCCESSFUL (total time: 0 seconds)

3) FRASES DESTRUTIVAS
/*
* 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 destruição.pkg1;

/**
*
* @author Antônio
*/
public class Destruição1 {

   /**
    * @param args the command line arguments
    */
   public static void main(String[] args) {
       System.out.print("\nDerrotado\nfracassado\nDestruido\nIsto não vai dar certo\n"
               + "Você nunca vai conseguir\nVocê vai se estrepar\n"
               + "Não vai dar em nada\nEstá tudo errado!\n\n ");
       
   }
   
}

OUTPUT
run:

Derrotado
fracassado
Destruido
Isto não vai dar certo
Você nunca vai conseguir
Você vai se estrepar
Não vai dar em nada
Está tudo errado!

BUILD SUCCESSFUL (total time: 0 seconds)


4) ETIQUETA
/*
* 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 etiqueta.pkg1;

/**
*
* @author Antônio
*/
public class Etiqueta1 {

   /**
    * @param args the command line arguments
    */
   public static void main(String[] args) {
       System.out.print("\nAntônio Neres Machado\nRua VF-63 Qd-60 Lt-17, "
               + "St Morada do Sol Goiânia - GO\n74475-121  - fone 62 9909-"
               + "\n\n");
   }
   
}

OUTPUT
run:

Antônio Neres Machado
Rua VF-63 Qd-60 Lt-17, St Morada do Sol Goiânia - GO
74475-121  - fone 62 9909-

BUILD SUCCESSFUL (total time: 0 seconds)


5) O PRIMEIRO PROGRAMA ...
/*
* 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 exercicio.pkg1;

/**
*
* @author Antônio
*/
public class Exercicio1 {

   /**
    * @param args the command line arguments
    */
   public static void main(String[] args) {
       System.out.print("O Primeiro Programa a\n gente nunca esquece!\n");
       
   }
   
}

OUTPUT
run:
O Primeiro Programa a
gente nunca esquece!
BUILD SUCCESSFUL (total time: 0 seconds)

6) MENSAGEM
/*
* 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 mensagem.pkg1;

/**
*
* @author Antônio
*/
public class Mensagem1 {

   /**
    * @param args the command line arguments
    */
   public static void main(String[] args) {
       System.out.print("     Eu sempre me procurei,\n   sempre tentei achar minha "
               + "direção,\n    sempre tentei encontrar meu caminho. \n   Até o dia "
               + "que te conheci, \n         e em ti \n      encontrei meu "
               + "norte.\n          Você não é "
               + "\n   a história que eu vou lembrar, \n          você é "
               + "\n   a história que eu vou viver.\n");
   }
   
}

OUTPUT
run:
    Eu sempre me procurei,
  sempre tentei achar minha direção,
   sempre tentei encontrar meu caminho.
  Até o dia que te conheci,
        e em ti
     encontrei meu norte.
         Você não é
  a história que eu vou lembrar,
         você é
  a história que eu vou viver.
BUILD SUCCESSFUL (total time: 0 seconds)

7) PINHEIRO
/*
* 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 pinheiro.pkg1;

/**
*
* @author Antônio
*/
public class Pinheiro1 {

   /**
    * @param args the command line arguments
    */
   public static void main(String[] args) {
       System.out.print("            J\n           -E-\n          X-S-X\n"
               + "         XX-U-XX\n        XXX-S-XXX\n       XXXXX XXXXX\n"
               + "     XXX CRISTO XXX\n    XXXX ------ XXXX\n"
               + "   XXXXXXXXXXXXXXXXXX\n  XXXXXXXXXXXXXXXXXXXX\n"
               + "          XXX\n          XXX\n"
               + "          XXX\n"
               + "          XXX\n"
               + "          XXX\n"
               + "          XXX\n"
               + "        XXXXXXX\n        XXXXXXX\n\n");
   }
   
}

OUTPUT
run:
           J
          -E-
         X-S-X
        XX-U-XX
       XXX-S-XXX
      XXXXX XXXXX
    XXX CRISTO XXX
   XXXX ------ XXXX
  XXXXXXXXXXXXXXXXXX
 XXXXXXXXXXXXXXXXXXXX
         XXX
         XXX
         XXX
         XXX
         XXX
         XXX
       XXXXXXX
       XXXXXXX

BUILD SUCCESSFUL (total time: 0 seconds)

8) QUADRADO
/*
* 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 quadrado.pkg1;

/**
*
* @author Antônio
*/
public class Quadrado1 {

   /**
    * @param args the command line arguments
    */
   public static void main(String[] args) {
       System.out.print("\nXXXXXXXX");
       System.out.print("\nX      X");
       System.out.print("\nX      X");
       System.out.print("\nX      X");
       System.out.print("\nX      X");
       System.out.print("\nX      X");
       System.out.print("\nX      X");
       System.out.print("\nXXXXXXXX\n\n");
   }
   
}

OUTPUT
run:

XXXXXXXX
X      X
X      X
X      X
X      X
X      X
X      X
XXXXXXXX

BUILD SUCCESSFUL (total time: 0 seconds)


9) TABELA DE NOTAS
/*
* 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 tabeladenotas.pkg1;

/**
*
* @author Antônio
*/
public class Tabeladenotas1 {

   /**
    * @param args the command line arguments
    */
   public static void main(String[] args) {
       System.out.print("\n\nALUNO(A)          NOTA\n========          ====\n\n"
               + "ALINE              9.0\n"
               + "MÁRIO              DEZ\n"
               + "SÉRGIO             4.5\n"
               + "SHIRLEY            7.0\n\n");
   }
   
}

OUTPUT
run:


ALUNO(A)          NOTA
========          ====

ALINE              9.0
MÁRIO              DEZ
SÉRGIO             4.5
SHIRLEY            7.0

BUILD SUCCESSFUL (total time: 0 seconds)


Espero que tenham gostado ... é importante dizer que procurei fazer algo mais belo (visualmente) do que o que eu vi nas propostas ... pro meu gosto, acho que ficou melhor.
Outra coisa importante, aprendi alguns atalhos de teclado e os estou utiliizando.

Ir para o topo  Mensagem [Página 1 de 1]

Permissões neste sub-fórum
Não podes responder a tópicos