
error en linea 32-java.lang.RuntimeException:
Publicado por m (3 intervenciones) el 25/09/2017 20:25:19
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* 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 ejercicio5Sueldo;
//Desarrrollo del ejercicio 5
/*Curso:Martes y Viernes
Alumno: */
import java.util.Scanner;
/**
*
* @author Tan3Dey
*/
public class Ejercicio5Sueldo {
public static void main (String args[])
{
float monto, venta1, venta2, venta3, ventas, sueldo;
Scanner teclado = new Scanner (System.in);
System.out.println("Ingrese monto en pesos($): ");
monto = teclado.nextInt();
System.out.println("Ingrese venta 1: ");
venta1 = teclado.nextInt();
System.out.println("Ingrese venta 2: ");
venta2 = teclado.nextInt();
System.out.println("Ingrese venta 3: ");
venta3 = teclado.nextInt();
ventas = venta1+venta2+venta3;
sueldo = monto + (0,10*ventas);
System.out.println(" Tu sueldo es de $ " + sueldo);
}
}
Valora esta pregunta


0