Please help. Give me a solution

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2008
Posts: 8
Reputation: thodragon is an unknown quantity at this point 
Solved Threads: 0
thodragon thodragon is offline Offline
Newbie Poster

Please help. Give me a solution

 
0
  #1
Feb 9th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 3,127
Reputation: WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of 
Solved Threads: 283
Moderator
WaltP's Avatar
WaltP WaltP is offline Offline
Posting Sensei

Re: Please help. Give me a solution

 
0
  #2
Feb 9th, 2008
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...
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 8
Reputation: thodragon is an unknown quantity at this point 
Solved Threads: 0
thodragon thodragon is offline Offline
Newbie Poster

Re: Please help. Give me a solution

 
0
  #3
Feb 9th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 31
Reputation: Passmark is an unknown quantity at this point 
Solved Threads: 0
Passmark's Avatar
Passmark Passmark is offline Offline
Light Poster

Re: Please help. Give me a solution

 
0
  #4
Feb 9th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 8
Reputation: thodragon is an unknown quantity at this point 
Solved Threads: 0
thodragon thodragon is offline Offline
Newbie Poster

Re: Please help. Give me a solution

 
0
  #5
Feb 9th, 2008
Originally Posted by Passmark View Post
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.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 3,127
Reputation: WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of 
Solved Threads: 283
Moderator
WaltP's Avatar
WaltP WaltP is offline Offline
Posting Sensei

Re: Please help. Give me a solution

 
0
  #6
Feb 9th, 2008
Originally Posted by thodragon View Post
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.


Originally Posted by thodragon View Post
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.


Originally Posted by thodragon View Post
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.


Originally Posted by thodragon View Post
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.
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 31
Reputation: Passmark is an unknown quantity at this point 
Solved Threads: 0
Passmark's Avatar
Passmark Passmark is offline Offline
Light Poster

Re: Please help. Give me a solution

 
0
  #7
Feb 9th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 8
Reputation: thodragon is an unknown quantity at this point 
Solved Threads: 0
thodragon thodragon is offline Offline
Newbie Poster

Re: Please help. Give me a solution

 
0
  #8
Feb 9th, 2008
Originally Posted by WaltP View Post
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?

Originally Posted by WaltP View Post
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.


Originally Posted by WaltP View Post
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 8
Reputation: thodragon is an unknown quantity at this point 
Solved Threads: 0
thodragon thodragon is offline Offline
Newbie Poster

Re: Please help. Give me a solution

 
0
  #9
Feb 9th, 2008
Originally Posted by Passmark View Post
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5,051
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker

Re: Please help. Give me a solution

 
0
  #10
Feb 9th, 2008
Originally Posted by thodragon View Post
"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.

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?

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.

Thank's for being a dick.
Oh, the irony.
Last edited by John A; Feb 9th, 2008 at 7:39 pm.
"Technological progress is like an axe in the hands of a pathological criminal."

All my posts may be freely redistributed under the terms of the MIT license.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1634 | Replies: 15
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC