Home  /  Computers



  Print this article
  Email to friend
15 Exercises for Learning a new Programming Language
Author:

I've working knowledge of a bunch of programming languages but job demands to learn a new language frequently in a short time. Instead of reading hundreds manual/book pages, I quickly read 10-15 pages of tutorial or primer. (As you know google is the best search engine to look for such stuff). I keep

printed copy of the language syntax reference card handy. (There are many reference cards available over internet. Type in 'language to learn' + 'reference card' in google.)
First of all, get familiar with Compiler, compiler option, editor shortcuts or integrated development environment (IDE). Start with a simple 'Hello World' program. Compile it. Use basic functionalities of debugger like setting break points, printing variable values, moving to the next or specific position, stopping debugger etc.
To grasp basics of a new language quickly, here are the exercises I use. Remember some programs may not good for beginners.
(1) Display series of numbers (1,2,3,4, 5....etc) in an infinite loop. The program should quit if someone hits a specific key (Say ESCAPE key).
(2) Fibonacci series, swapping two variables, finding maximum/minimum among a list of numbers.
(3) Accepting series of numbers, strings from keyboard and sorting them ascending, descending order.
(4) Reynolds number is calculated using formula (D*v*rho)/mu Where D = Diameter, V= velocity, rho = density mu = viscosity Write a program that will accept all values in appropriate units (Don't worry about unit conversion) If number is < 2100, display Laminar flow, If it's between 2100 and 4000 display 'Transient flow' and if more than '4000', display 'Turbulent Flow' (If, else, then...)
(5) Modify the above

   ( Next Page )


Rate this article:  (No ratings yet)

 Saving ...

RECENT ARTICLES FROM COMPUTERS CATEGORY
Keep Your Passwords Safe on Public Use Computers (Author: Garnet Bailey)

As you no doubt realize, passwords are the keys to our resources, our belongings and our online accounts, including our finances. While using our own home or office facilities, most of us work hard at ...


How to Win at Internet Backgammon - Learning for Free (Author: Stephen Todd)

The first backgammon web site came online in 1994, but now that there are fast Internet connections, online backgammon has become extremely popular.Before you challenge a human opponent to a ...


Simple Guide In Sending Fax Through Internet: Learn About Email Faxing (Author: Claudia Walters)

Simple guide in sending fax through Internet: learn more about Email faxing There is lots of Internet faxing services that enable you to send your faxes through the Internet. It is a type of online ...


VoIP – Competing Providers Need to Come Together (Author: Bronwen Roberts)

Voice of IP (VoIP) has changed the telecommunications playing field, but not only in the ways that we expected. We knew that national and international call costs would reduce, we knew that Telkom ...


Microsoft CRM Implementation & Remote Support (Author: Andrew Karasev)

We would like to give you pluses and minuses of Microsoft CRM. Web and MS Outlook based client - this means that you don't need additional installations or training - everyone is using ...


SEARCH
Search for:


In:


NEWSLETTER
E-mail address:


Name:


Copyright ©2007 HyperArticles.com. All Rights Reserved. - Privacy Policy - Disclaimer