DINO_CH

Untitled

Jan 30th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.91 KB | None | 0 0
  1. package br.teste;
  2. import java.util.*;
  3. public class Montante01 {
  4.  
  5.     public static void main(String[] args) {
  6.           final double taxa=0.015;
  7.            double tempo= 36.0;
  8.           String[]nome_Cliente=new String[5];
  9.           double[]capital=new double [5];
  10.          
  11.          
  12.           Scanner input=new Scanner(System.in);
  13.          
  14.           for(int i=0;i<nome_Cliente.length;i++){
  15.               System.out.println("Informe o nome do cliente n°"+(i+1)+":");
  16.               nome_Cliente[i]=input.nextLine();
  17.               }
  18.          
  19.           for(int j=0;j<capital.length;j++){
  20.               System.out.println("Informe o Capital aplicado do "+(j+1)+"°:");
  21.               capital[j]=input.nextDouble();
  22.             }
  23.           for(int h=0;h<capital.length;h++){
  24.               capital[h]=capital[h]*tempo*taxa;
  25.           }
  26.           for(int i=0;i<nome_Cliente.length;i++){
  27.               System.out.println(nome_Cliente[i]);
  28.              
  29.             for(int j=0;j<capital.length;j++) {
  30.                 System.out.println(capital[j]);
  31.                 if(j!=i){break;}
  32.             }
  33.           }
  34.     }
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment