Monday, August 25, 2014

// // 12 comments

Answers to Deitel's Java How to Program (9th Edition) Exercises

Answers to Deitel's Java How to Program (9th Edition) Exercises


Below are links to the answers to Deitel's Java How to Program (9th Edition) exercises that have been posted so far. This page is updated as more answers to the exercises are posted. You are "STRONGLY ADVISED" to try to solve the problem first before checking the solution. Note that there are multiple ways of solving problems. That is to say, you may have another way (maybe even better) of solving the problem(s). In such case(s) please let us know. Only answers to programs are provided here. Answers to self review exercises, multiple choice questions and theoretical questions are not provided. You can test run the programs online for free at ideone.com.


Chapter Two

Exercise 2.14 - Program to display the numbers 1-4 on screen using different print methods
Exercise 2.15 - Java program to perform simple arithmetics
Exercise 2.16 - Program to compare two numbers using java
Exercise 2.17 - Arithmetic smallest and largest program in Java
Exercise 2.18 - Simple java program to display shapes with asterisks
Exercise 2.24 - Program to find the maximum and minimum of any five integer numbers
Exercise 2.25 - Program to check if a number is odd or even
Exercise 2.26 - Program to check if a number is a multiple of another number
Exercise 2.27 - Checkerboard pattern of asterisks
Exercise 2.28 - Program to calculate the diameter, circumference and area of a circle
Exercise 2.29 - Program to display the integer equivalent of characters
Exercise 2.30 - Program to separate digits in an integer
Exercise 2.31 - Java program to print table of squares and cubes
Exercise 2.32 - Program to count number of negative, positive and zeros input
Exercise 2.33 - Body Mass Index (BMI) Calculator in Java
Exercise 2.34 - Java world population growth calculator
Exercise 2.35 - Car-Pools savings calculator

Chapter Three

Exercise 3.11 - Java gradebook program using instance variables
Exercise 3.13 - Program to show how to use constructors in Java
Exercise 3.13 - Program to create invoice of items sold in a store
Exercise 3.14 - Program to calculate and display employee salary
Exercise 3.15 - Java Program to display date

Chapter Four

Exercise 4.1 - Java GUI and graphics case study exercise

Chapter Five

Exercise 5.32 - Facebook user base growth calculator

12 comments:

  1. its nice post. I got help from this post. Mr abid

    ReplyDelete
    Replies
    1. Hi Abid. Thanks. I'm glad you found it helpful.

      Delete
  2. I do not have problems with the assignments although it takes me longer to solve some. I would like to know the answers to the exercise questions that do not have answers in the book. Do you know of any website that offers these answers?

    ReplyDelete
    Replies
    1. Hi Mahdi, I don't know any website that offer the answers free. The answers are on the Pearson's website but it is only for "Instructors". You can also find the answers on chegg but it is not free. There is also an incomplete set of answers on github (its free though).

      The answers are posted here FREE and with explanations where necessary. This page is updated as new answers are posted. So, bookmark this page/add it to your favourite sites and check back often. I'll try and post the answers to the next few chapters as soon as possible.

      Delete
  3. thank u so much, u r super
    I'm glad to find these info

    ReplyDelete
    Replies
    1. please sir give us solutions of chapter 10 polymorphism

      Delete
    2. Hi. I am very busy at the moment. I will post the solutions as soon as possible. Please do check back soon.

      Delete
  4. Anyone has solution to question 5.32? (making a difference section)

    ReplyDelete
    Replies
    1. Yes. I have solved it and added it to the list. You can check it out by clicking here.

      Delete
  5. Anyone has solution to question 10.17?

    ReplyDelete


DISCLAIMER: Opinions expressed in comments are those of the comment writers alone and does not reflect or represent the views of the post author. We reserve the right to delete any post deemed inappropriate or offensive and/or spammy. Please do not use abusive words/hate speech.

I Appreciate your valuable Feedback. So, Please DO NOT SPAM - Spam comments will be deleted immediately.

Don't use brand name in name field and you're not allowed to use links in comments unless it's necessary. Such comments will be removed immediately.

Thanks.