Subjects
PRICING
COURSES
SIGN IN
Start Free Trial
Aleksandar A.
Senior Software Engineer and Programmer
Tutor Satisfaction Guarantee
Java Programming
TutorMe
Question:

Write a Java function to test if a given item exists in a given array.

Aleksandar A.
Answer:

public boolean exists(int item, int[] arr) { for (int n : arr) { if (item == n) { return true; } } return false; }

Computer Science (General)
TutorMe
Question:

Which of the following are object-oriented programming languages: BASIC, C, C++, Fortran, Java, Pascal, PHP, Python, Ruby.

Aleksandar A.
Answer:

C++, Java, PHP, Python, Ruby.

C++ Programming
TutorMe
Question:

Write a C++ program to ask the user to input three integer values and print these values in reversed order.

Aleksandar A.
Answer:

#include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { int val1; int val2; int val3; cout <<"Please enter three numbers:"; cin >> val1 >> val2 >> val3; cout << "Reversed output:\n"; cout << val3 << "\n" << val2 << "\n" << val1 << "\n"; }

Send a message explaining your
needs and Aleksandar will reply soon.
Contact Aleksandar
Ready now? Request a lesson.
Start Session
FAQs
What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Session" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.