Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ In addition to the Point class, this program will have a Points class with an array of Point objects (and how many). Max of
c++
In addition to the Point class, this program will have a Points class with an array of Point objects (and how many). Max of 10 points. Add 5 random points to the Points object using the add method. Since we are adding the points to the array from within the Points class- we don't need to use the add method however we are using it since the add method does bound checking on the array Ask the user for the given point (A) in main. Display the 2 points (A and B) and then ask the user for the sum. (The point B is from the array.) t will then display the user's sum as a ? and the correct sum as a C. I posted the code to place the cursor at a given point (on BB under Content/Code) Note: this program does NOT use templates Note: placeCursorAt is a stand alone function (not part of any class) - you can put in at the top of the Points.cpp file Xtra credit make the graphics look better: points should be spaced correctly in the x and y plane the origin should be in the lower left corner (not top left)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started