Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this ICE you will practice writing functions and follow guidelines discussed in class. Create the following functions and a main to test them.
In this ICE you will practice writing functions and follow guidelines discussed in class. Create the following functions and a main to test them. Functions: - Function called drawStars: this function returns nothing. It takes a non decimal number and when called will print stars equal to the value of its parameter. o For example drawStars(5) will generate the following output: ***** Function called printStatement: this function returns nothing. It takes a string parameter and print the contents of that string. o For example printStatement("This is ICE2") will generate the following output: This is ICE2 - Function called multiplyNumbers: this function takes two non decimal parameters, calculates and return their product (value of their multiplication). Overload the multiply Numbers to do the same job described in the previous step but using decimal parameters. - A palindrome is a word, phrase, number, or other sequences of characters which reads the same backward or forward. Examples include "radar", "level", and "deified". o Write a recursive method in Java named isPalindrome that takes a String as its parameter and returns a boolean value indicating whether the string passed is a palindrome or not. The function should be case insensitive and consider only alphabetic characters (ignoring spaces, punctuation, and numbers). isPalindrome ("Radar"); // Output: true // Output: false isPalindrome ("Hello"); isPalindrome ("A man, a plan, a canal, Panama!"); // Output: true - Each of your functions must have docstyle function headers.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Function called drawStars Java public static void drawStarsint n for int i 0 i n i System...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started