Write a template function that returns the maximum value of three elements
passed to the function. Parameters passed to the function can be of int, double,
char but all parameters passed are of the same type at point of time. Parameters
to be passed to the function as are read as input.
1. In a common cathode 7 segment LED, what should be the BCD code to display the digit ‘5’?
2. Explain the advantages of using Twisted Nematic (TN) phase of Liquid Cristal for LCD Display.
3. Mention the steps of the data communication between to Data terminal Equipment using RS232 Standard.
Write a template function that returns the maximum value of three elements
passed to the function. Parameters passed to the function can be of int, double,
char but all parameters passed are of the same type at point of time. Parameters
to be passed to the function as are read as input.
compute average numbers from 1 to n where n is a positiove integer value and assign it to the variable avg in python
Write a C++ program to input data for 10 students and each student has following data to be stored.
• Name of Student
• Age of Student.
• Phone No.
• Father Name.
Also display the entered data
Write a C++ program to define a structure with 5 members. The first member be student name and the other four members be student marks obtained in four subjects. Input values from the user. Add marks of the subjects and calculate the total marks and then print these individual subject marks as well as total marks of the student.
Write a program using a 1D array to evaluate the following expressions:
Total = ∑ (Xi)^2
where summation is from i=1 to 10.
Write a template function that returns the maximum value of three elements passed to the function. Parameters passed to the function can be of int, double, char but all parameters passed are of the same type at point of time. Parameters to be passed to the function as are read as input.
The queue is another data structure. A physical analogy for a queue is a line at a bank. When you go to the bank, customers go to the rear (end) of the line and customers who are serviced come out of the line from the front of the line.
The main property of a queue is that objects go on the rear and come off of the front of the queue.
• Make-Queue
Create a new, empty queue object.
• Empty
Reports whether queue is empty or not.
• Enter(or Insert)
Places an object at the rear of the queue
• Delete (or Remove)
Removes an object from the front of the queue and produces that object. Write a program to create a queue class and do queue operations with exception handling.
Write a program using a 1D array to evaluate the following expressions: Total = ∑ (Xi) 2 where summation is from i=1 to 10.