Some C++ programs

Update:
As requested by Sajith Karingat (comment #29), I worked on a Phone Billing System in C++, as per his requirements. You can download it here.

I have entered my final year in my B.Tech course, and with it, it’s placement time. Companies for the computer science stream (my stream) will start visiting my college beginning from 11th August. The first to come will be TCS (Tata Consultancy Services) which is considered as a good IT firm in India with global fame.

As part of my prep for the placements, obviously, I am revising my concepts (technical ones). Today, as it was raining heavily in the college, we sat in our central canteen, waiting for the rain to stop. During that time, we held a heated discussion on C++ programs that were most likely to be asked in interviews for placements.

Amongst those programs, one was to swap the values of two variables “a” and “b” without using the “temp” variable. Another interested one we discussed was that would generate a pattern like:

1
2 3
4 5 6
7 8 9 10
11 12 13 14
…… and so on.

When I got back home, I decided to have a go on these programs. And so, here are my answers to above problems.

Continue reading Some C++ programs

Jumbled Words Game Downloads

As promised in my last post about my Python-based jumbled words game, here I am posting the game for download in various forms. As of now, the first and second forms are for Windows 2000/XP/2003/Vista only.

First is the normal setup in which you install the game by following those usual Next buttons.

Second is a zip file. Extract it, open the extracted folder and click on the JumbledGUI.exe file to start playing it.

Third is the zipped source code file + other required stuff.

Let me know about your experience with this little game. Any suggestions and comments are always welcome.

Note: There is one little bug in the setup / installer, and that is the shortcuts for the game executable created in the Start menu and (or) during the installation process won’t work. You’ll have to start the game by running the JumbledGUI.exe file in C:\Program Files\Jumbled Words Game, assuming that you have installed the game in the default location.

[ Icon from Indeepop.com ]

Jumbled Words game in Python

I talked about a jumbled words, GUI-based, game in my last post. I made that game just for fun. It was not at all hard to make when you are using a write-less-do-more-language, like Python.

I would like to share the code of that program with you and give a short tutorial on how to create your own Jumbled Words game. The tutorial is platform-independent. So, no matter if you are using Windows or Linux or Mac, the tut will work out in all the cases.

Here’s a screenshot of the Jumbled Words game running in Linux.

Continue reading Jumbled Words game in Python