Question: this is a problem from discrete structures.please turn this pseudocode into c++ language. and also add comments Lab 1 In class we discussed some basic

this is a problem from discrete structures.please turn this pseudocode into c++this is a problem from discrete structures.please turn this pseudocode into c++ language. and also add comments

Lab 1 In class we discussed some basic ideas about how to convert (map) an Algorithm into C++, develop your skills by converting the following algorithm based on an answer (see below) to question 6 from section 3.1 in the textbook. Your solution should be a C++ main.cpp file that looks like this: // Your name: // Lab Number || Date: // Description: #include #include // your descriptive comments int negatives(vector d) { // your work goes here int main() { vector data = {-1, 5, 5, -4, 5, 6, 33, -2, 44 }; // arbitrary numbers int n = negatives(data); std::cout

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!