TutorMe homepage
Subjects
PRICING
COURSES
SIGN IN
Start Free Trial
Muhammed A.
Class toppr in University College
Tutor Satisfaction Guarantee
Java Programming
TutorMe
Question:

Find Largest and Smallest Number in an Array

Muhammed A.
Answer:

public class FindLargestSmallestNumber { public static void main(String[] args) { //array of 10 numbers int numbers[] = new int[]{32,43,53,54,32,65,63,98,43,23}; //assign first element of an array to largest and smallest int smallest = numbers[0]; int largetst = numbers[0]; for(int i=1; i< numbers.length; i++) { if(numbers[i] > largetst) largetst = numbers[i]; else if (numbers[i] < smallest) smallest = numbers[i]; } System.out.println("Largest Number is : " + largetst); System.out.println("Smallest Number is : " + smallest); } }

Electrical Engineering
TutorMe
Question:

How much power is consumed by an inductor?

Muhammed A.
Answer:

zero

C++ Programming
TutorMe
Question:

write a circular array?

Muhammed A.
Answer:

#define ARR_LEN 19 int arr[ARR_LEN]; int idx = 0; void insert(int value); int main(void) { for (int i = 0; i < ARR_LEN + (ARR_LEN / 2); i++) { insert(i); } return 0; } void insert(int value) { arr[idx] = value; if (idx == ARR_LEN - 1) idx = 0; else idx++; }

Send a message explaining your
needs and muhammed will reply soon.
Contact muhammed
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.