First Assignment

First.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */ package first;   /** * @author mark */ import java.util.Scanner; public class First {   /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here int i; System.out.println("These are even numbers from […]

UseAuto Code

Auto.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */ package useauto;   /** * @author mark */ public abstract class Auto { private final String Make; protected double Price;   public Auto(String make) { Make = make; }   public String getMake() { return Make; } public Double getPrice() { return Price; […]

Billing Code

Main.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */ package billing;   /** * * @author mark */ public class Main {   /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here Billing bill1 = new Billing(3.00); Billing bill2 = […]

CreateBuildings Code

CreateBuildings.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */   package createbuildings;   /** * @author mark */ public class CreateBuildings { /** * @param args the command line arguments */ public static void main(String[] args) { Building[] buildings = new Building[6]; buildings[0] = new House(100, 1, 2, 1.5); buildings[1] = new […]

CollegeList Code

CollegeList.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */ package collegelist;   /** * * @author mark */ public class CollegeList {   /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here Person[] mark = new Person[4]; mark[0] = new […]

BloodData Code

TestPatient.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */ package blooddata;   /** * * @author mark */ public class TestPatient {   /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here Patient fred = new Patient(); Patient wilma = […]

CreateChair Code

CreateChair.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */   package createchair;s   /** * @author mark */ public class CreateChair { /** * @param args the command line arguments */ public static void main(String[] args) {   } }/* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */ package createchair;s […]

BirdSighting Code

BirdSighting.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */ package birdsighting;   /** * * @author mark */ public class BirdSighting {   /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here   Bird robin = new Bird(); Bird duck […]

CreateLoans Code

CreateLoans.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */   package createloans;   /** * @author mark */ public class CreateLoans { /** * @param args the command line arguments */ public static void main(String[] args) { Loan[] loans = new Loan[5];   loans[0] = new PersonalLoan(1, "Hesser", 34000, 5); loans[1] = […]

CreateCircle Code

CreateCircle.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */   package createcircle;   /** * @author mark */ public class CreateCircle { /** * @param args the command line arguments */ public static void main(String[] args) { Circle[] c = new Circle[2]; c[0] = new Circle("Red", 2); c[1] = new Cylinder("Red", 2, […]