//
// Program to Scale Grades
//
// Thanks to Joe Doheney from CS103 Fall 2004
// for the solution to the grade scaling program.
//
// The program could be improved by using end of
// file detection to read the grades coupled with
// a size variable, but it was great work for
// ten minutes of effort!
//

import java.util.*;

public class ProgramToScaleGrades
{
    public static void main(String[]args)
    {
        Scanner input = new Scanner(System.in);

        int numGrades;

        System.out.print("How many grades? ");
        numGrades = input.nextInt();

        double grades[] = new double[numGrades];
        double scale;

        System.out.print("Enter " + numGrades + " grades: ");
        for(int i=0;i<numGrades;i++)
        {
            grades[i] = input.nextDouble();
        }


        System.out.print("Enter the amount of points to scale the grades up: ");
        scale = input.nextInt();

        System.out.println("Scaled scores: ");


        for (int i=0;i<numGrades;i++)
        {
                System.out.print(grades[i] + scale + " ");
        }
    }
}