Application - P...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
package homeWork6; import java.util.Scanner; i public class Application { p public static void main(String[] args) { PCBased theGame = new PCBased("Age of Empires", 128, 52, 1.2); int ram, size; double gh; Scanner console = new Scanner(; System.out.println("Enter your system RAM "); ram = console.nextInt(); System.out.println("Enter your system HD size"); size = console.nextInt(); System.out.println("Enter your processor speed"); gh = console.nextDouble(); PCBased yourSystem = new PCBased("Age of Empires", ram, size, gh);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: P if(yourSystem.getRam()>=theGame.getRam() && yourSystem.getSize()>=theGame.getSize()&&yourSystem.getGhz()>=theGame.getGhz()) { System.out.println("Your System Is Compatable"); System.out.println(yourSystem.toString()); } else { System.out.println("Your System Is Not Compatable"); System.out.println("Minimum Requirements: "); System.out.println(theGame.toString()); } } }...
View Full Document

This note was uploaded on 09/10/2009 for the course CS 102 taught by Professor Kanipiakins during the Spring '09 term at University of Maryland Baltimore.

Ask a homework question - tutors are online