Question
(please send full program) (do not write on note book) (compile before send ) Coord02 Add to your Coord class Take your source code from
(please send full program)
(do not write on note book)
(compile before send )
Coord02
Add to your Coord class
Take your source code from the Coord01 assignment and rename the source file Coord02.cpp (keep the old Coord01.cpp file)
Write a member function named
int distance2origin()
that calculates the distance from the (x, y, z) point to the origin (0, 0, 0)
the prototype in the class definition will be
int distance2origin()
outside the class definition
int Coord :: distance2origin()
{
// your code
}
Add your testing function void testCoord02( )
Upload source code and testing plan
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