[Solved] Methods/functions Write a method that prints “Methods are my friend!”
Methods/functions
- Write a method that prints “Methods are my friend!”
- Write a method that takes in a number as a parameter and, based on that number, prints out “Methods are my friend” that number of times.
- Write a method that takes in a letter and returns whether or not that letter is a vowel.
- Write a method that takes in a number that represents a high school GPA and determines if that value is greater than 3.0
- Write a method that takes in the age of a person and prints out (not returns) whether they are over 65 years of age.
- Write a method that takes in the age of a person and returns the number of “Dog years” they are. For this, the persons age will be divided by 7.
Expert Answer
i) Write a method that prints “Methods are my friend!”
CODE:
public class first { //the method.....
OR