Respuesta :

import java.util.Scanner;

public class Lab04b_Numbers {

   

   public static void main(String[] args) {

       Scanner keyboard = new Scanner(System.in);

       System.out.print("Enter your GPA: ");

       double gpa = keyboard.nextDouble();

       System.out.print("Enter cost of a new car: ");

       double cost = keyboard.nextDouble();

       System.out.print("Enter average amount of rain this month: ");

       double rain = keyboard.nextDouble();

       System.out.print("What is your average for history class: ");

       double avg = keyboard.nextDouble();

       System.out.println("In 2020 a car cost $"+cost+".");

       System.out.println("Wow "+gpa+" GPA is good, but "+rain+" inches is bad.");

       System.out.println("Now only "+avg+" percent of people like tacos.");

       System.out.println("Sorry for the "+gpa+" percent who don't.");

       System.out.println(rain+", "+gpa+" or "+avg+" which do you want for a grade?");

   }

   

}

I think this is what you're looking for. Best of luck.