Source code for ScholarshipExample.java:

public class ScholarshipExample
{
	public static void main(String args[])
	{
		// ScholarshipExample
		boolean isAthlete;
		int SAT;
		int familyIncome;
		isAthlete = true;		// Change as needed.
		SAT = 1200;			// Change as needed.
		familyIncome = 100000;		// Change as needed.
		if (isAthlete || (SAT > 1400) || (familyIncome < 30000))
		{
			System.out.println("Scholarship");
		}
	}
}

Output from ScholarshipExample.java:

Scholarship

--- Output Ends ---

NOTE:

You are reading previously generated output. You are not currently running the ScholarshipExample application at the momement. You need to compile and run the source code first.

To run this program:


Authors: Kevin Chu and Eric Brower
Copyright 2000 Prentice Hall PTR