Presentation is loading. Please wait.

Presentation is loading. Please wait.

Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved. 0136012671 1 Java Programming Practice.

Similar presentations


Presentation on theme: "Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved. 0136012671 1 Java Programming Practice."— Presentation transcript:

1 Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved. 0136012671 1 Java Programming Practice 1. Write a Java program to calculate the age of persons with using the birth date. Then print the result on the output consul. Output: My Birth Date is 1987 So I’m 21 Years Old

2 Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved. 0136012671 2 Java Programming Practice 2. Write a Java program to calculate the following Formula. Where: a=3 b=8 c=10 x=5 Output: The Result is Y=4.25

3 Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved. 0136012671 3 Java Programming Practice 3. Write a Java program to show interest on a sample account balance of $100.0 with a fixed interest rate %2.5. Output: On a balance of $100.0 you will earn interest of $2.5 All in just one short year.


Download ppt "Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved. 0136012671 1 Java Programming Practice."

Similar presentations


Ads by Google