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

Taru exam is on the head. So she started learning physics. There she learned about Pascal's law. Now she wanted to try an experiment to get a better understanding of the same.

For, the experiment Taru has N buckets (numbered from 1,2,3...N) which all are initially empty.

She has M number of queries. Each query represents an integer that is of 4 types.

  • Query 1: Fill all the buckets with water.
  • Query 2: Empty all even valued buckets (2, 4, 6 ... N).
  • Query 3: Empty all odd number buckets (1, 3, 5, ... N).
  • Query 4: Empty all the buckets. (1,2,3...N).

You have to return the number of buckets that are filled after performing M queries.


Mr. Umar while performing some operations comes to know that the image that he wants can be obtained by multiplying the original image with the pattern. Help Mr. Umar to get the resultant image by performing the matrix multiplication.


Write a c program for finding the roots of the quadratic equation using conditional operator

n an organization they decide to give bonus to all the employees on New Year. A 5%



bonus on salary is given to the grade A workers and 10% bonus on salary to the grade



B workers. Write a program to enter the salary and grade of the employee. If the



salary of the employee is less than $10,000 then the employee gets an extra 2% bonus



on salary Calculate the bonus that has to be given to the employee and print the salary

Input of number of numbers: 3


Input number 1: 4


Input number 2: 2


Input number 3: 1



Select Number System: 1


[1] Binary


[2] Octal


[3] Hexadecimal



Select operators: A


[A] Addition


[B] Subtraction


[C] Multiplication


[D] Division



The numbers are: 4, 2, 1


The number system is: Binary


The converted number is/are: 0100, 0010, 0001


The operator is: addition


Do you want to try again? (y/n)? y



A c program to fill an N x N two-dimensional array, in a circular (Spiral) pattern. The numbers to be filled increments by 1.

A c program that carries out binary search of an element entered by the user in an array of elements and then displace the location of that element else if not found it displace element not found.

A c program that generates the Pascal's triangle.

Create a C program that creates a 4x4 2d array, fill it with user-defined values and display (separately) the sum of the diagonal as well as the upper and lower triangular elements.


d ut ut ut

Lt d ut ut

Lt Lt d ut

Lt Lt Lt d


where:

ut=upper triangular

Lt=lower triangular

d=diagonal elements


using switch case print the grade of the student




LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS