Week3 Lab
Week3 Lab
2. You will ask the user his/her name initials, age, gpa, gender, id, year and the #credits he/she enrolled for this
semester. Then you will write a small report that gives information about the user according to the following
rules:
a. Input name, surname initials followed by a dot, age, year and gpa as the first line
b. Input gender on the second line.
c. Input id and #credits taken that semester on the third line.
d. Assume that you will read these data for two students. Then you will write a report about them.
Example run :
First Student:
Enter your name, surname initials followed by a dot, age, and gpa: A. K. 20 2 3.75
Enter your gender F(emale) M(ale): M
Enter your id and #credits you have taken this semester: 1234 28
Second Student:
Enter your name, surname initials followed by a dot, age, and gpa: Z. Z. 21 3 3.70
Enter your gender F(emale) M(ale): F
Enter your id and #credits you have taken this semester: 1342 27
Report:
=====================================================
First Student:
--------------
Name Surname: A. K. Gender: M
Age : 20 ID : 1234
Year :2 GPA : 3.75
You have taken 28 credits.
=====================================================
Second Student:
----------------
Name Surname: Z. Z. Gender: F
Age : 21 ID : 1342
Year :3 GPA : 3.70
You have taken 27 credits.