CSIT121 Fall 2018 Lab Task 04 Code.pdf - Student Information Student\u2019s full name Fabian Baxter Morais Student's UOW ID Number 6626371 Modification

CSIT121 Fall 2018 Lab Task 04 Code.pdf - Student...

This preview shows page 1 - 4 out of 13 pages.

/* * Student Information: * Student’s full name: Fabian Baxter Morais * Student's UOW ID Number: 6626371 * Modification Date: 12.October.2018 * Purpose of this file (or program): */ package csit121_labtask4; public class Customer { public int Id; public String Name,ContactNo; public double amountDue,amountPaid; public Customer() { this.Id=0; this.Name=""; this.ContactNo=""; this.amountDue=0.00; this.amountPaid=0.00; } public void setId(int Id) { this.Id=Id; } public void setName(String Name) { this.Name=Name; } public void setContactNo(String ContactNo) { this.ContactNo=ContactNo;
Image of page 1
} public void setAmountDue(double AmountDue) { this.amountDue=AmountDue; } public void setAmountPaid(double AmountPaid) { this.amountPaid=AmountPaid; } public double getBalanceDue() { double Balance=this.amountDue-this.amountPaid; return Balance; } public int getId() { return this.Id; } @Override public String toString() { return "Customer Id:"+this.Id+"\nName:"+this.Name +"\nContact No:"+this.ContactNo+"\nAmount Due:" +this.amountDue+"\nAmount Paid:"+this.amountPaid +"\nBalance: "+getBalanceDue(); } }
Image of page 2
/* * Student Information: * Student’s full name: Fabian Baxter Morais * Student's UOW ID Number: 6626371 * Modification Date: 14.October.2018 * Purpose of this file (or program): */ package csit121_labtask4; import java.io.*; import java.util.*; import java.lang.*; import java.util.InputMismatchException;
Image of page 3
Image of page 4

You've reached the end of your free preview.

Want to read all 13 pages?

  • Three '19
  • Filename extension, @author, @Override, public class Customer, Fabian Baxter Morais

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture