Documente Academic
Documente Profesional
Documente Cultură
itca.m1_examen
/*
* 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 itca.m1_examen;
import itca.modelado.Computadora;
import java.util.Scanner;
/**
*
* @author DanBeg
*/
public class M1_Examen {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Computadora comp = new Computadora();
Scanner sc = new Scanner(System.in, "ISO-8859-1").useDelimiter("\n");
int opcion1 = 1;
String opcion2 = "1";
System.out.println("DATOS DE LA COMPUTADORA");
System.out.print("Ingrese la marca: ");
comp.setMarca(sc.next());
System.out.print("Ingrese el modelo: ");
comp.setModelo(sc.next());
System.out.print("Ingrese el color: ");
comp.setColor(sc.next());
System.out.print("Ingrese la cantidad de RAM: ");
comp.setRAM(sc.nextInt());
System.out.print("Ingrese el tamao del disco duro: ");
comp.setHDD(sc.next());
System.out.print("Ingrese el tipo de procesador: ");
comp.setProcesador(sc.next());
System.out.print("Ingrese el Sistema Operativo: ");
comp.setSisOp(sc.next());
itca.modelado
/*
* 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 itca.modelado;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
/**
*
* @author DanBeg
*/
public class Computadora {
private String marca, modelo, color, HDD, procesador, sisOp, usuario;
private int RAM;
Calendar cal = Calendar.getInstance();
Date fecha = cal.getTime();
SimpleDateFormat sdf = new SimpleDateFormat("dd/MMMM/yyy");
public Computadora(){
}