Write a program that check and classify buttons pressed on the keyboard.
After pressing any button, the program
should display one of labels: - lowercase letter
- capital letter
- digit
- ENTER
- ESC
- Left Arrow
- Right arrow
- F1 function key
- Another (unrecognised) key
HINT: to retrieve the keyboard key code, use function getch() from the library <conio.h>.
1. Write a function that displays the maximum and minimum of a list of numbers entered from the keyboard. Where the size of the list is to be entered from the keyboard.
1. Write a function accepts list of marks of students and counts the number of students who have scored marks greater than 20 in an exam out of 30. The total number of students who took the test is to be entered from the keyboard.
1. Write a function accepts list of marks of students and counts the number of students who have scored marks greater than 20 in an exam out of 30. The total number of students who took the test is to be entered from the keyboard.
Write a C++ Program which prompts the user to enter two integer values, stores them in variable named 'a' and 'b'. calculates the following expressions and display the results on screen. Output of your program must be presentable. You must use minimum possible number of paranthesis for evaluating these expressions.
a,b,sum;
Given an array A of N integers and two integers X and Y, find the number of integers in the array that are both less than or equal to X and divisible by Y.
What is the output of the following C++ statements?
a. cout << "C++ is a high level language." << endl;
b. cout << "Enter the distance traveled: " << endl;
c. cout << "The difference of 7 and 3 = " << 7 - 3 << endl;