codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Help please ,Urgent !!! annaaa :((  annapink at 03:09 on Tuesday, April 01, 2008
 

Hi, i need help with my c.w i know this is not the right place to ask but i have no other choice ! I had a friend who was suppose to help me to do this but went to holiday and now i have till 3rd april to submit this or i'll fail :(( :(( :((

Please Pleasee pleaseeee i'm not good at c++ i've been trying to find a way to do this for 2weeks now but i couldn't i've never felt this dumb in my life !!! :((

Please send me anything that you think will help me out :((

Requirements
Develop a class specification for the class Point (the data members and the prototypes for the member functions) in the file point.h.
Develop the implementation of the member functions in the file point.cc and test them with a suitable test program.
For example:
//pointTest.cc
int main()
{
Point P1;
P1.create(24,16); // create a point with coordinates {24,16}
P1.display(); // display the {X,Y} coordinates of P1
.....
}

Develop a class specification for the class Line (the data members and the prototypes for the member functions) in the file line.h.
Develop the implementation of the member functions in the file line.cc and test them with a suitable test program.
For example:
//lineTest.cc
int main()
{
Point P1;
P1.create(24,16); // create a point with coordinates {24,16}
Point P2;
P2.create(33,42); // create a point with coordinates {33,42}
Line L1;
L1.create(P1,P2); // create a line using points P1 and P2
cout << L1.length() << endl; // display the length of line L1
Line L2;
L2.create(12,30,28,16); // create a line using coordinates {12,30}, {28,16}
L2.display(); // display the coordinates of both points
.....
}

Application
We wish to determine the length of the boundary of an irregular polygon.
The polygon may have between 3 and 9 sides.
The user should be prompted to enter the number of sides and the coordinates of each vertex point.
The program should then calculate and display the total length of the boundary.
You should write a main function to implement this using your Point and Line classes and test the program thoroughly.

What you should hand in
The following should be submitted to the Campus office in hard-copy form:

* A listing of the files point.h, point.cc, the class test program and results.
* A listing of the files line.h, line.cc, the class test program and results.
* The application test program and results.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: Plz Help Me Out...!!! I want to add a crystal report to my application
•  fstream problems
•  Help please ,Urgent !!! annaaa :((
•  Position a script tag in a DIV probleme with IE
•  Re: horizontal scroll bar for drop down list box
•  how 2 download d forumm code?
•  developing a bookselling system using jsp: need help in fixing database error
•  Accessing user control in master page from any content page
•  Displaying HTML formatted text in a aspx page


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008