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”.
After the success of Doctor Strange in the Multiverse of Madness UCP movie club decided to display this movie on a bigger screen in UCP auditorium. But you have to buy a ticket for the show. Following are the rates of tickets:
Type of Ticket (1, 2, 3) Price Tax
Student= 100 and 17%tax
Faculty= 200 and 17%tax
Staff= 150 and 17%tax
Write a C++ program in which, ask user about how many tickets they want to buy? And which type of ticket they want to buy. Calculate total bill and display it on console.