/* CST8110 - Introduction to Computer Programming
 * Section: 800
 * Semester: 20W
 * Professor: Piyush Jangam
 * Student ID: 040750891
 * Student Email: ross0272@algonquinlive.com
 * Assignment 1
 */

public class Assignment1 {

    public static void main(String[] args) {
        //Declare variables to by used in the method
		String prefix = "Student ID:"; //Displays identifying information about the data
		int studentID = 40750891; //The ID number for the relevant student
		int idRemainder = studentID % 10; //The last digit of the Student ID Number

		//Print the relevant data
		System.out.printf("%018d%n", studentID); //Displays the Student ID# in an 18 character field with leading zeros
		studentID += idRemainder; //Adds the last digit to the original Student ID#
		System.out.printf("%18d%n", studentID); //Displays the new number in an 18 character field with leading whitespace
		studentID -= idRemainder; //Subtracts the last digit, reverting back to the original Student ID#
		System.out.printf(prefix + " %d%n", studentID); //Prints the Student ID# with identifying text
	}
}