How Software Gets Done  


(No Login on Secured Page)

Custom Software Buyers
Request new bids
Search Coders
My Account
 
My Buyer 'To Do' List
 
My bid requests
  My escrow account
 
My General Info
 
Help for Buyers
Articles for Buyers
Latest News
 

Custom Software Coders

Newest open work
Browse all work
Search all work
My Account
 
My Coder 'To Do' List
 
My bids
 
My General Info
  My credit account
 
Help for Coders
Articles for Coders
Latest News
 

Affiliates

My account
 
My pipeline
 
My credit account
 
Help for Affiliates
Latest News
 
Newest Open Bid Requests.
Web Marketing
By blong24 on Jan 20
Max Bid: $500


DVD COPIER CLONE
By xswiss on Jan 20
Max Bid: $4,000


Commercial Management 1
By groovy_alexia on Jan 20
Max Bid: $100


analysis,design and implementation of a database a ...
By angelniki_07 on Jan 20
Max Bid: Open to fair suggestions


Java Applet for Mac (NDA)
By Napo on Jan 20
Max Bid: $500


Kazaa Protocol Project
By SrProjectManage r on Jan 20
Max Bid: Open to fair suggestions


Click here to put this ticker on your own site

Open Work Categories.
Database 
(136 open)
   Access 
(49 open)
   MySQL 
(74 open)
   Oracle 
(8 open)
   SQL Server 
(56 open)
   Other DB 
(18 open)
Documentation / Tech Writing 
(23 open)
Game Development 
(22 open)
Graphics / Art / Music 
(50 open)
   Graphics 
(59 open)
     3d Animation 
(13 open)
   Art (Misc.) 
(20 open)
   Music 
(6 open)
   3d Modeling 
(12 open)
Language Specific 
(90 open)
   ASP 
(70 open)
   C# 
(34 open)
   C++ / C 
(103 open)
   Cold Fusion 
(4 open)
   Delphi 
(34 open)
   Java 
(48 open)
   Perl 
(28 open)
   PHP 
(80 open)
   XML/XSL 
(31 open)
   Visual Basic 
(165 open)
   Visual Basic .Net 
(62 open)
   Other 
(45 open)
Misc 
(37 open)
   CAD 
(8 open)
MultiMedia 
(25 open)
Network 
(32 open)
   Network Design 
(13 open)
   Network Implementation 
(13 open)
Platforms 
(61 open)
   Windows 
(133 open)
     MS Exchange 
(4 open)
     MS Office 
(1 open)
     Other 
(8 open)
   Internet Browser 
(51 open)
   Linux 
(41 open)
   UNIX 
(21 open)
   Hand Held/PDA Programming 
(15 open)
Requirements 
(10 open)
Security 
(24 open)
Testing / Quality Assurance 
(11 open)
Web 
(131 open)
   Page Design 
(65 open)
   Flash 
(33 open)
   Web Services 
(57 open)
   Web (Other) 
(56 open)
Training 
(5 open)
   Computer Based 
(6 open)
 
Other
 
Other Sites

Download the free Rent A Coder IE toolbar!
 
Show Bid Request

Visual C++ 6.0
Bid Request Id: 4998
Bookmark in my 'To Do' list
Posted by: salapaw (6 ratings)
(Software buyer rating 9.83)
Posted: Nov 15, 2001
6:04:50 PM EDT
Bidding Closes: Nov 29, 2001
6:05:29 PM EDT
Viewed (by coders): 158 times
Phase:
100% of work completed and accepted. Coder has been paid.
Max Accepted Bid: Bidding is closed
Project Type: Personal Project / Homework Help
Bidding Type: Open Auction
Categories: C++ / C
Enter chat room for this bid request
(0 active users at Jan 20, 2003 3:41:33 PM EDT)

Description:
Short Heap Property work.

Deliverables:
Part A: create a class that can read a sentinel-terminated list of numbers from an input file stream, and can store them in a vector using the convention discussed in lecture: the first element of the vector is ignored, and the first element of the list is stored at vector index 1. Your class must be able to print the list, and to report whether the numbers in the list obey the "minimum first" heap property. For example <0,9,7,21,34,10,15> obeys the "minimum first" property, but <0,10,7,21,9,34,15> does not. Assume that the list of numbers you will be processing consists of non-negative entries, with a negative value used as the terminating sentinel (the sentinel is not a part of the list).

Notes: write a constructor for your class that accepts an object of type ifstream by reference. This way whenever your class does any processing on the input file stream, the changes to the stream will reflect in the client code, and your class can then be used in a loop construct to process an input file with several sentinel-terminated lists. Also, make sure that you do not reimplement or use a priority queue: your only task is to check whether a sequence of numbers in a list obeys the heap property, that is list(i) <= list(2i) and list(i) <= list(2i+1).

Part B: write the main(int argc, char *argv[]) routine that takes a file name as a parameter, and uses the class you wrote for Part A to report results of processing an input file with several sentinel-terminated lists. Here is an example of a valid input file and corresponding output:

Input file:
0 9 7 21 34 10 15 -3
0 10 7 21 9 34 15 -17

Program output: <0,9,7,21,34,10,15> obeys the "minimum first" heap property.
<0,10,7,21,9,34,15> does not obey the "minimum first" heap property.

Special Conditions / Other:
would like to have code for both Part A and B with some comments. Stating which A and B is as well.


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, you can report it to: abuse@rentacoder.com.
 
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!
vkapadia
(59 ratings)
in Bombay, Maharashtra
India
 
$5 (USD) Nov 15, 2001
11:56:44 PM EDT
 9.86
(Excellent)
   
I shall be able to do this for you. I have worked extensively with vectors and algorithms.
 
 
 
 
  See 2 private reply(ies)
to/from vkapadia.
 




Quick Search
 

 Advanced Search
Newest Open Work
Latest News

 
Credentials


 

 
Rent A Coder upholds the rigorous business practices required to be both a BBB member and Square Trade vendor.
  • All customer issues addressed within 2 days
  • Openly disclosed pricing and return policies
  • Participation in mediation at buyer request
  • Superior selling track record
This site is verified through its parent company, Exhedra Solutions, Inc.
 

Rent A Coder Top Coders.


Anuj Gakhar
Rated a 9.98 on 75 jobs 
Michael Sharp
Rated a 9.97 on 147 jobs 
Simon Price
Rated a 10 on 6 jobs 
RNA
Rated a 9.9 on 26 jobs 
Securenext
Rated a 9.97 on 51 jobs 
Andrei Remenchuk
Rated a 10 on 9 jobs 
teleCODERS
Rated a 9.93 on 59 jobs 
Buddies
Rated a 9.8 on 48 jobs 
Codman
Rated a 9.96 on 97 jobs 
ashben
Rated a 9.65 on 35 jobs 

See all top coders...

(What makes a top coder?)

Top Exam Scorers
 
Other
Rent A Coder is PayPal verified through it's parent company, Exhedra Solutions, Inc.

Created in partnership with:

 


Affiliate Sites



Latest News | About Us | Kudos | Feedback/Contact    Affiliates | Advertise    Privacy | Legal

Copyright © 2001, Exhedra Solutions, Inc. All rights reserved.
By using this site you agree to its Terms and Conditions.
"Rent A Coder" (tm), "Safe Project Escrow" (tm) and "How Software Gets Done" (tm)
are trademarks of Exhedra Solutions, Inc.