/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
// Import each required Java class
import java.util.Scanner;
/**
* Week2Homework1
*/
public class Week2Homework1.java;
{
public static void main
(String[] args
) {
// Variables to hold values
int studentEMPLID = 0;
double quiz1score = 0.0;
double quiz2score = 0.0;
double quiz3score = 0.0;
int yourage = 0;
double currenttempC = 0.0;
double currenttempF = (9*(currenttempC/5)+32);
// Use the Scanner class to perform the same functionality
Scanner scannerIn
= new Scanner
(System.
in);
// Prompt the user to enter birth year
System.
out.
println("Enter your Student EMPLID (0 - 999999):"); // the nextInt() method scans the next int value
studentEMPLID = scannerIn.nextInt();
// Prompt the user to enter birth month
System.
out.
println("Enter your quiz1 percentage score (0.0 – 100.0): "); // the nextInt() method scans the next int value
quiz1score = scannerIn.nextInt();
// Prompt the user to enter another day of the month of birth
System.
out.
println("Enter your quiz2 percentage score (0.0 – 100.0): "); // the nextInt() method scans the next int value
quiz2score = scannerIn.nextInt();
// Prompt the user to enter latitude of home
System.
out.
println("Enter your quiz3 percentage score (0.0 – 100.0) "); // the nextDouble() method scans the next double value
quiz3score = scannerIn.nextDouble();
// Prompt the user to enter longitude of home
System.
out.
println("Enter your age in months (0-1440): "); // the nextDouble() method scans the next double value
quiz3score = scannerIn.nextDouble();
// Prompt the user to enter a GPA
System.
out.
println("Enter the current Temperature in degrees Celsius: "); // the nextDouble() method scans the next double value
currenttempC = scannerIn.nextDouble();
// Print the results to verify your data
System.
out.
println("*********Thank you for entering your information ***************"); System.
out.
println("You have entered the following data:"); System.
out.
println("Your Student EMPLID: " + studentEMPLID
); System.
out.
println("Quiz 1 score: " + quiz1score
); System.
out.
println("Quiz 2 score: " + quiz2score
); System.
out.
println("Quiz 3 score: " + quiz3score
); System.
out.
println("Temperature in Celsius: " + currenttempC
); System.
out.
println("Temperature in Fahrenheit: " + currenttempF
);
}
}