Help me win a bet please!!

Pages: 12
I had a bet with my friend, this is my second question posting on C++ ever. My first experience wasn't so good as i lost my bet but hopefully this time i will win. I don't know anything about C++ so please don't expect me to pre-understand anything. The question is as follows:

Create a program that declares a 2 dimensional array and fills it with random numbers. You will need to create functions that: fill the 2D array, find a number and count the number of instances of the number in the 2d array and load the coordinates of the matches in an array or arrays. You will need functions to print the array 2D array and the list of coordinates of matches.

In the main function create an array called everyOdd. The array should hold seven rows with six columns.

Create a void function call FirstArray that will fill a 2D array with variable rows and six columns with random odd numbers from 1 to 99. Don’t assume the function will only be used to fill 7x6 tables.

Create a void function call SecondArray that will print a 2D array with any number of rows and six columns. Don’t assume the function will only be used to print 7x6 tables.

Create a value producing function called TheNumber that will search a two dimensional array of various rows and nine columns for the number of times a particular number is found within the array. The function should return the number of times the number appears within the array and the coordinates, row and column, where each match is located. Don’t assume the function will only search 7x6 tables.

Your TheNumber function should take as arguments the number to search for, and the two dimensional array to search. You are going also to need something to fill with the the row and column coordinates of found matches. Use either one or two arrays to hold the coordinates, your choice.

Next, create another function called ReadtheArray that will have as arguments a set of row and column coordinates, and a 2D array of variable rows and six columns to read. This function should just use the row and column coordinates arguments to read the 2D array passed in at the coordinates and return the value at those row and column coordinates. As the array to be read should not be changed by this function, the array argument should be a constant.
What exactly is the bet? You told us you have one, but on what conditions?
What do you mean on what conditions, he gave me a question and i have to give him the answer tomorrow!!
So, basically, you're asking us to help you fraudulently win a bet?

That's an awfully specific task for the subject of a bet between two friends. In fact, it looks suspiciously like a homework assignment...

EDIT: Also, don't spam the forum with multiple posts on the same topic.
Last edited on
i lost my bet but hopefully this time i will win. I don't know anything about C++ so please don't expect me to pre-understand anything.

You can flip a coin and hope that you win occasionally. That does not require much knowledge or understanding.

On your case, however, victory depends on ability and willingness to think and on knowledge about basics (of C++). You do know that you have no chance to win, but you nevertheless make a bet? No amount of hope will get you there.

We do not expect you to pre-understand. We expect you to work as hard as humanly possible, to try, to read, to think, to learn, to show us that you have made serious effort.
I am sorry every one for asking help!! My bad!! I AM SO SORRY, i didn't know all what people are here for is money.. I am out!!
It was a bet dude, I swear but any way it's alright I understand. Thanks
Respected sir i never understood any thing, i mentioned " I understand" referring to the point that it seems like a homework question, now i don't know what you want to call it, the sad reality is that my friend gave me the question and all i did was to copy and paste it.Although i am not a C++ student the point is that i am a student and i know how to read and write and anyone who can read and write possesses common understanding of basic things. I mean i can see that my friend gave me his question but the point is that i don't care if this was his homework question, he said if i could solve it he would give me money and we didn't set any conditions that what could i do or what i should not do, it was on me to get the answer. And i think even if he gave me his homework questions yes it is bad for him but he is old enough to understand that. P.S.
how does he know arrays and stuff in just like 30 minutes?
what do you mean by that what did i understood??. Now if you want to think that i know everything and i was lying and feel god about it then sure thing go ahead be happy. You are free to assume whatever you want. Just a free advice: "If you are reading someone's comment then read it with an open mind rather than calling them "LIAR"
Last edited on
Jonathon1234 wrote:
I AM SO SORRY, i didn't know all what people are here for is money.. I am out!!
Jonathon1234 wrote:
he said if i could solve it he would give me money...

Interesting.
Bye
Yeah, it's totally not a homework assignment from CSIS 113A Lab 16 2D Arrays.
EVERYONE @BHX IS ABSOLUTELY RIGHT THIS POST IS A SPAM I AM TAKING C++ AT COLLEGE AND THIS IS A HOMEWORK QUESTION. I WOULD REQUEST ADMIN TO DELETE THIS FORUM.!!
As i mentioned above my friend gave me this question
my friend gave me his question but the point is that i don't care if this was his homework question, he said if i could solve it he would give me money and we didn't set any conditions that what could i do or what i should not do, it was on me to get the answer. And i think even if he gave me his homework questions yes it is bad for him but he is old enough to understand
. So, delete this forum if you want because from now on i will definitely not take on any bet about c++ from any one. I am sorry for causing every one pain.
That's my point, I said
any way it's alright I understand.
, and i meant by that, that i understand it seems like a homework question. Again i would say the same thing i didn't Lied to anyone and even if now you guys want to call me a liar then i cannot stop you from saying that.. Have a good one.
My real name is Johnathon and my friend's Email I-D is tbhaiawesome@gmail.com, and his name is Tj, go please email him and ask him so that it is clear to you.
WheatFieldOnFire wrote:
We should leave this here for other people to read so we all know what kind of people we have in our forums.

You should try not to provoke a flamewar over a question whose answer doesn't matter.

@Johnathon1234
And you should probably stop replying to WheatFieldOnFire, unless he posts something productive.

In general, I don't really care what you do with your code, whether I help you or not. To me, at least, that's your responsibility, your problem.

http://www.catb.org/~esr/faqs/smart-questions.html
Seeing as the deadline for the bet has passed, there is no point in me stressing over this anymore. This is how I knew what the course and lab it was: http://pastebin.com/qyhtAMp1
There might have been a language issue.

When someone gets paid for doing something, that is often called "work", not "bet".

A "bet", AFAIK means putting your valuables at risk with a slight chance of not losing them. That requires no work.

"Homework" is work, where the payment is in form of self-improvement; a less tangible asset than gold bullions ...
My real name is Johnathon and my friend's Email I-D is [redacted], and his name is Tj, go please email him and ask him so that it is clear to you.

Does your friend know that you're publishing his personal email address to a public forum? Has he given you permission to do so?

If not, you should edit your post to remove it immediately, as it's a violation of his privacy.

EDIT: PM'ing this too, to ensure it gets his attention
Last edited on
My friend knows this and i texted him first before writing his e-mail in this forum and anyway the bet time is over so it doesn't matter.. Just leave me now!!
Pages: 12