Welcome to the Ranch, alhaji conteh.
Here on JavaRanch, we're happy to help you learn and solve your Java problems, but we are not going to do your homework for you - you'll have to
do that yourself. Homework is for you to learn - if you let somebody else do it, you're not going to learn anything. Please
show some effort - what did you try, what didn't work, where do you get stuck? Don't just post the text of your homework assignment here, without even asking a question.