supermercado

Download supermercado

If you can't read please download the document

Upload: christian-suarez

Post on 09-Nov-2015

214 views

Category:

Documents


2 download

DESCRIPTION

administracion

TRANSCRIPT

/* * To change this template, choose Tools | Templates * and open the template in the editor. */package descuento.de.tienda;/** * * @author chris suarez */import java.io.*;public class DescuentoDeTienda { private static int a; /** * @param args the command line arguments */ public static void main(String[] args)throws IOException { int j; // TODO code application logic here do{ InputStreamReader isr=new InputStreamReader(System.in); BufferedReader br=new BufferedReader (isr); System.out.println("por favor introduce tu cantidad a pagar "); int g,h,d; int num1=Integer.parseInt(br.readLine()); System.out.println("por favor selecciona tu color de bolita "); System.out.println("'1' es bolita roja "); System.out.println("'2' es bolita amarilla "); System.out.println("'3' es bolita blanca "); int f=Integer.parseInt(br.readLine()); switch (f) { case 1: for(g=num1;g