This question has been answered
Question

Hi, I am behind and need help completing this assignment for my final

project due next week. If you have helped someone from TESU with same assignment please do not provide same work answers as this is my finals. I need the completed C++ programming work running in Visual Studio to work by Sunday 8/21 or 8/22 by 11pm.  

1 Attachment
Your final project includes five problems. Submit your code files to your mentor. Submit the code for each problem separately. The problems vary in complexity and so have different weightings for your total project grade. Final Project Problem 1 This problem counts for approximately 30 percent of the final project grade. Create a simple linked list program to create a class list containing class node { void *info; node *next; public: node (void *v) {info = v; next = 0; } void put_next (node *n) {next = n;} node *get_next ( ) {return next;} void *get_info ( ) {return info;} }; Be able to initially fill the list. Provide functions to insert/append nodes and remove nodes from the linked list. Be able to display the contents of the list. Write a little driver program with at least 5 values passed in (so that 5 nodes are created) as you insert/append, delete and display data, showing the programs operation. Final Project Problem 2 This problem counts for approximately 30 percent of the final project grade. Create a program that uses a derived class based on the list class you’ve created in the first program. This program will use a stack data type. class node { void *info; node *next; public: node (void *v) {info = v; next = 0; } void put_next (node *n) {next = n;} node *get_next ( ) {return next;} void *get_info ( ) {return info;} }; class list { node *head; int node_num; public: list ( ) { node_num = 0; head = 0;}
Background image of page 1
void remove (int); void insert (void *, int); void append (void * v) {insert (v, node_num + 1); } void *find (int); void display ( ); }; Write functions to push and pop the stack. Write a driver main program which gives 5 values (5 nodes created) that will push, pop and display data stored. Final Project Problem 3 This problem counts for approximately 15 percent of the final project grade. Write a program that reads from the external file input.txt, capitalizes all words that begin with the letter "a," and then writes them to an external file output.txt (Note: Do not forget to copy the blanks. You may wish to use infile.get and outfile.put in your program.) Final Project Problem 4 This problem counts for approximately 10 percent of the final project grade. The following function compares integers of type int and gives as a result the smaller number: int min (int a , int b) { if (a < b) return a; else return b; } Convert this function to a template. Final Project Problem 5 This problem counts for approximately 15 percent of the final project grade. Derive the cube class from the base square class. Assume the square class has a protected member variable representing the side called side and declared as a double with a default value of 1.0. It also has a public function called calcVal that evaluates the area of a square as side * side. In your derived class have the default values for side be 1. For the cube class include a public function calcVal that evaluates the volume of the cube . (Hint: The volume of the cube is side * square :: calcVal. )
Background image of page 2
Answered by Expert Tutors
5 Attachments
Problem1.cpp
cpp
Problem2.cpp
cpp
Problem3.cpp
cpp
Problem4.cpp
cpp
Problem5.cpp
cpp
The student who asked this rated it
Your final project includes five problems. Submit your code files to your mentor. Submit the code for each problem separately. The problems vary in...
Get unstuck

261,329 students got unstuck by Course
Hero in the last week

step by step solutions

Our Expert Tutors provide step by step solutions to help you excel in your courses