Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have the first part done, just need to know how to do the second one. A. read and store command-line input The program will

I have the first part done, just need to know how to do the second one. image text in transcribed
image text in transcribed
A. read and store command-line input The program will be named "look-for. It will receive input from the command line indicating the locations of the coins to look for, in the following form: prompts look-for coint xe coint y con2.xe In other words, the program will take 6 input values, which are pairs of (x, y) coordinates for three coins hidden in the robot's world 1. Create a point class. The class should have two int data members: x and y. The class shoud have four function members: void print) const, This function prints out the values of the data members x and y .void set( int x, int y ) This function sets the values of the data members x and y. Note that since the function arguments are also called x and y, you should use the this-> pointer to disambiguate between the class's data members and the function arguments. . int getx0 This function returns the value of the x data member int gety0 isnconretums the value of the y data member

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

Database Security XI Status And Prospects

Authors: T.Y. Lin, Shelly Qian

1st Edition

0412820900, 978-0412820908

More Books

Students also viewed these Databases questions