Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a Program in Java to take a number as input then display the highest dighit it has...

Use following method prototype: int highest (int n)


No one likes homework, but your math teacher has given you an assignment to find the sum of the first N numbers.


Let’s save some time by creating a program to do the calculation for you!


Take a number N as input and output the sum of all numbers from 1 to N (including N).


Sample Input

100


Sample Output

5050


Explanation: The sum of all numbers from 1 to 100 is equal to 5050.


Wap to create Shape class. It has two data member function. area() and display(). Area is dummy function. And Display only working. And derived another class Circle. Which also two member function area() display1(). By using abstract class display area of circle and as well as display function of Base class


create Father class and Son class derived from that Father class. Has same member function activity. Father activity is go to office. Student Task is goto Schoo.


1. Wap to display the only Son task without display the father activity by using virtual function.


2. Wap to display only Father activity without display son activity using virtual function.


3. Wap to display Both father and son activity by using virtual function.



1.    The purpose of a sorting algorithm is to order/categorize set of items within a series of items.                                                                         

                          I.    Write a program/method to find a minimum number in an integer numbers array.         

                        II.    Write a program/method to swap two numbers in the above array when the indices are given.

                      III.    Now combine the above two methods and implement selection sort algorithm. You must call the above two methods in your sorting program.

                     IV.    Write a program/method to generate an array of random numbers.

                       V.    Now test your selection sort algorithm with a random number array.




You are given three numbers. Check if any of the numbers exist in the range from 10 to 20 (including 10 and 20).

input is

2

4

6

output should be

false


Write a function to concatenate two strings. (Don’t use predefined functions)

Char* strcat(char *dest,const char *source);


Write a function to merge two sorted arrays and return a new sorted array.

int* merge(int* A, int n1, int* B, int n2) {

}

A : Integer array, n1 : Integer array's ( A ) length

B : Integer array,n2 : Integer array's ( B ) length

Returns a array of size n1 + n2 with A and B merged.


Write a function that finds out length of a string? (Don’t use predefined functions)

Int str_len(char*);


Write a function to find the sum of array elements.

Int sum(int *);


LATEST TUTORIALS
APPROVED BY CLIENTS