Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Java HomeWork

eltom117
eltom117 


I attached the homework question . But I need to send the textbook where all the assignment questions are detailed, but its 19.3 MB zipped file. The usual file attachment can't handle it. Is there any way I can e-mail to you? and what is the e-mail address? Attachments Tags Clarifications

Answers

Assignment 9 - Solution

dickersonka
dickersonka 



Attached is the solution including source and comments to assignment 9. Attachments
Assignment9.zip (11 K) Download
Preview
(sMonth.equalsIgnoreCase("March")){ month = 3; }else if (sMonth.equalsIgnoreCase("April")){ month = 4; }else if (sMonth.equalsIgnoreCase("May")){ month = 5; }else if (sMonth.equalsIgnoreCase("June")){ month = 6; }else if (sMonth.equalsIgnoreCase("July")){ month = 7; }else if (sMonth.equalsIgnoreCase("August")){ month = 8; }else if (sMonth.equalsIgnoreCase("September")){

Preview
public static void main(String[] args){ FunnyConstructor fc = new FunnyConstructor(); fc.FunnyConstructor(); fc.FunnyConstructor(5);

Preview
} /** * Rational number as fraction * @return fraction */ public String toRationalString() { return numerator + "/" + denominator; } /** * Rational number as decimal * @param digits digits to display *

Preview
double length; private double width; public double getLength() { return length; } public void setLength(double length) { //between 0 and 20 if(length > 0 && length < 20){ this.length

Preview
TextIO.putln("Month name: " + date.toMonthNameString()); TextIO.putln("Julian: " + date.toJulian()); TextIO.putln(); date = new Date("December", 21, 2012); TextIO.putln("Using month name: new Date(\"December\", 21, 2012)"); TextIO.putln("Slash Date: " + date.toSlashDateString());

Preview
TextIO.putln(result.toFloatString(3)); TextIO.putln(); result = Rational.subtract(rat3, rat1); TextIO.putln(rat3.toRationalString() + " - " + rat1.toRationalString()); TextIO.putln(result.toRationalString()); TextIO.putln(result.toFloatString(3)); TextIO.putln(); result = Rational.multiply(rat3, rat1); TextIO.putln(rat3.toRationalString() + " x "

Preview
rect.setLength(10); rect.setWidth(5); TextIO.writeStandardOutput(); TextIO.putln("Rectangle Length = " + rect.getLength()); TextIO.putln("Rectangle Width = " + rect.getWidth()); TextIO.putln("Rectangle Perimiter = "

Preview
standard input. */ public static void readFile(String fileName) { if (fileName == null) // Go back to reading standard input readStandardInput(); else { BufferedReader newin; try { newin = new BufferedReader(new FileReader(fileName)); } catch (Exception e) {

Screenshots
Purchase Answer