Show Bid Request
Squares
Bid Request Id: 34826
|
|
|
Posted by: |
aminew (21 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Very Good - 0.00%
|
Buyer Security Verifications: |
Good
|
Approved on: |
Nov 10, 2002 4:36:26 PM EDT
|
Bidding Closes: |
Nov 11, 2002 11:00:52 PM EDT
|
Viewed (by coders): |
54 times
|
Deadline: |
11/12/2002
TIME EXPIRED
|
|
|
|
Description:
Overview This is an interactive program that requires the use of repetition control statements (i.e. loops).
Specification Using a repetition control statement, query the user to enter in the length of the side of a square and then print a hollow square of that length using plus symbols in its corners, dashes across the top and bottom, vertical bars | down the sides, and space characters in the center.
Your program should use the following prompt:
Enter length between 0 and 64 (-1 to exit): _
If a length of -1 is entered, then terminate the query loop.
An error message should be issued when a length less than -1 or greater than 64 is entered.
Prior to printing a square, print the length entered.
Be sure your program knows how to print squares having lengths of 0, 1 and 2, respectively. [A square of length 0 should result in the printing of a blank line.]
Prior to terminating the program, print the number of squares printed and the average length.
Your program must use all three of the repetition control statements.
The following provides an example of how your program output should be formatted. User inputs are enclosed in brackets <>.
Enter length between 0 and 64 (-1 to exit): <4> length entered: 4 +--+ | | | | +--+
Enter length between 0 and 64 (-1 to exit): <0> length entered: 0
Enter a length between 0 and 64 (-1 to exit): <-2> length entered: -2 is invalid Length must be between 0 and 64 inclusive, or enter -1 to exit. Enter a length between 0 and 64 (-1 to exit): <1> length entered: 1 +
Enter a length between 0 and 64 (-1 to exit): <2> length entered: 2 ++ ++
Enter a length between 0 and 64 (-1 to exit): <6> length entered: 6 +----+ | | | | | | | | +----+
Enter a length between 0 and 64 (-1 to exit): <-1> 4 squares printed. Average length: 3.25
Deliverables: 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
Platform:
windows XP
Must be 100% finished and received by buyer on:
Nov 12, 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)
|
Nov 10, 2002 5:04:17 PM EDT
|
4.75
(Average)
|
|
|
I have 5 years programming in C++ and I can provide you a quality solution in less than 24 hours.
Best Regards.
|
|
|
|
|
|