Questions: 1 978

Answers by our Experts: 1 850

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

How is the number of loop iterations needed to search a sorted array related to its size?



Write a program to create an expression tree for a given PREFIX expression and traverse the tree to check the correctness of the prefix expression.




2. Mr. Raju want to read 10 array elements and wants to display them in the reverse way. Write a C program to help Mr. Raju to display the array elements in the reverse way.






Write a program to create an expression tree for a entered (by the user) postfix expression and traverse the tree to check the correctness.


The placement season has begun in a college. There are N number of students standing outside an interview room in a line. It is given that a person who goes in first has higher chances of getting selected.




Input1- an integer N, which denotes the number of students present




Input2- An array of size N, denoting the problem solving capacity of the students.





Each student has a number associated with them known as the problem-solving capability (PSC). The higher the capability, the higher the chances of selection. Now, each student wants to know the number of students ahead of him/her who have more problem-solving capability than him/her.





Find this number for each student.

Write a simple C program that accepts user input for the following:

The total number of test items, and the percentage of correct answers. For every correct answer, a student gets five (5) points and loses two (2) points for every wrong answer.


Mr. Hari has bought 10 items from the shop. He has stored the price of all the items in an array. Help




Mr. Hari to print the sum of the even items in the array

Create a program of mathematical that will display the sum, difference, product, quotient of two variables using the interactive input.


Write a for loop which will print summation of all the numbers which are divided by 3 and 5 between 30-120.


1. How to declare array in c? Briefly explain the different types of array with simple example.

2. What is the process to create increment and decrement statement in C? Describe the difference between = and == symbols in C programming? Describe the header file and its usage in C programming?


3. Write a program in C to display the cube of the number up to given an integer. Go to the editor

Test Data :

Input number of terms : 5

Expected Output :

Number is : 1 and cube of the 1 is :1

Number is : 2 and cube of the 2 is :8

Number is : 3 and cube of the 3 is :27

Number is : 4 and cube of the 4 is :64

Number is : 5 and cube of the 5 is :125


4. Write a program in C to display the multiplication table of a given integer. Go to the editor

Test Data :

Input the number (Table to be calculated) : 15

Expected Output :

15 X 1 = 15

...

...

15 X 10 = 150


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS