Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a function printAII which takes as a parameter a vector of Point2D objects and prints all their locations. The function returns nothing. 2). Write

image text in transcribed
Write a function printAII which takes as a parameter a vector of Point2D objects and prints all their locations. The function returns nothing. 2). Write a function moveAII that takes as a parameter a vector of Point2D objects, and two int parameters moveX and moveY and moves all the points by moveX and moveY. The function returns nothing. Create a vector of points in the main and add 3 points to it. Call the function to move all the points by -2, 5. Then, call the printAII function and verify that they have moved. 3). Write a function combine which takes two vectors of student names, group 1 and group 2 and returns a vector containing all the students in both groups. Call your function from the main with two groups you create and then print the result returned from the function

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Knowledge Discovery In Databases

Authors: Gregory Piatetsky-Shapiro, William Frawley

1st Edition

0262660709, 978-0262660709

More Books

Students also viewed these Databases questions

Question

13-1 How does building new systems produce organizational change?

Answered: 1 week ago