Show Bid Request
Define and Implent class with header file
Bid Request Id: 12534
|
|
|
Description:
Write a program to define and implement a class called as myinteger. Define the class in a header file ".h" and implement it in a ".cpp" file. The class should have at least one data member which should be of type "int". The functionality that should be supported will be as follows.
A default constructor. A constructor that takes an integer value. A constructor that takes a string value and converts it to an integer. A set value function that sets the integer value. A get value function that returns the integer value. A compare to function that takes another "int" value and compares it with itself . A compare to function that takes another myinteger object and compares it with itself . An add function that adds an int value to itself and returns the value. A divide function that uses an int value supplied as parameter as the divisor and returns the quotient value. A function called raised to, that takes an "int" value as an parameter and raises itself to that value and returns the value ( ie . x to the power y, where x is the myinteger objects "int" value and y is the parameter.) After coding the definition and implementation of the class. Use the class in another file which will have the main function. To get this done use the following steps.
Write the definition of the class in "myinteger.h" file. Write the implementation of the file in "myinteger.cpp" file. Write a third file called , lets say "usemyinteger.cpp" to use the class. To be able to use the class in the in "usemyinteger.cpp" #include the header file, #include "myinteger.h". Write to code to illustrate all the functionalities of the class. To compile both the source files, do the following on the command line: g++ myinteger.cpp usemyinteger.cpp -o usemyinteger.
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
Complete copyrights to all work purchased.
MUST BE ABLE TO COMPILE ON UNIX USING G++
Platform:
UNIX Using G++ compiler
Must be 100% finished and received by buyer on:
Apr 6, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$8 (USD)
|
Apr 3, 2002 4:48:53 AM EDT
|
7.54
(Very Good)
|
|
|
we will make this one 8 bucks .. hoping you accept both my bids and have me doing both assignments for you ...
looking forward to doing work for you ...
adam |
|
|
|
|
|