TOPIC

Na minha IDE está tudo certo mais aqui da 100% err

weslen asked 2 years ago

import java.io.IOException; import java.text.DecimalFormat; import java.util.Scanner;

/**

  • IMPORTANT:
  • O nome da classe deve ser "Main" para que a sua solução execute
  • Class name must be "Main" for your solution to execute
  • El nombre de la clase debe ser "Main" para que su solución ejecutar */ public class Main {

    public static void main(String[] args) throws IOException {

    Scanner sc = new Scanner(System.in);

    String a = sc.next();
    String b = sc.next();
    double c = Double.parseDouble(a);
    double d = Double.parseDouble(b);
    
    double e = c * 3.5;
    double f = d * 7.5;
    
    double g = (e + f) / 11;
    
    DecimalFormat df = new DecimalFormat("#.00000");
    df.format(g);
    
    System.out.println("MEDIA = " + df.format(g).replace("," , "."));

    }

}

Remember not post solutions. Your post may be reviewed by our moderators.

  • cantalupo replied 2 years ago

    Olá Wesley. Qual o ID é do exercício?

  • weslen replied 2 years ago

    Italo o ID é 1005