C++ Answers

Questions answered by Experts: 9 913

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

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.


  1. (a+b)^2=a^2+2ab+b^2
  2. (a-b)^2=a^2-2ab+b^2
Create a program will ask the user to enter an integer number and a string . If the integers number is odd print the string word/s that the user enter and if the integers number is even print the even number with the string word s “this is an even number
Create a program will ask the user to enter an integer number and a string if the integers number is oddprint the string words that the user enter and if the integers number is even print the even numbers with the string words this is an even number.

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;


LATEST TUTORIALS
APPROVED BY CLIENTS