-
Notifications
You must be signed in to change notification settings - Fork 0
/
Example4.java
81 lines (63 loc) · 2.61 KB
/
Example4.java
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<<<<<<< HEAD
import java.util.Scanner;
public class Example4 {
public static void main(String[] args)
{
Scanner enter = new Scanner(System.in);
String fstname, lstname, logname;
double grade, gpa;
int idnum;
System.out.println("Please enter the following innformation for the processing of your form\n");
System.out.println("First name:");
fstname = enter.nextLine();
System.out.println("Last name:");
lstname = enter.nextLine();
System.out.println("Login name:");
logname = enter.nextLine();
System.out.println("Grade(4 - 20):");
grade = enter.nextDouble();
System.out.println("Student ID:");
idnum = enter.nextInt();
System.out.println("GPA:");
gpa = enter.nextDouble();
System.out.println("\n");
System.out.println("Your summarised information include:\n");
System.out.println("Your Name is: " + lstname + ", " + fstname );
System.out.println("Your Grade is: " + grade);
System.out.println("Your Student ID is: " + idnum);
System.out.println("Your Login name is: " + logname);
System.out.println("Your GPA is: " + gpa);
}
}
=======
import java.util.Scanner;
public class Example4 {
public static void main(String[] args)
{
Scanner enter = new Scanner(System.in);
String fstname, lstname, logname;
double grade, gpa;
int idnum;
System.out.println("Please enter the following innformation for the processing of your form\n");
System.out.println("First name:");
fstname = enter.nextLine();
System.out.println("Last name:");
lstname = enter.nextLine();
System.out.println("Login name:");
logname = enter.nextLine();
System.out.println("Grade(4 - 20):");
grade = enter.nextDouble();
System.out.println("Student ID:");
idnum = enter.nextInt();
System.out.println("GPA:");
gpa = enter.nextDouble();
System.out.println("\n");
System.out.println("Your summarised information include:\n");
System.out.println("Your Name is: " + lstname + ", " + fstname );
System.out.println("Your Grade is: " + grade);
System.out.println("Your Student ID is: " + idnum);
System.out.println("Your Login name is: " + logname);
System.out.println("Your GPA is: " + gpa);
}
}
>>>>>>> 9aa901697f8b2b9364b7d06d3ed6430d8ad3b88c