001    package classwork;
002    import java.util.*;
003    /**
004     * Tests the Paycheck class.
005     * @author Tom James
006     *
007     */
008    public class PaycheckTester {
009    
010            /**
011             * @param args
012             */
013            public static void main(String[] args) {
014                    // TODO Auto-generated method stub
015                    Scanner in = new Scanner(System.in);
016                    String name;
017                    double wage,hours;
018                    name = in.nextLine();
019                    wage = in.nextDouble();
020                    hours = in.nextDouble();
021                    Paycheck dog = new Paycheck(name,wage,hours);
022                    System.out.println(dog.getName() + ", your paycheck is for:");
023                    System.out.println("$" + dog.getCash());
024            }
025    
026    }