DemoCabinRental Code

DemoCabinRental.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */ package democabinrental;   /** * * @author mark */ public class DemoCabinRental {   /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here CabinRental cabin1 = new CabinRental(1); CabinRental cabin4 = […]

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; […]

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 […]

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 […]

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 = […]

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 […]

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 = […]

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] = […]