Questions: 1 680

Answers by our Experts: 1 680

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

The supermarket has different variety of items in different weight. Find maximum weight from these items. Write a C program to find maximum weight of an item using pointer.
Develop a C program to perform z=x-y where x=x+x2 , y=1+y.
A worker takes a job for 5 days. His pay for the day 1 is Rs. X, for day 2 is Rs. 2X and so on. Develop a C program to find the total salary.

Develop a C program to perform z=x-y where x=x+x2 , y=1+y


A worker takes a job for 5 days. His pay for the day 1 is Rs. X, for day 2 is Rs. 2X and so on. Develop a C program to find the total salary.

given an input string Ayodhya your C program to count the number of vowels and consonants and print the frequency of occurrence of each vowel and consonant delete the vowels in the same input string and display the updated string

Sample input:

Enter the input string: Ayodhya

Sample output:

No of vowels:3

Frequency of occurrence:A-2;o-1

No of consonants:4

Frequency of occurrence:y-2;d-1;h-1


given a string "programming" and find the first occurrence of the vowel and move the sequence of consonants preceding the first vowel to the end of the string

Sample input:

Str[]=programming

Sample output:

Updated string=ogrammingpr


Given a list of unsorted integers, find the pair of elements that have the smallest absolute difference between them. If there are multiple pairs, find them all.

Input Format

The first line contains a single integer , the length of the list.

The second line contains space-separated integers, .

Output Format

Output the pairs of elements with the smallest difference. If there are multiple pairs, Output any one of them.

Sample Input 0

10

-20 -3916237 -357920 -3620601 7374819 -7330761 30 6246457 -6461594 266854

Sample Output 0

-20 30

Explanation 0

(30) - (-20) = 50, which is the smallest difference.

Sample Input 1

12

-20 -3916237 -357920 -3620601 7374819 -7330761 30 6246457 -6461594 266854 -520 -470

Sample Output 1

-520 -470

Explanation 1

(-470) - (-520) = 30 - (-20) = 50, which is the smallest difference. Only the first pair is given as output.

Sample Input 2

4

5 4 3 2

Sample Output 2

2 3


Write a program that will randomly generate 500 integer numbers in the range -249 to 250. Write those

numbers in a text file named “in.txt”. Now Sort (in ascending order) all the integer numbers in the file “in.txt”

using Bubble Sort. Save the sorted output into another text file named “out.txt”. (Try to write separate

function for SWAP and BUBBLE_SORT and call them from main function.)


Write a program that will randomly generate 1000 uppercase letters. Write those alphabets in a text file

named “in.txt”. Now Sort (in ascending order) all the alphabets in the file “in.txt” using insertion sort. Use

separate function for REPLACEMENT_SORT. Show the sorted output in your console window.


LATEST TUTORIALS
APPROVED BY CLIENTS