1,105,406 Community Members

I need a code please

waddaharafeh
Newbie Poster
2 posts since Jan 2013
Reputation Points: -3 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
Unverified Member
 
0
 

I Need a Code For This Question Please

Suppose you have a text file containing the name of salesperson followed by 3 numbers representing his sales during a certain period:
Ali
30
40
60
Khaled
44
99
88
Suad
88
90
60
.....
....
You are requested to process the file and generate the total sales for each salesperson in the following format:
Khaled: 130

.....
You have to display the results in:

a listbox and
output it in another text file results.txt

Member Avatar
ddanbe
Posting Expert
5,361 posts since Oct 2008
Reputation Points: 2,066 [?]
Q&As Helped to Solve: 908 [?]
Skill Endorsements: 46 [?]
Featured
 
2
 

Why on earth do you think I should do your homework?
What have you tried for yourself and what problems have you encountered?
Post a question about that and we will try to solve it.
(Think I'm gonna make a template of the above text . . .)

waddaharafeh
Newbie Poster
2 posts since Jan 2013
Reputation Points: -3 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
Unverified Member
 
-1
 

its not a homework dudeee....its a question i saw it in another site and i need this code please if you know how to solve it

Member Avatar
ddanbe
Posting Expert
5,361 posts since Oct 2008
Reputation Points: 2,066 [?]
Q&As Helped to Solve: 908 [?]
Skill Endorsements: 46 [?]
Featured
 
0
 

If I see something like your post on a site, then it must interest me yes?
I would give it a try myself.
If I run into problems, I will post a question on DaniWeb :)
Btw nice try for an excuse! DaniWeb should start a competition and give a price for the best excuse of the year!

Member Avatar
peter_budo
Code tags enforcer
7,939 posts since Dec 2004
Reputation Points: 2,502 [?]
Q&As Helped to Solve: 1,028 [?]
Skill Endorsements: 66 [?]
Moderator
Featured
 
0
 

Forum rules clearly states

Do provide evidence of having done some work yourself if posting questions from school or work assignments

So quit dudeeing around and show some code!

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article