Create a function that prints a greeting | My Assignment Tutor

1) Create a function that prints a greeting when called with a name such as greeting (“Elona”) 2) Create a function that squares a double number and returns the result as a double. 3) Create a function that takes 5 int numbers and returns the average as a float 4) Create a single function that gives a greeting, calculates the average of 5 grades but does not return a value. Hint: Use return type void and a string and 5 intas parameters. 3) Create a function that takes a string and an int and repeats a greeting the number of times specified by the int. For example, calling the function with the statement: greet_n_times (“Elena”, 100): would cause a greeting “Hello Elena” to output 100 times. Hint: Put the greeting inside a for loop A n al weate a 10×10 times-table’ using a function that prints out the

QUALITY: 100% ORIGINAL PAPER – NO PLAGIARISM – CUSTOM PAPER

Leave a Reply

Your email address will not be published.