Question: This is the instructions given to create the code it's asking but I am still confused with class so I'm still learning. Can you please

 This is the instructions given to create the code it's asking

This is the instructions given to create the code it's asking but I am still confused with class so I'm still learning. Can you please just add all comments aside the code so I can better understand what is being done within those lines of the code. Thanks.

but I am still confused with class so I'm still learning. Can

I need help with this C++ code. I have the basic setup ready but bot sure how to continue the code and not sure if const vector should even be in private. The code in main should remain as is because it the code that was given to me to test out once all the class code is done. Thanks and if else is needed please let me know what I should clarify on what is being asked.

Exercise 3: Probability of a prime number (10 points) int countPrimes (const vector & v); Write a function named countPrimes that takes a vector of Number class instances and returns the number of prime numbers in the the vector. Use the Number class you defined in the previous problem. The declaration of countPrimes is given above Note: For your code to compile, the isPrime function of your Number class should be declared const. Use the following code for your main function. #incLude #inCLude vector #include int main() srand (time (0)); const int N = 1000; vector v; for (int i = 0; i

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!