-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathStore.java
More file actions
25 lines (19 loc) · 729 Bytes
/
Store.java
File metadata and controls
25 lines (19 loc) · 729 Bytes
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
public class Store {
public static void main(String[] args) {
/*Se crea un array para el producto */
int[] PrecioProductos = {13,3,5};
/*Se crea el array cantidad de productos
para verificar cuantos productos se venden*/
int[] CantidadProductos = {2,3,4};
int totalVentas=0;
/*Se hace el calculo para verificar la cantidad de productos vendidos */
for(int i=0; i< PrecioProductos.length;i++){
totalVentas += PrecioProductos[i]*CantidadProductos[i];
}
if (totalVentas > 50) {
System.out.println("Good sales performance");
} else {
System.out.println("Low sales performance");
}
}
}