943,735 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1950
  • C++ RSS
You are currently viewing page 1 of this multi-page discussion thread
Feb 9th, 2008
0

Please help. Give me a solution

Expand Post »
Hi to everyone. It's my first post here and I'd like to get some help.
A friend of mine has 2 (simple for you) problems to solve and she doesn't have a clue (and nether do I).

Prob 1.) Write a code in C++ (visual) that reads from the keyboard integer numbers and saves them at a table (of integer numbers) of two dimensions with n rows and n columns.
Next it should do the folowings:
a) Show the contents of the table on screen
b) Find the biggest number of each row
c) Find the smallest number of each column
d) Find the quantum of the odds and of the evens
e) At the end of the program, it should show all the previous results on screen


Prob 2.) Write a code in C++ (visual) that reads from the keyboard integer numbers and saves them at a table (of integer numbers) of two dimensions with n rows and n columns.
Next it should do the folowings:
a) Show the contents of the table on screen
b) Sort the evens of each row from the smallest to the biggest and the odd of each row from the biggest to the smallest.
e) At the end of the program, it should show the previous result on screen

Shes only knows the basics and "do-while" and "for".

If anyone could help me, I'd be grateful. Please, please, please!!
Thank you in advance.
Last edited by thodragon; Feb 9th, 2008 at 5:49 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
thodragon is offline Offline
8 posts
since Feb 2008
Feb 9th, 2008
0

Re: Please help. Give me a solution

You must have missed reading the Rules as requested when you registered, as well as the post titled Read Me: Read This Before Posting at the top of the forum...
Moderator
Reputation Points: 3278
Solved Threads: 890
Posting Sage
WaltP is offline Offline
7,718 posts
since May 2006
Feb 9th, 2008
0

Re: Please help. Give me a solution

I've just read the "read me..."
I know I'm wrong and I apologize. But I'm just asking for help. This friend of mine is studying chemistry in Greece. In chemistry, there's no need to know C++, but in greek university seems that knowing c++ is helpful in chemistry!!! Who knows!! Anyway, the only thing i/she wants is just to pass the class so that she'd be able to continue. Nothing more.
If anyone could help me, please do.
Thank you and I'm sorry.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
thodragon is offline Offline
8 posts
since Feb 2008
Feb 9th, 2008
0

Re: Please help. Give me a solution

I am only new here, but is really surprising (and saddening) how many people just post up their assignments hoping someone else will do the ALL the work.

As an employer of IT graduates I get to read a lot of CV's an interview a lot of candidates. And to be frank the majority of them are rubbish and it is easy to see why.

It only takes 5 mins in an interview to work out who are the people who 'don't have a clue'. So while you might pass your assignment, by copying the work of others, ultimately you still won't get a good job in IT. The sham will be exposed during the first few interview questions.

For a laugh I ask the computer science graduates how a computer works. I get answers like, 'you push the power button, then type on the keyboard to make it work'. Roughly the same answer a 10 year old would give. Needless to say some of the interviews are very short and end in tears.

So better to either make half an effort to study the material, or give up now and do someone that is more suited to your skills.
Reputation Points: 36
Solved Threads: 0
Light Poster
Passmark is offline Offline
32 posts
since Jan 2008
Feb 9th, 2008
0

Re: Please help. Give me a solution

Click to Expand / Collapse  Quote originally posted by Passmark ...
I am only new here, but is really surprising (and saddening) how many people just post up their assignments hoping someone else will do the ALL the work.

As an employer of IT graduates I get to read a lot of CV's an interview a lot of candidates. And to be frank the majority of them are rubbish and it is easy to see why.

It only takes 5 mins in an interview to work out who are the people who 'don't have a clue'. So while you might pass your assignment, by copying the work of others, ultimately you still won't get a good job in IT. The sham will be exposed during the first few interview questions.

For a laugh I ask the computer science graduates how a computer works. I get answers like, 'you push the power button, then type on the keyboard to make it work'. Roughly the same answer a 10 year old would give. Needless to say some of the interviews are very short and end in tears.

So better to either make half an effort to study the material, or give up
now and do someone that is more suited to your skills.
I agree with you.
But, first this isn't my assignment, but a friend's of mine.
Secondly, she is NOT going to be an IT (she only knows how to use a pc), but she'll graduate with a chemistry degree. She doesn't even know why she should study c++, but she has to. Even the professor she has tryies to help them but she doesn't have a clue about c++. That's why she is asking for help.
Anyway, it's your call.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
thodragon is offline Offline
8 posts
since Feb 2008
Feb 9th, 2008
0

Re: Please help. Give me a solution

Click to Expand / Collapse  Quote originally posted by thodragon ...
I agree with you.
But, first this isn't my assignment, but a friend's of mine.
Exactly. It's her assignment, not ours. We are not going to do her work for her. We don't get the grade.


Click to Expand / Collapse  Quote originally posted by thodragon ...
She doesn't even know why she should study c++, but she has to.
So, it's a requirement for her to study C++? And you feel that's stupid so it's better to have us do her work? Think again. A requirement is a requirement. If she can't do it, change to a school that doesn't have that requirement.


Click to Expand / Collapse  Quote originally posted by thodragon ...
Even the professor she has tryies to help them but she doesn't have a clue about c++. That's why she is asking for help.
No, she's not asking for help. You're asking us to do it for her. That's not help. That's charity.


Click to Expand / Collapse  Quote originally posted by thodragon ...
Anyway, it's your call.
No, it's her call. Wouldn't be better to have her post, instead of you? After all, who has the problem? Maybe she can follow the rules better than you since she has the code.
Moderator
Reputation Points: 3278
Solved Threads: 890
Posting Sage
WaltP is offline Offline
7,718 posts
since May 2006
Feb 9th, 2008
0

