Due in 12 hours, please code in C++, run it on Visual Studio Code and make sure it compiles with zero errors. [Thumbs up

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Due in 12 hours, please code in C++, run it on Visual Studio Code and make sure it compiles with zero errors. [Thumbs up

Post by answerhappygod »

Due in 12 hours, please code in C++, run it onVisual Studio Code and make sure it compiles with zero errors.[Thumbs up if its correct :)]
Due In 12 Hours Please Code In C Run It On Visual Studio Code And Make Sure It Compiles With Zero Errors Thumbs Up 1
Due In 12 Hours Please Code In C Run It On Visual Studio Code And Make Sure It Compiles With Zero Errors Thumbs Up 1 (66.52 KiB) Viewed 63 times
Objectives: Review classes, separate compilations, arrays, and operator overloading. Implement the Bag class discussed in class. The bag code can be found on the class's website. Separate the class into its header and its implementation files. Add the following functions: • A constructor that takes an array of integers and a size. • A function called "at" that returns the value at given index. return -9999 if the index is invalid. • A toString function that returns the bag in the format (a single space separates items): [1, 2, 3] A function to sort the elements of the bag called sort A function to remove duplicates called remove Duplicates A function to overload the == operator. It should return true if two bags contain the same values regardless of the order of the elements. • • • Modified Bag To test your program, you may run the provided tests using the provided Makefile. Make sure you use the same function names as outlined above. make run tests mingw32-make run_tests_win Grading: Programs that contain syntax errors will earn zero points. Programs that use global variables, other than constants, will earn zero points. Programs that do not use separate files will earn zero points. (Mac/Linux) (Windows) 35 Points: • (5 points) for each of the required functions • (5 points) separate compilation and implementation of already provided functions 5 points: Programming Style & documentation. o All files must have your name, date, and a description of their content o All functions must be documented in the header file using the style outlined in the coding style below Submission: Follow the coding style outline on GitHub: https://github.com/nasseef/cs2401/blob/ ... g-style.md Submit a link to your repository on Blackboard before the deadline.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply