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.

1. Create a method named myInfo that will print out your information: name, last name and section. Call
the method from the main method.
2. 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.
3. Create a method that will take an input number and return the result of a number raised to power 2.
Call the method from the main method and pass in 4 and assign the value to a new variable.
4. 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.
5. Create global variables Mean, Mode, Median, then create a method that takes an array of 10 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.
6. Create a method that takes an array of three elements and return an array encapsulating three
answers, the 1st index contains the average, the 2nd index contains the addition of the elements and
the 3rd index contains the multiplications of elements. (No need for implementation of averages,
additions and multiplications, calculate them manually and return the answers).
7. Create a method that takes an array of doubles and return the minimum index.
8. Create a method that takes an array of integers and swap the first index with the last index.
9. 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.
10. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!