views:

85

answers:

3

Hello guys!

We'll soon have some high school kids here in our company for some training lessons in programming for about 1 1/2 days.

We decided to do Visual Basic.NET and thought about programming a little calculator with the four basic operators.

Considering the fact that they will be here for only 1 1/2 days, this application might be "too" complex to be taught in this time range.

Do you have any ideas of what else can be taught in such a short time?

All help is very appreciated!

A: 

I would think the calculator would be doable. Your basically only doing a simple form with some buttons and some basic logic on the various click events for the operators. Only issue would be the logic for chaining the operands and operators.

You might want to do a trial run by yourself of the project, and think where you would break it into steps to explain and such and see how long it takes.

schooner
Parsing the string can be harsh, and dividing the view (textbox/label) and the actual vars can be confusing).
Dykam
+1  A: 

Simplefied version, only plus and minus. Or a leet/1337 translator, only requires them to do:

newBox.Text = oldBox.Text.Replace("l", "1").Replace("e", "3").Replace("t", "7")
Dykam
Good idea! might be fun to do, thanks :]
Shaharyar
+2  A: 

I'd say 1.5days for a calculator by a complete novice is about spot on actually.

You could set the task as a simple 4-operator to be a target. If they surpass this they can add more complex functions. If not then it could simply be just for adding for example. The complexity is expandable depending on the student.

Smalltown2000
Good point, it is a simple project that can easily be scaled back or expanded based on how quickly the students progress.
schooner
I think I will go with the calculator then. One Form with two Textboxes and the four operation buttons. (A MessageBox returns the result)
Shaharyar