CSI 1390

Assignment 4

Due Date: 1 December 2006

Question 1

Write a Java program that takes as input a bank account balance and an interest rate and outputs the value of the balance in 5 years. The interest is compounded annually, which means that the interest is added once per year at the end of the year.

Question 2

Write Java program that reads a string of characters and writes the string in reverse order.

For example:

if the input string was: Hello Sir

then the output string will be: riS olleH

Question 3

Write a Java program that reads a word and converts all the characters to uppercase.

For example:

input string: Hello.

output string: HELLO

Question 4

Write a Java program that reads a string of characters and counts he number of vowels in a string and displays that count.