+ 2

Data structure

By using Array based list creates a list that saved the average for each student; the class will contain the following: # include <iostream> Using namespace std; Class AVG { Private: int capacity; int size; double * data; Public: AVG(); ~ Avg(); void resizeCapacity(int num) void insert(int index,double f) void push_back(double f) void erase (int index) double& operator[](int index) double& back() void display() -In the Main (): 1. Create a list. 2. Show the following menu: 1] Add a new Student. 2] Show Students. 3] Delete a specific student. 4] Retrieve the last student. 5] Insert a student in a specific place. Choose a number: -Then solve each choice.

28th Apr 2021, 11:41 AM
Nidal Raed Fathi Hussin
Nidal Raed Fathi Hussin - avatar
3 ответов
+ 2
Adesh Patil If you have a question, you should open your own thread instead of posting non-related answers in existing threads.
28th Apr 2021, 3:25 PM
Shadow
Shadow - avatar
+ 1
Could you please clarify your question? So far, this only looks like the description of some homework, but there is no mention of why you created this thread.
28th Apr 2021, 3:02 PM
Shadow
Shadow - avatar
0
Hi can u help me for creating code of hotel management system.
28th Apr 2021, 3:21 PM
Adesh Patil
Adesh Patil - avatar