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

The first line contains the integer, n, the number of elements in process [] .

Each of the next n lines contains an integer, m, the size of the contiguous segment to delete


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



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



Mr. Sharma has travel plans. He wants to know the distance travelled in kilometers [KM] to destination on October 15th. Initially Mr. Sharma travels a fixed distance of 40 KM from his house to Airport. If October 15th is a Full working day he travels 2200 KM to attend a Conference at Delhi, if it is a half working day he travels 350 KM to attend a Conference at Chennai, if it is a Holiday he travels 600 KM for a Holiday in Goa.

Following are requirements to solve the problem

a. The working day status i.e., Full working day, half working day or Holiday on October 15th has to be captured.

b. Check for the given conditions and compute the total distance

c. Display the distance travelled in KM along with the destination in an appropriate message. 



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” and show which number is greater and lower.


Write a program to prompt the user to enter five numbers. The program then stores numbers in an array, compute and output the sum and average.

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


Each student has a number associated with them representing their problem-solving capability. The higher the capability the higher the chances of selection. Now every student wants to know the number of students ahead of him with higher problem-solving capability.

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS