Enable contrast version

# Tutor profile: Akila S.

Inactive
Akila S.
Math and Computer Science Tutor
Tutor Satisfaction Guarantee

## Questions

### Subject:Java Programming

TutorMe
Question:

Create a simple function to determine whether a number is even or odd (pseudocode)

Inactive
Akila S.

public class EvenOddTest{ public static void main (String args[]) { OUTPUT "enter any number" INPUT randomInteger IF randomInteger % 2 = 0 THEN{ OUTPUT "the number is even" } else{ OUTPUT "the number is odd" } } }

### Subject:Calculus

TutorMe
Question:

What is (x^8) times (x^7)?

Inactive
Akila S.

Using the properties of exponents, (x^a) times (x^b) = x^(a+b) Therefore (x^8) times (x^7) equals x^15

### Subject:C++ Programming

TutorMe
Question:

Why would you use a vector over an array?

Inactive
Akila S.

While vectors and arrays serve similar functions, under certain circumstances, one may be more beneficial than the other. Typically, arrays are more advantageous when you know how much memory needs to be allocated beforehand, as overall runtime tends to be better in this case. Vectors, however, give you the added benefits of being able to add or remove elements as desired and resize it, which is more beneficial when you are working with an unknown amount of data.

## Contact tutor

Send a message explaining your
needs and Akila will reply soon.
Contact Akila