Question: 1 . Create a method named myInfo that will print out your information: name, last name and section. Call the method from the main method.
Create a method named myInfo that will print out your information: name, last name and section. Call
the method from the main method.
Create a method that will add two numbers and print out the answer. Call the method from the main
method and pass in two inputs.
Create a method that will take an input number and return the result of a number raised to power
Call the method from the main method and pass in and assign the value to a new variable.
Create a method that takes three strings firstName middleName lastName and return a string
fullName that concatenates firstName middleName and lastName. Call the method from the main
method and pass your firstName MiddleName and LastName. Assign the results to an officialName
variable.
Create global variables Mean, Mode, Median, then create a method that takes an array of double
numbers and return three answers of the Mean, Median, Mode no need for implementation of the
mean, median and mode, calculate them manually and return the answers assign the answers to the
global variables.
Create a method that takes an array of three elements and return an array encapsulating three
answers, the st index contains the average, the nd index contains the addition of the elements and
the rd index contains the multiplications of elements. No need for implementation of averages,
additions and multiplications, calculate them manually and return the answers
Create a method that takes an array of doubles and return the minimum index.
Create a method that takes an array of integers and swap the first index with the last index.
Create a method that will take an array of integers and an integer, the method returns a Boolean result
indicating if the integer exists in the array or not.
Create a method that takes an array of doubles and returns it an array of integer.
Test the methods in the main method with proper values
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
