Hey I'm new to the forum I was wondering if someone could help me with a programming assignment.
I'm suppose to print out the following results in the following format and could use a little bit of help on the system.out.prinln. The numbers under the heading GPA, Total Hours, etc are all examples, i already completed the calculations and variable definitions.
Name: John Doe <---already know this, just example
SSN: 123456789 <----already know this, just example
<blank line>
Institution: GPA Total Hours Quality Points
3.23 30 97
<blank line>
Current: Course ID Hours Grade Points
-----------------------------------------------
cs1113 3 4 12
-----------------------------------------------
<blank line>
Cumulative: GPA Total Hours Quality Points
3.30 33 109
The numbers have to line up exactly underneath the headings and I have no idea on how to do this. I don't know how to print the "----" lines either, if someone knows and can help me with this i would greatly appreciate it.
I'm suppose to print out the following results in the following format and could use a little bit of help on the system.out.prinln. The numbers under the heading GPA, Total Hours, etc are all examples, i already completed the calculations and variable definitions.
Name: John Doe <---already know this, just example
SSN: 123456789 <----already know this, just example
<blank line>
Institution: GPA Total Hours Quality Points
3.23 30 97
<blank line>
Current: Course ID Hours Grade Points
-----------------------------------------------
cs1113 3 4 12
-----------------------------------------------
<blank line>
Cumulative: GPA Total Hours Quality Points
3.30 33 109
The numbers have to line up exactly underneath the headings and I have no idea on how to do this. I don't know how to print the "----" lines either, if someone knows and can help me with this i would greatly appreciate it.