write a program to find the duplicate number in the array
which is also prime.
Write a C program to find (x+b)^2 output.
1. Write a C program that will convert Second into Minute and Hour.
2. Write a C program that will enter marks of three Quizzes calculate the mean
of this marks. (Mean and Total)
3. Write a C program to find (x+b)2
output.
4. Write a C program to enter base and height of a triangle and find its area.
5. Write a C program to calculate area of an equilateral triangle.
A palindrome is a word, phrase, number or other sequence of characters which reads the same backward and forward. Write a C program that enter a word, store it in an array and determine whether it is palindrome or not.
Example : CIVIC is a palindrome
HOT is a not a palindrome
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.
Input: 6(number of students) {4 , 9 , 5 , 3 , 2 , 10}
Output: {0 , 0 , 1 , 3 , 4 , 0}
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.
Input: 6(number of students) {4 , 9 , 5 , 3 , 2 , 10}
Output: {0 , 0 , 1 , 3 , 4 , 0}
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.
Input: 6(number of students) {4 , 9 , 5 , 3 , 2 , 10}
Output: {0 , 0 , 1 , 3 , 4 , 0}
1) write a program using arduino or the development board that measures gravitational acceleration in 3-axes and displays the values on the LCD screen.
The program will do the following:
a) To be run upon initialization (i.e. implement this in the setup() function)
• Initialize the development board
• Sound the buzzer
• Write the message “ACCELEROMETER” on the LCD screen.
• Wait two seconds
• Sound the buzzer
A data compression software utilities various steps to compress a string of data one of the steps involves find the count of the character that are not repeated in the string
write a program that will find the day of the week from a date and will also prepare a calendar on a monthly basis. (Science: day of the week). July 20, 1973 is a FRIDAY using Zeller’s congruence is an algorithm developed by Christian Zeller
h=(q+[26(m+1)/10] + y +[y/4] + 6 * [y/100]+[y/400]) % 7
Where,
■ h is the day of the week (0: Saturday, 1: Sunday, 2: Monday.....)
■ q is the day of the month
■ m is the month (3: March, 4: April, ….., 12: December)
■ y is the year
NOTE: In this algorithm, January and February are counted as months 13 and 14 of the previous year. E.g. if it is February 2, 2010, the algorithm counts the date as the second day of the fourteenth month of 2009 (02/14/2009 in DD/MM/YYYY format). Consequently, for January and February, the year y should be replaced by y – 1. Suffice to say, the month m should also be replaced by m + 12 then.
Sample Input/Output :
Input: Enter year: 2005 Enter month (1-12): 1 Enter day: 21
Output: January 21, 2005 is FRIDAY