Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Data structures abstraction and design using java 2nd edition solutions

16/10/2021 Client: muhammad11 Deadline: 2 Day

Write A JAVA Program

Write a JAVA program to solve the following problem. Your program should properly

compile and run. Your code MUST follow the documentation style used in your textbook.

You need to upload into Moodle the following:

The electronic version of your SINGLE source code file after you successfully

compiled and ran it. Please label your file appropriately.

i do the first steps you will find in the file name lab1

ATMbankAmerica.java
ATMbankAmerica.java
package KW . CH01 ;

/**
* The class ATMbankAmerica
*/
public class ATMbankAmerica implements ATM {
// Insert solution to programming exercise 4, section 1, chapter 1 here
// The following are all dummy methods
/**
* Allows the user to select an account.
* @return a String representing the account selected
*/
@ Override
public String selectAccount () {
return null ;
}

/**
* Withdraws a specified amount of money
* @param account The account from which the money comes
* @param amount The amount of money withdrawn
* @return Whether or not the operation is successful
*/
@ Override
public boolean withdraw ( String account , double amount ) {
return false ;
}

/**
* Displays the result of an operation
* @param account The account for the operation
* @param amount The amount of money
* @param success Whether or not the operation was successful
*/
@ Override
public void display ( String account , double amount , boolean success ) {
}

/**
* Displays the result of a PIN verification
* @param pin The user's pin
* @param success Whether or not the PIN was valid
*/
@ Override
public void display ( String pin , boolean success ) {
}

/**
* Displays an account balance
* @param account The account selected
*/
@ Override
public void showBalance ( String account ) {
}
}
Circle.java
Circle.java
// Insert solution to programming exercise 1, section 8, chapter 1 here
Computer.java
Computer.java
/*

*/
/**
* Listing 1.2
* @author Koffman & Wolfgang
*/
package KW . CH01 ;

/**
* Class that represents a computer.
*/
public class Computer {
// Data Fields

private String manufacturer ;
private String processor ;
private double ramSize ;
private int diskSize ;
private double processorSpeed ;

// Methods
/**
* Initializes a Computer object with all properties specified.
* @param man The computer manufacturer
* @param processor The processor type
* @param ram The RAM size
* @param disk The disk size
* @param procSpeed The processor speed
*/
public Computer ( String man , String processor , double ram ,
int disk , double procSpeed ) {
manufacturer = man ;
this . processor = processor ;
ramSize = ram ;
diskSize = disk ;
processorSpeed = procSpeed ;
}

// Insert solution to programming exercise 1, section 3, chapter 1 here
public double computePower () {
return ramSize * processorSpeed ;
}

public double getRamSize () {
return ramSize ;
}

public double getProcessorSpeed () {
return processorSpeed ;
}

public int getDiskSize () {
return diskSize ;
}

// Insert other accessor and modifier methods here.
// Insert solution to programming exercise 1, section 2, chapter 1 here

// Insert solution to programming exercise 2, section 3, chapter 1 here
// Inset solution to self-check exercise 2, section 3, chapter 1 here
public String toString () {
String result = "Manufacturer: " + manufacturer + "\nCPU: "
+ processor + "\nRAM: " + ramSize + " gigabytes"
+ "\nDisk: " + diskSize + " gigabytes"
+ "\nProcessor speed: " + processorSpeed + " gigahertz" ;

return result ;
}

/**/
/**
* Compares power of this computer and it argument
* computer
*
* @param aComputer The computer being compared to this computer
*
* @return -1 if this computer has less power, 0 if the same, and
* +1 if this computer has more power.
*/
public int comparePower ( Computer aComputer ) {
if ( this . computePower () < aComputer . computePower ()) {
return - 1 ;
} else if ( this . computePower () == aComputer . computePower ()) {
return 0 ;
} else {
return 1 ;
}
}

/**/
// Insert solution to programming exercise 1, section 5, chapter 1 here
}
/*

*/
Notebook.java
Notebook.java
/**/
/**
* Listing 1.3
* @author Koffman and Wolfgang
*/
package KW . CH01 ;

