Question: Using the Star structure defined in file p1.cpp, write the function named magnitudeBetween(). The function takes three input parameters: a vector of Stars as well
Using the Star structure defined in file p1.cpp, write the function named magnitudeBetween(). The function takes three input parameters: a vector of Stars as well as a lower and upper bounds. The function returns a vector of size_t containing indexes of the stars whose magnitude falls between the two bounds (exclusive). Please explain your steps if possible . Thanks.

p1.cpp:
*/ #include
// The structure (don't change these) struct Star { double x, y; double magnitude; int draperNumber; string names; };
vector
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
