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

Write a value-returning function, isVowel, that returns the value true if a given character is a vowel, and otherwise returns false. Explain your code.


Given an array arr[] sorted in ascending order of size N and an integer K.



Check if K is present in the array or not. (Use Binary Search)



Input: N = 5



K = 6



arr[] = {1,2,3,4,6}



Output: 1



Explanation: Since, 6 is present in the array at index 4 (0-based indexing),



output is 1

Given an array arr[] sorted in ascending order of size N and an integer K.


Check if K is present in the array or not. (Use Binary Search)


Input: N = 5


K = 6


arr[] = {1,2,3,4,6}


Output: 1


Explanation: Since, 6 is present in the array at index 4 (0-based indexing),


output is 1

Write a C program to implement Queue operations such as enqueue, dequeue



and display using linked list.

Write a program that reads the numbers and sorts them by using the Counting Sort algorithm and finally search a number from that array using Linear Search Algorithm.

Input: 3 6 5 4 7 8 9

 Search Item: 7

Output: Sorted Array: 3 4 5 6 7 8 9

 Search item 7 is found.


Write a program that reads the numbers and sorts them by using the Counting Sort algorithm and finally search a number from that array using Linear Search Algorithm.



Input: 3 6 5 4 7 8 9



Search Item: 7



Output: Sorted Array: 3 4 5 6 7 8 9



Search item 7 is found.

Write a C program to implement Queue operations such as enqueue, dequeue and display using linked list. 


Spirit Level, Thermometer, Countdown Timer:

skeleton functions will be provided to you to complete the code within them. 3.1 Spirit level Firstly, you will need to write a function: int average(int *array, int nLen);


which returns the average value of an array of integer values. (To prevent overflow, it is suggested to use a long internal variable).


The Spirit Level function will run a loop. For each iteration, the Z-component of gravitational acceleration will be sampled four times at 50ms intervals and stored in a suitably sized array.


Using the average()function you have written, determine the average value of the 4 Zvalue samples and analyze it. The green LED should be illuminated if the board is flat. The yellow LED should be illuminated if the board is at a slight angle. The red LED should be illuminated if the board is at a steep angle. The loop can be exited by pressing and holding S2. 


In a college the faculty member wants find a student with help of their register number, now he wants to compare the register no. one by one and to find the corresponding person. Use the suitable searching technique.

Create a C program that will generate a table of chosen mathematical operations. The user has to be prompted first for the math operation and then enter a value that will be used to add, subtract, multiply or divide from 1 to 10 to complete the table.


Sample Run:

M A T H O P E R A T I O N S:

[M] – Multiplication

[D] – Division

[A] – Addition

[S] - Subtraction

Enter your choice: M

Enter your desired value to be multiplied: 8


1*8=8

2*8=16

3*8=24

4*8=32

5*8=40

6*8=48

7*8=56

8*8=64

9*8=72

10*8=80


Continue [Y/N]? Y


M A T H O P E R A T I O N S:

[M] – Multiplication

[D] – Division

[A] – Addition

[S] - Subtraction


Enter your choice: A

Enter your desired value to be added:4


1+4=5

2+4=6

3+4=7

4+4=8

5+4=9

6+4=10

7+4=11

8+4=12

9+4=13

10+4=14


Continue [Y/N]? N

Thank you for choosing my program


LATEST TUTORIALS
APPROVED BY CLIENTS