Click here to Skip to main content
15,860,972 members
Home / Discussions / C#
   

C#

 
AnswerRe: Why Main? Pin
kkun11-Apr-07 21:25
kkun11-Apr-07 21:25 
AnswerRe: Why Main? Pin
Jaiprakash M Bankolli11-Apr-07 21:45
Jaiprakash M Bankolli11-Apr-07 21:45 
AnswerRe: Why Main? Pin
Guffa11-Apr-07 22:31
Guffa11-Apr-07 22:31 
QuestionRichTextBox flickering Pin
moid.ahmed11-Apr-07 19:16
moid.ahmed11-Apr-07 19:16 
AnswerRe: RichTextBox flickering Pin
andre_swnpl11-Apr-07 19:29
andre_swnpl11-Apr-07 19:29 
QuestionEvaluvating Expression in C# Pin
act_ramesh11-Apr-07 18:53
act_ramesh11-Apr-07 18:53 
AnswerRe: Evaluvating Expression in C# Pin
Stevo Z11-Apr-07 22:28
Stevo Z11-Apr-07 22:28 
QuestionWhy didn't I get the job? Pin
Mark J. Miller11-Apr-07 12:04
Mark J. Miller11-Apr-07 12:04 
I recently had a series of very good interviews with a company I was very excited about and was told I was the top candidate for the senior position. At the end of the interview I was given the assignment below and I was told to zip up the files and return them to the project manager for review when I was done. I was open in the interview that I had no experience in unit testing. I was assured this was no problem and I could omit that portion of the exercise. However, I opted to give it a shot - an opportunity to show I was a quick and willing learner when needed.

After I turned in the "assignment" to the project manager, I was told that after reviewing the code I would be passed over for the position.

I would be VERY appreciative of any feedback anyone might have as to what's wrong with my sample project? I have worked for the same small company for over 6 years and had no experience when I did, so I don't know if there's something I did that killed it for me. I bear no ill will to the company I interviewed for and I have removed any indications from any text that might indicate who the interview was with. But I still must continue to interview and if I'm doing something wrong, I want to nip it in the bud.

The assignment is below and here's a link to the project, exactly as I submitted it: Hire_Exercise.zip (179.7 Kb)

Please, don't spare my feelings, I would really appreciate some constructive criticism.

Thanks,

Mark
--------------------------------------------------------------------------------------------------

Hiring_Exercise

Development Requirements

1) Read an ascii text file named “Hire_input.txt” that contains a list of numbers with values between 0 and 100, each number separated by a cr/lf

Sample input (Hire_input.txt)
6
54
12
22
1
6

2) Sort the numbers in ascending order and write the results to an output file named “Hire_Ascending.txt”. Format the file in the same manner as the input file (cr/lf delimiters).

Sample output (Hire_Ascending.txt)
1
6
6
12
22
54

3) Group the numbers by their value and produce a histogram list providing the count of how many numbers of each value were read. Write the output to a file named “Hire_histogram.txt”, formatted using cr/lf delimiters.

Sample output (Hire_histogram.txt)

1 – 1
6 – 2
12 – 1
22 – 1
54 – 1

Additional Notes

• Name the program Hire_exercise.exe
• No user interface is required, the program will be run from the console should require no command line parameters to execute normally
• Assume that all files (input and output) will be found/created in the same directory as the program executes
• As part of the exercise, you are expected to write unit tests appropriate for the task.
• Use the development tools of your choice.
• You may not use any external libraries with the exception of standard I/O and a unit testing framework (if you choose).
• You may not use any built-in data structures such as lists, vectors, queues etc. You must build your solution using basic types such as integers, strings and arrays.
• You may not use any built-in sort or histogram functions.
• Please submit all available aspects of your work (source, buildfiles, executables, test input/output etc)
AnswerRe: Why didn't I get the job? Pin
J$11-Apr-07 12:47
J$11-Apr-07 12:47 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller11-Apr-07 13:01
Mark J. Miller11-Apr-07 13:01 
GeneralRe: Why didn't I get the job? Pin
J$11-Apr-07 13:38
J$11-Apr-07 13:38 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller11-Apr-07 13:45
Mark J. Miller11-Apr-07 13:45 
AnswerRe: Why didn't I get the job? Pin
Colin Angus Mackay11-Apr-07 12:49
Colin Angus Mackay11-Apr-07 12:49 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller11-Apr-07 13:16
Mark J. Miller11-Apr-07 13:16 
AnswerRe: Why didn't I get the job? Pin
Christian Graus11-Apr-07 13:51
protectorChristian Graus11-Apr-07 13:51 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller12-Apr-07 2:59
Mark J. Miller12-Apr-07 2:59 
AnswerRe: Why didn't I get the job? Pin
Martin#11-Apr-07 20:22
Martin#11-Apr-07 20:22 
GeneralRe: Why didn't I get the job? Pin
blackjack215011-Apr-07 21:06
blackjack215011-Apr-07 21:06 
GeneralRe: Why didn't I get the job? Pin
Martin#11-Apr-07 21:21
Martin#11-Apr-07 21:21 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller12-Apr-07 2:55
Mark J. Miller12-Apr-07 2:55 
GeneralRe: Why didn't I get the job? Pin
Martin#12-Apr-07 3:07
Martin#12-Apr-07 3:07 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller12-Apr-07 3:25
Mark J. Miller12-Apr-07 3:25 
GeneralRe: Why didn't I get the job? Pin
Martin#12-Apr-07 3:32
Martin#12-Apr-07 3:32 
AnswerRe: Why didn't I get the job? Pin
Jaiprakash M Bankolli11-Apr-07 22:10
Jaiprakash M Bankolli11-Apr-07 22:10 
GeneralRe: Why didn't I get the job? Pin
Mark J. Miller12-Apr-07 3:01
Mark J. Miller12-Apr-07 3:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.