Banking System Pre-Interview Coding Sample

I blogged about the increasing tendency for employers to give potential candidates some form of programming task to complete before an interview. The FizzBuzz test is on the simplistic end of the spectrum. The opposite side is something like this Banking System application. This test is as follows:

A banking system is developing a system to manage its employees. The first phase will implement basic employee information and activities. Additional company personal may be added in the future.

The application needs to contain the following business requirements: Continue reading

LAB: Hex/Decimal Converter

There are times that it is necessary to convert between hex and decimals numbers. Recently I was using a hex color on a web site and then wanted to use the same color with an alpha value to make the color semi-transparent. This is very easy to do in CSS but you can’t do it with the hex values so I had to convert them into their decimal equivalents for the RGB values. This also is rather easy to do in C# code so here are the objectives for this lab:

Create a basic console application that will:

  • Ask a user if they want to convert from hex to decimal or vice versa and capture their response
  • Ask user to input a two character hex value if they want to convert from hex to decimal
  • Ask the user to input a numeric value up to 255 if they want to convert from decimal to hex
  • Capture their input and preform the conversion then display the conversion results
  • Allow the user to repeat the process as many times as they would desire.

Continue reading

The FizzBuzz Test

It is becoming very common place before an employer will take the time for an interview to make sure that a candidate has the skills that are needed to actually program (verses simply passed some certification exams but still can’t apply their programming knowledge practically). One of the simplest tests is called the FizzBuzz test. This test is as follows:

Write a program that prints the integers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”.

There are multiple ways to solve this problem. Focus on the way that makes the most sense to you. Chances are that they will have you explain your code so make sure that it is YOUR code so that you can explain it. Finding an answer online that is short and sophisticated but that you can’t explain is a really good way to botch an interview!