/**
* Class that represents a notebook computer.
*/
public class Notebook extends Computer {
// Data Fields

private double screenSize ;
private double weight ;

// Methods
/**
* Initializes a Notebook object with all properties specified.
* @param man The computer manufacturer
* @param proc The processor type
* @param ram The RAM size
* @param disk The disk size
* @param procSpeed The processor speed
* @param screen The screen size
* @param wei The weight
*/
public Notebook ( String man , String proc , double ram , int disk ,
double procSpeed , double screen , double wei ) {
super ( man , proc , ram , disk , procSpeed );
screenSize = screen ;
weight = wei ;
}

// Insert solution to programming exercise 1, section 3, chapter 1 here

// Insert solution to programming exercise 2, section 2, chapter 1 here

// Insert solution to programming exercise 3, section 3, chapter 1 here

// Insert solution to programming exercise 2, section 5, chapter 1 here
}
/*

*/
Notebook2.java
Notebook2.java
/**/
/**
* Listing 1.4
* @author Koffman and Wolfgang
*/
package KW . CH01 ;

/**
* Class that represents a notebook computer.
*/
public class Notebook2 extends Computer {
// Data Fields

private static final String DEFAULT_NB_MAN = "MyBrand" ;
private double screenSize ;
private double weight ;

// Methods
/**
* Initializes a Notebook object with all properties specified.
* @param man The computer manufacturer
* @param proc The processor type
* @param ram The RAM size
* @param disk The disk size
* @param procSpeed The processor speed
* @param screen The screen size
* @param wei The weight
*/
public Notebook2 ( String man , String proc , double ram , int disk ,
double procSpeed , double screen , double wei ) {
super ( man , proc , ram , disk , procSpeed );
screenSize = screen ;
weight = wei ;
}

/** Initializes a Notebook object with 6 properties specified. */
public Notebook2 ( String proc , int ram , int disk ,
double procSpeed , double screen , double wei ) {
this ( DEFAULT_NB_MAN , proc , ram , disk , procSpeed , screen , wei );
}

@ Override
public String toString () {
String result = super . toString () + "\nScreen size: "
+ screenSize + " inches" + "\nWeight: " + weight
+ " pounds" ;

return result ;
}

// Insert solution to programming exercise 2, section 2, chapter 1 here
}
/*

*/
Person.java
Person.java
package KW . CH01 ;

