c++ programming
Write only the do while loop statements to print the following sequences.
1) 28 21 15 10 6 3 1 0
2) 12 11 9 6 2 -3
consider two classes , hours and minutes . write a program to convert the hours to minutes using class to class type using both constructor and conversion function method
What is an operator?
Write the algorithm and pseudocode for finding the average of five(5) numbers.
Write a function that reverses the elements of an array in place. The function must accept only one pointer value and return void.
Read the scenario and draw the flowchart for it.
A program needs to be developed for helping your younger siblings to calculate the area of a square when the input(side) is given. The program first of all needs to permit him/her to work on the area when he/she is below class 6. The program should allow for new entering of class when the class given doesn’t meet the requirement for working on area of a square. Also, ensure that the side given is a positive number else allow him/her enter a new side.
By implementing the concepts of classes and objects, write a C++ program that determines the distance between 2 points in a coordinate system. The coordinates of the 2 points: P1 (x1, y1) and P2 (x2, y2) are to be entered from the keyboard. The distance, d, between the 2 points is computed as: d = √(y2 - y1)^2 + (x2 - x1)^2
a) Write a program to count the number of female and male students in class of 30. User need to input gender for each student.
b) Write a program to count the number of students who gets more than 5 marks of quizzes in class 30. User need to input mark of quiz for each student.
c) Write a program to find the highest and lowest of quiz mark of 30 students. User need to input mark of quiz for each student.
Write a C++ program to print the digits of a number in reverse order. The user will enter the number and your program will display in reverse order. Make sure user only enters a positive number, if negative number, display an error message.
After test 1, a lecturer would like to analyze the students’ performance. As a programmer you are asked to write a program which will input the student’s name and mark (0-100) until a negative value is keyed in as the value of mark. The program will then display
a) The average mark.
b) The name and mark of student with the lowest mark.
c) The name and mark of student with the highest mark.
The passing mark is 25. Calculate and display the number of student that fails the test. What is sentinel value?