Question: c++ language c++ language Question 1 (6 marks) Assume you are creating a stack class. Given the student information as Date, Item, Qty, UnitPrice, and

c++ language
c++ language c++ language Question 1 (6 marks) Assume you are creating
c++ language
a stack class. Given the student information as Date, Item, Qty, UnitPrice,
and Amount. Please define a SalesNode to be used for creating a

Question 1 (6 marks) Assume you are creating a stack class. Given the student information as Date, Item, Qty, UnitPrice, and Amount. Please define a SalesNode to be used for creating a linked list. class SalesNode 1 public: ..... continue..... Question 2 (6 marks) Continued from Question 1, complete the code for InsertSales function as follows:- void InsertSales (????????) { /* Insert new note to last item linked list*/ ... continue...... } Question 3 (6 marks) Continued from Question 1, complete the code for getTotalAmount function as follows:- float getTotalAmount () /* This function is to sum the amount in the linked List and return the sum amount to the calling statement*/ ...... continue..... } Question 4 (6 marks) Continued from Question 1, complete the code for Readfromfile function as follows:- void Readfromfile (?????) { /* This is a function to read sales data from a file and then insert into the linked list using function InsertSales */ ....... continue...... } Question 5 (6 marks) Continued from Question 1, complete the code for displayallsales function as follows:- void displayallsales() { /* This is a function display all the sales data in the linked list*/ ... continue...... } Question 1 (6 marks) Assume you are creating a stack class. Given the student information as Date, Item, Qty, UnitPrice, and Amount. Please define a SalesNode to be used for creating a linked list. class SalesNode public: ....... continue..... }; Question 2 (6 marks) Continued from Question 1, complete the code for InsertSales function as follows:- void InsertSales (????????) /* Insert new note to last item linked list*/ ....... continue...... 3 Question 3 (6 marks) Continued from Question 1, complete the code for getTotalAmount function as follows:- float get TotalAmount () /* This function is to sum the amount in the linked List and return the sum amount to the calling statement*/ ...continue...... }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!