/**
* Person is a class that represents a human being.
*
* @author Koffman and Wolfgang
*/
public class Person {
// Constants

/**
* The age at which a person can vote
*/
private static final int VOTE_AGE = 18 ;
/**
* The age at which a person is considered a senior citizen
*/
private static final int SENIOR_AGE = 65 ;
// Data Fields
/**
* The given name
*/
private String givenName ;
/**
* The family name
*/
private String familyName ;
/**
* The ID number
*/
private final String IDNumber ;
/**
* The birth year
*/
private int birthYear = 1900 ;

// Constructors
/**
* Construct a person with given values
*
* @param given The given name
* @param family The family name
* @param ID The ID number
* @param birth The birth year
*/
public Person ( String given , String family , String ID , int birth ) {
givenName = given ;
familyName = family ;
IDNumber = ID ;
birthYear = birth ;
}

/**
* Construct a person with only an IDNumber specified.
*
* @param ID The ID number
*/
public Person ( String ID ) {
IDNumber = ID ;
}

// Modifier Methods
/**
* Sets the givenName field.
*
* @param given The given name
*/
public void setFirstName ( String given ) {
givenName = given ;
}

/**
* Sets the familyName field.
*
* @param family The family name
*/
public void setLastName ( String family ) {
familyName = family ;
}

/**
* Sets the birthYear field.
*
* @param birthYear The year of birth
*/
public void setBirthYear ( int birthYear ) {
this . birthYear = birthYear ;
}

// Accessor Methods
/**
* Gets the person's given name.
*
* @return the given name as a String
*/
public String getGivenName () {
return givenName ;
}

/**
* Gets the person's family name.
*
* @return the family name as a String
*/
public String getFamilyName () {
return familyName ;
}

/**
* Gets the person's ID number.
*
* @return the ID number as a String
*/
public String getIDNumber () {
return IDNumber ;
}

/**
* Gets the person's year of birth.
*
* @return the year of birth as an int value
*/
public int getBirthYear () {
return birthYear ;
}

// Other Methods
/**
* Calculates a person's age at this year's birthday.
*
* @param year The current year
*
* @return the year minus the birth year
*/
public int age ( int year ) {
return year - birthYear ;
}

/**
* Determines whether a person can vote.
*
* @param year The current year
*
* @return true if the person's age is greater than or equal to the voting
* age
*/
public boolean canVote ( int year ) {
int theAge = age ( year );

return theAge >= VOTE_AGE ;
}

/**
* Determines whether a person is a senior citizen.
*
* @param year the current year
*
* @return true if person's age is greater than or equal to the age at which
* a person is considered to be a senior citizen
*/
public boolean isSenior ( int year ) {
return age ( year ) >= SENIOR_AGE ;
}

/**
* Retrieves the information in a Person object.
*
* @return the object state as a string
*/
@ Override
public String toString () {
return "First name: " + givenName + "\n" + "Last name: "
+ familyName + "\n" + "ID number: " + IDNumber + "\n"
+ "Year of birth: " + birthYear + "\n" ;
}

/**
* Compares two Person objects for equality.
*
* @param per The second Person object
*
* @return true if the Person objects have same ID number; false if they
* don't
*/
public boolean equals ( Person per ) {
if ( per == null ) {
return false ;
} else {
return IDNumber . equals ( per . IDNumber );
}
}

// Insert solution to programming exercise 2, section 1, chapter 1 here
public int compareTo ( Person per ) {
if ( familyName . compareTo ( per . familyName ) == 0 ) {
return givenName . compareTo ( per . givenName );
} else {
return familyName . compareTo ( per . familyName );
}
}

// Insert solution to programming exercise 3, section 1, chapter 1 here
public void changeFamilyName ( boolean justMarried , String newFamily ) {
if ( justMarried ) {
familyName = newFamily ;
}
}
}
Question1_3_3.java
Question1_3_3.java
// Inset solution to self-check exercise 3, section 3, chapter 1 here
Resizable.java
Resizable.java
// Insert solution to programming exercise 1, section 1, chapter 1 here
RtTriangle.java
RtTriangle.java
// Insert solution to programming exercise 2, section 8, chapter 1 here
Vegetable.java
Vegetable.java
// Insert solution to programming exercise 1, section 4, chapter 1 here
AbstractComputer.java
AbstractComputer.java
// Insert solution to programming exercise 2, section 4, chapter 1 here
Airplane.java
Airplane.java
package KW . CH01 ;

/**
* Class Airplane example for Exercise 1.5.3
*/
public class Airplane {

private Engine eng ;
private Rudder rud ;
private Wing [] wings = new Wing [ 2 ];

// Insert solution to programming exercise 3, section 5, chapter 1 here
}

// Dummy classes to allow exercise to compile
class Engine {
}

class Rudder {
}

class Wing {
}

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Write My Coursework
Professional Accountant
Accounting & Finance Specialist
Writing Factory
Ideas & Innovations
Coursework Helper
Writer Writer Name Offer Chat
Write My Coursework

ONLINE

Write My Coursework

I have read your project description carefully and you will get plagiarism free writing according to your requirements. Thank You

$45 Chat With Writer
Professional Accountant

ONLINE

Professional Accountant

After reading your project details, I feel myself as the best option for you to fulfill this project with 100 percent perfection.

$50 Chat With Writer
Accounting & Finance Specialist

ONLINE

Accounting & Finance Specialist

I am an elite class writer with more than 6 years of experience as an academic writer. I will provide you the 100 percent original and plagiarism-free content.

$17 Chat With Writer
Writing Factory

ONLINE

Writing Factory

