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

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




Make a C program that asks the users to enter two numbers. Then, get the total and DISPLAY "I LOVE MY PARENTS" if the sum is more than or equal to 25, otherwise DISPLAY "I WILL NEVER GIVE UP!". Andshow which number is greater and lower.


nstructions:


Input four float numbers; they could be positive or negative.

Only add all inputted negative numbers, and print its sum, up to 2 decimal place.

Hint: The previous/latest topic is about if-else-elseif statements, but do we need one here?

Input


1. First decimal number


2. Second decimal number


3. Third decimal number


4. Fourth decimal number


Output


The first four lines will contain message prompts to input the four decimal numbers.

The last line contains the sum of all the inputted negative numbers, with 2 decimal places.


Enter·the·first·number:·-30.22

Enter·the·second·number:·10.5

Enter·the·third·number:·-2.2

Enter·the·fourth·number:·-1.8

Sum·of·all·negatives·=·-34.22


There was a competition conducted by Presidency University to all first year students. Each team can have n numbers with minimum value of 4. When they play the game each will be given a credit of 10 or 15 or 18 points

There will be 10 games to be played by each student of that team. If a student gets 100 points at the end then that count will be not be considered and if more than 2 students gets 100 credits then they are disqualified from the team.

Mr. Varun and his team plays the game. At the end they want to know their credits and whether they have qualified or not. Generate a C application for the same.

 

As there is lock down everywhere, and the time allocated for shopping is restricted, Mr. Umar goes for shopping in the specified time, He went to vegetable super market, He purchased some vegetables and fruits the total bill was “m” Rs. and he got a discount of 10% there. Next he went to Buy n Save shop and purchased the groceries and the bill amount generated there was “n” Rs and here he got a discount of 12.5%. Later he went to buy medicine and there the bill was “p” Rs. and there also he got a discount of 18%.

His mother asked the bill details and the total amount he spent today. Help to create a C application for the same.

Requirements.

1.    Capture the bill m,n,p

2.    Compute the amount paid at individual place after discount

3.    Display the bill amount paid at each place

4.    Calculate the total amount spent

5.    Display the total amount spent by Mr. Umar



LATEST TUTORIALS
APPROVED BY CLIENTS