Write a program that gives the maximum value from an array with size 8. The data stored in the array should be accepted from the user and should be an integer value. Write another program which orders the same data in an ascending order
1 Write a program which inputs a person’s height (in centimetres) and weight (in kilograms) and outputs one of the messages: underweight, normal, or overweight, using the criteria:
Underweight: weight < height/2.5
Normal: height/2.5 <= weight <= height/2.3
Overweight: height/2.3 < weight
int x = 32 % 4;
int y= 21 / 15;
cout << x < y;
Create a program that will allow user to enter 10 names od teacher A's students to be stored in array name stud_name then display vertically
Create a program that will allow user to enter 10 names od teacher A's students to be stored in array name stud_name then display vertically
Create a program that will store the values 90 88 78 95 in array name Grades, then display horizontally with 5 space each value.
Create a c++ program that asks the user to input the full name 10 times using for, do while and while loop. Then display.
Construct a c++ program to compute the sum of the digits of the numbers input from the user. Display the number input by the user as well as the sum. Use for loop Control structure.
write a C++ program that gets a number from user. according to given number program should calculate and display the multiplication table of given number as shown as below in the function"void multiplicationTable";
A teacher wants to maintain the attendance for the classroom. After storing the attendance, he wishes to print the details of the top 3 attendance percentage holders. Create a class with the private data members: name (string), roll_no (integer), percent (float). Create a constructor which will initialize name with NULL, roll_no with 0 and percent with 0.0. Public data members: A function get_details() – which will accept all the details from the user, a function show_details() – which will display all the details. Define another function called get_attendance() which will return the attendance of the calling object. Using the get_attendance() function, get the attendance and sort the records in descending order.
Show the details of the top 3 attendance percentage holders by invoking the
show_details() function. Define a destructor which prints “Objects destroyed successfully”.