I am an experienced researcher here with master education. After reading your posting, I feel, you need an expert research writer to complete your project.Thank You

$26 Chat With Writer
Ideas & Innovations

ONLINE

Ideas & Innovations

I reckon that I can perfectly carry this project for you! I am a research writer and have been writing academic papers, business reports, plans, literature review, reports and others for the past 1 decade.

$41 Chat With Writer
Coursework Helper

ONLINE

Coursework Helper

I can assist you in plagiarism free writing as I have already done several related projects of writing. I have a master qualification with 5 years’ experience in; Essay Writing, Case Study Writing, Report Writing.

$27 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Case study of motorola company - Parallelogram law of forces in tamil - Mansfield opticians wells somerset - The last dance 10th edition pdf - Human Resource- Discussion Questions - Contrasting local and public test blockchains - Give you blue allen stone chords - A beautiful mind discussion questions - Health and safety management plan template - PA 2 Paper - Business Research Methodology - Putting the brakes on teenage driving - I need 800 words essay on the Book Born A Crime with the topic being race - On the fahrenheit scale water freezes at - Theory based on human properties - Organizational culture survey tool for ebp examples - Hindsight bias ap psychology - Public boolean record int score - Karen horney theory of personality summary - Psychology nature vs nurture assignment - Apply the compound frame black picture style - Chemistry current event articles - Questions about the food chain - Pr 2 3a journal entries and trial balance - Color blind powerpoint slides - Mainstream internet harrison county indiana - Is linear perspective monocular or binocular - Leading with values IP - Ethan allen gentleman worksheet answers - Chisholm online study periods - Shadow health health history tina jones - Macroeconomics - Palo alto email reports - The operating cycle of a merchandising company - Epidemiology SLP 4 - Book review - Spin master hong kong office - Resource pooling architecture in cloud computing - Francis turbine experiment report - HELP - Compass maritime services - Sra lugones el pollo asado por favor - Which statement about the cell membrane is true - Lee medical abbreviation eye - Gainmax shelf tech system - Minitab cause and effect diagram - Analysis of aluminum zinc alloy lab - Test presence of hydrogen gas - Save my exams physics - The last dance encountering death and dying quiz - Asymptote of tan graph formula - ?? same-day +27833173182 BUTHA BUTHE ABORTION CLINIC // PILLS,,,, - Xamarin free vs paid - Simply fertility baddow hospital - Simms minimec injector pump manual - Charlie and the chocolate factory homework - Brain candy questions and answers - Why is training a critical strategic issue for organizations - How to use windows powershell ise - Pill bug experiment with sand and cornstarch - How to write a ted talk essay - Beauty and the beast jeanne-marie leprince de beaumont analysis - Week 4 MF - Memo - Reconciliation action plan template - NURS 6003/NURS 6003A/NURS 6003F/NRSE 6003C/NURS 6003N/NURS 6003C: Transition to Graduate Study for Nursing - Macbeth observation interpretation and critique - Critical Investigation - Ramjee parajulee - Forecast of computer crime - Evaluate the responses of the motor carrier Industry following the attack of 9/11 - Edgar schein career anchors - Apple supply chain management case study - Great spirits have always encountered violent opposition meaning - Principles of organizational behaviour ppt - Pole meant to signify afterlife - Clark industries has a defined benefit pension plan - Lorem - Pride and Prejudice. - Parallel plot structure definition - Corporate parenting strategy definition - Profile of a Sacred Space - Mamawawa - Tri component model of attitudes - 3 determine the percentage of hydrogen peroxide in your solution - Chapter 3 economics answers - Polit and beck 2017 citation - The hobbyist timber supply store - Admission essay writing service - Nike inc cost of capital excel - Chipotle competitive strength assessment - Metal that burns green - Rc circuit and current conceptual question mastering physics - Famous lines from waiting for godot - Criminal Homework help - Freak the mighty chapter 16 summary - Kit kat brand positioning - MKT 301- Discussion 5 - Vnxe3200 latest firmware version - Multifactor leadership questionnaire rater form mlq rater form - Masters in social science ucc