Show Bid Request
Multiplication Tables
Bid Request Id: 35786
|
|
|
Posted by: |
aminew (21 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Very Good - 0.00%
|
Buyer Security Verifications: |
Good
|
Approved on: |
Nov 17, 2002 1:55:50 AM EDT
|
Bidding Closes: |
Nov 19, 2002 2:02:27 AM EDT
|
Viewed (by coders): |
198 times
|
Deadline: |
11/19/2002 2:02:27 AM
TIME EXPIRED
|
|
|
|
Description:
Overview This is an interactive program that requires the use of repetition control statements (i.e. loops).
Specification Enter into a sentinel controlled query loop that prompts the user to enter how many rows and columns they want to see in a multiplication table.
Based on the user inputs, generate and print the appropriate multiplication table. If the user enters -99 for the number of rows or the number of columns, then print the total number of tables generated and terminate the program.
Print an error message to the standard error stream if any of the following are true:
number of rows is less than 1 (and not equal the sentinel value) number of rows is greater than 16 number of columns is less than 1 number of columns is greater than 12 [Note: be sure you use manifest constants.]
The logic (i.e. code) for printing the multiplication table must be contained within a function. After user inputs have been obtained, then call your function to print the table. The function receives two int parameters -- the number of rows and the number of columns.
int rowcnt, colcnt;
... // code goes here
cin >> rowcnt;
... // code goes here
cin >> colcnt;
... // code goes here
printMultTable(rowcnt, colcnt);
... // code goes here
/* * this function prints a ... */ void printMultTable(int nrows, int ncols) { ... // code goes here }
Print headings along the top and down the side of each table.
You are required to use all three repetition control statements in this program (i.e. your program must have at least one for() statement, one while() statement, and one do-while() statement).
Your multiplication tables must be nicely formatted (i.e. fixed column widths -- see setw()).
Deliverables: 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2)
Example Output
Assume user inputs are in brackets <>.
Enter number of rows 1-16 (-99 to exit): <12>
Enter number of columns 1-12 (-99 to exit): <12>
1 2 3 4 5 6 7 8 9 10 11 12
-----------------------------------------------------
1 | 1 2 3 4 5 6 7 8 9 10 11 12
2 | 2 4 6 8 10 12 14 16 18 20 22 24
3 | 3 6 9 12 15 18 21 24 27 30 33 36
4 | 4 8 12 16 20 24 28 32 36 40 44 48
5 | 5 10 15 20 25 30 35 40 45 50 55 60
6 | 6 12 18 24 30 36 42 48 54 60 66 72
7 | 7 14 21 28 35 42 49 56 63 70 77 84
8 | 8 16 24 32 40 48 56 64 72 80 88 96
9 | 9 18 27 36 45 54 63 72 81 90 99 108
10 | 10 20 30 40 50 60 70 80 90 100 110 120
11 | 11 22 33 44 55 66 77 88 99 110 121 132
12 | 12 24 36 48 60 72 84 96 108 120 132 144
Enter number of rows 1-16 (-99 to exit): <0>
*** error: invalid number of rows entered
Enter number of rows 1-16 (-99 to exit): <5>
Enter number of columns 1-12 (-99 to exit): <15>
*** error: invalid number of columns entered
Enter number of columns 1-12 (-99 to exit): <10>
1 2 3 4 5 6 7 8 9 10
---------------------------------------------
1 | 1 2 3 4 5 6 7 8 9 10
2 | 2 4 6 8 10 12 14 16 18 20
3 | 3 6 9 12 15 18 21 24 27 30
4 | 4 8 12 16 20 24 28 32 36 40
5 | 5 10 15 20 25 30 35 40 45 50
Enter number of rows 1-16 (-99 to exit): <-99>
2 tables generated.
Platform:
windows XP
Must be 100% finished and received by buyer on:
Nov 19, 2002 2:02:27 AM 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!
|
$9 (USD)
|
Nov 17, 2002 8:05:43 AM EDT
|
10
(Excellent)
|
|
|
Hello, this application is easy to write and I have already made it. I have attached it in executable form. If you accept this bid you will get the source code as well.
The program is bug-free, but in case you discover any kind of problem with it, I will fix it for free. I will also help you understand the code if you need to.
Thanks
|
|
Attached File
|
|
|
|
|