[solved] – Question 84994

Write a function called “getEvenNums” that accepts an array as a parameter and returns an
array of only even numbers extracted from the list. Your solution should use the “isEven”
function.

Expert Answer


[solved] – Question 84995

Write a function called “addTo” that will add a value to an array based on the position specified.
The function will accept three parameters, the array of values, the value to be entered, and a
string which identifies the position. The positions can be either ‘front’ or ‘back’. Invalid position
values should throw an exception with an appropriate message. You are expected to use the
appropriate methods of the array (list).

Expert Answer


[solved] – Question 84996

Write a function called “enqueue”, that will perform the enqueue operation on an array. The
array and the value to be enqueued is supplied through a parameter.

Expert Answer


[solved] – Question 84997

Write a function called “push”, that will perform the push operation on an array. The array and
the value to be enqueued is supplied through a parameter

Expert Answer


[solved] – Question 84998

Write a function called “sortNumArrAsc” that will sort an array of integers in ascending order.

Expert Answer


[solved] – Question 84999

Write a function called “sortStringArrDesc” that will sort an array of strings in descending order

Expert Answer


[solved] – Question 85000

Write a function called “sortNamesBySurnameAsc” that will receive an array of names by
surname then first name and sort it array in terms of ascending alphabetical order of surnames

Expert Answer


[solved] – Question 85022

Adam wants the program to:
repeatedly ask the user to input the winner of each game
stop asking for input when the Character ‘X’ is entered
add up the number of wins for each player as the winner of each game is inputted
display a message congratulating the player who won the most games or display a message saying that the match was tied

Expert Answer


[solved] – Question 85056

Melvin is very mad, his computer constantly freezes, reboots and operates in an unstable manner. He mentioned accessing the SETUP and changing some settings in order to comply with a game he bought on sale. What is likely the cause of the problem? What 2 questions would you ask Melvin? How you could solve the issue?

Expert Answer


[solved] – Question 851

Distinguish between Iteration and incrementation in Software Engineering

Expert Answer