Write a program to read the GPA of students from users and display the details using dynamic memory allocation.
Strictly adhere to the Object-Oriented specifications given in the problem statement. All class names, member variable names, and function names should be the same as specified in the problem statement.
Include the following member function in the Main class
Member FunctionDescriptionvoid display(float arr[], int size)This method is used to display the student's GPA details.
In the main method, obtain input from the user in the console and call the display method to display the GPA details.
Note:
Use a new keyword to create a dynamic array to store the GPA details.
OUTPUT
Enter total number of students:
2
Enter GPA of students
7.8
6.7
Students GPA Details
Student1 : 7.8
Student2 : 6.7
For the given code your task is to write the following functions and make menu to call them in main:
1)Insert_Element_at(int X, int pos),
2)bool Delete_Element(int X)
3) void Empty_List()
class List{
public:
int item;
int pos;
List* nextNode;
List()
{
this->pos=0;
}
List(int pos)
{
this->pos=pos;
}
List(int item,int pos)
{
this->item=item;
this->pos=pos;
}
List(List &list)
{
this->item=list.item;
this->pos=list.pos;
this->nextNode=list.nextNode;
}
};
void Insert_Element(List** head, int data)
{
//code present here to do this
}
Name Surname Score 1. Sam Williams 60 2. John Phoenix 85 3. Simon Johnson 75 4. Sarah Khosa 81 5. Mat Jackson 38 6. Nick Roberts 26 7. Isaac Wayne 74 8. Anna Mishima 34 9. Daniel Rose 64 10. Aaron Black 83 11. Jack Mohamed 27 12. Kathrine Bruckner 42 Create a C++ program that has 3 Stacks. Insert, into the first stack, all the data above (which is the data of student’s names, surnames and the marks they obtain in a particular assessment) Display the content of the stack on the screen (console) Then, remove all the students whose surname starts with the alphabets ‘R’, ‘J’ and ‘M’, from the first stack and insert them into the second Stack. Display the contents of Stack1 and Stack2. Finally, remove all the students whose marks are less than 50 from both Stack1 and Stack2 and insert them into the Third Stack. Display the contents of all the 3 Stacks. (30)
Write a PHP page where you press a button and a value is entered into data base table
Then write a python or c script that reads the first line of the table
On button 1 must be entered into the table
Off then a 0 must be entered
Use update SQL queries instead of insert
Write a program to create a class named 'height', containing variable 'feet', 'inch'. Create two objects of the class, set some value to the first class. Then increment that object by 1 and assign this object to the second object. Display the results of both object after the procedure is completed.
Develop a program to find the roots of the quadratic equation using BISECTION METHOD.