Write a C program that defines a 2-dimentional integer array
called A . Then the elements of this array should
randomly be initialized either to 1 or 0. The program should
then print out all the elements in the diagonal (i.e.
a, a,a, a, ……..a). Finally,
print out how many zeros and ones in the diagonal.
write a c program to Create a registration form application
by taking the details like username, address,
phone number, email along with password and confirm password
(should be same as password).Ensure that the password is of
8 characters with only numbers and alphabets. Take such
details for 5 users and display the details. In place of
password display “****”. (Use Structures).
write a c program to Create employee record by taking
details like name, employee id, address and phone number.
While taking the phone number, take either landline or
mobile number. Ensure that the phone numbers of the employee
are unique. Also display all the details
write a c program to Create a mail account by taking the
username, password, confirm password, secret_question,
secret_answer and phone number. Allow users to register,
login and reset password(based on secret question). Display
the user accounts and their details .
Create a program to read two random data set in two files
named data1.txt and data2.txt manifold contains integer
numbers, whereas data2.txt file contains the float type
numbers. Simpanlahmasing each into 2 pieces of data that is
an array of type integer array and an array of type float,
then calculate the average numbers in the second array.
Definition of priority queue was given. We have to implement
the priority queue using array of pointers with the
priorities given in the range 1..n.
The array could be accessed using the variable top. The list
corresponding to the array elements contains the items
having the priority as the array index.
Adding an item would require changing the value of top if it
has higher priority than top.
Extracting an item would require deleting the first element
from the corresponding queue.
The following class was given:
void put(int item, int priority); // inserts the item with
the given priority.
int get(int priority); // extract the element with the
int count(); // returns the total elements in the priority
int isEmpty(); // check whether the priority queue is empty
We had to implement all these class functions.
how to use the GetTickCount() properly and what is that
In a gymnastic competition, scoring is based on the average
of all scores given by the judges excluding the maximum and
Let the user input the number of judges, after that, input
the scores from the judges.
Output the average score.
Note: In case, more than two judges give the same score and
it happens that score is the maximum or minimum then just
eliminate two scores.
For example, if the number of judges is 5 and all of them
give 10 points each. Then the maximum and minimum score is
10. So the computation would be 10+10+10, this time.
The output should be 10 because 30/3 is 10.