Re: Please help. Give me a solution

Quote ...
but she'll graduate with a chemistry degree...
I had to do organic and inorganic chemistry to get a degree in computer science (and maths, physics, astronomy and philosophy).

At the time I thought it was dumb, but 20 years on, I don't regret doing it. It is useful from time to time.

Except for philosophy, which really was dumb

All science students should learn some computing IMHO. They'll use it.
Reputation Points: 36
Solved Threads: 0
Light Poster
Passmark is offline Offline
32 posts
since Jan 2008
Feb 9th, 2008
0

Re: Please help. Give me a solution

Click to Expand / Collapse  Quote originally posted by WaltP ...
Exactly. It's her assignment, not ours. We are not going to do her work for her. We don't get the grade.

No, she's not asking for help. You're asking us to do it for her. That's not help. That's charity.
"You don't get the grade", "that's charity".
Next thing is to send me your bank account!! I asked for help. Do you know what does the word "help" mean? What am I saying? You are mr smart guy, of course you know.
I didn't make you to do it. I asked from all of you, very very politely i believe, to help me do it. If you don't want to help, just don't. Just don't brake my balls, ok?

Click to Expand / Collapse  Quote originally posted by WaltP ...
So, it's a requirement for her to study C++? And you feel that's stupid so it's better to have us do her work? Think again. A requirement is a requirement. If she can't do it, change to a school that doesn't have that requirement.
I won't even bother to explain, especially to you, of what I think or what I believe. As I told before, if you don't want to help, just don't. Maybe there are others here who are kind enough to help, or at least have the right manners to say no. I have never made anyone do something didn't want to.
Oh, sorry, I forgot. You are the smartass of the forum, so you absolutely have to say something, even if you don't know why.


Click to Expand / Collapse  Quote originally posted by WaltP ...
No, it's her call. Wouldn't be better to have her post, instead of you? After all, who has the problem? Maybe she can follow the rules better than you since she has the code.
Hey Einstein, as I wrote before, she barely knows how to use a pc, you expect her to post in here? And by asking me for help, means that she wants someone to tell her how to do it. She doesn't care if I knew it myself, or asked you. Otherwise, she would do it by herself. Dah!!
And as for the rules. I am member in lots of forums for many years. I have never done anything that is braking the rules. I know I've done it know, in purpose, and when I was told (it's the second post), I apologized politely and just asked if anyone could help me.
I't the first time in my life that I speak/write to someone in a forum in a bad way, and for that I apologize from all of the other users, but I can't stand ανυ wise guy talking to me like this. You don't know me, you should respect me, and you should behave better. I'm not the only one braking the rules here you know.

Anyway, I spent much more time for you than you even worth, it's time to go.
Thank's for being a dick. At least you are real, you are yourself.
Goodnight.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
thodragon is offline Offline
8 posts
since Feb 2008
Feb 9th, 2008
0

Re: Please help. Give me a solution

Click to Expand / Collapse  Quote originally posted by Passmark ...
I had to do organic and inorganic chemistry to get a degree in computer science (and maths, physics, astronomy and philosophy).

At the time I thought it was dumb, but 20 years on, I don't regret doing it. It is useful from time to time.

Except for philosophy, which really was dumb

All science students should learn some computing IMHO. They'll use it.
You know, I believe you are right. It would be useful to learn how to use a computer. Very useful indeed. But how do you expect from someone who doesn't know almost anything about pc's, to make programs with c++. Even the smallest ones!!
And i really can't understand, where would c++ help her as a chemical!!

Anyway. First problem is solved. It took me a day for something that most of you would spend just a few minutes , but at least I've done it. Now I have to do my best for the second one.
Thank you all for your time and have a good night.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
thodragon is offline Offline
8 posts
since Feb 2008
Feb 9th, 2008
0

Re: Please help. Give me a solution

Click to Expand / Collapse  Quote originally posted by thodragon ...
"You don't get the grade", "that's charity".
Next thing is to send me your bank account!! I asked for help. Do you know what does the word "help" mean? What am I saying? You are mr smart guy, of course you know.
I didn't make you to do it. I asked from all of you, very very politely i believe, to help me do it.
No, you didn't "ask very politely to help you do it". You asked us to give you the solution without any effort on your part. Those are two very different things. I don't know about you, but I sure don't define 'help' as giving someone the answer.

Quote ...
Hey Einstein, as I wrote before, she barely knows how to use a pc,
If she barely knows how to use a PC, she has no business in a programming course. What part of this can't you understand?

Quote ...
And as for the rules. I am member in lots of forums for many years. I have never done anything that is braking the rules. I know I've done it know, in purpose, and when I was told (it's the second post), I apologized politely and just asked if anyone could help me.
I't the first time in my life that I speak/write to someone in a forum in a bad way, and for that I apologize from all of the other users, but I can't stand ανυ wise guy talking to me like this. You don't know me, you should respect me, and you should behave better. I'm not the only one braking the rules here you know.
On the contrary. WaltP has been conducting himself in a very clean, professional manner. I can't say the same about you, however.

Quote ...
Thank's for being a dick.
Oh, the irony.
Last edited by John A; Feb 9th, 2008 at 7:39 pm.
Team Colleague
Reputation Points: 2240
Solved Threads: 338
Vampirical Lurker
John A is offline Offline
5,055 posts
since Apr 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: how to control a stepper motor using a microcontroller programmed at c++
Next Thread in C++ Forum Timeline: String display problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC