How to open DBF file

DBF is one of the oldest database formats. Being used since late 80s, it is still extremely common. However, not all DBF files are the same. In fact, the DBF format itself suffered a lot of changes since its first appear. And while DBF offers backward compatibility since dBase III+, you still need to make sure a database administration tool you use correctly opens each and every DBF file you may have.

DBF Viewer 2000 supports all versions of the DBF format and opens them for editing with minimum efforts. It automatically detects the version of the format, correctly deals with any number of fields and records, opens extremely large files (more than 4GB).

[mai mult...]

How to open TAR files

What is a TAR file extension?

The name “TAR” refers to Tape Archive files and goes back to when files where stored on tape drives. TAR is a software utility used for collecting several files into one archive file, including videos and images, in one for easier distribution or archiving. The resulting TAR files contain useful information about the files they contain, such as user permissions, dates, directory structures and more. Since TAR files are simply archives, they need to be compressed by another utility, such as gzip, to reduce their size. The TAR format is often used for open source software distribution. Tar unzip software like WinZip is needed to unpack a tar file.

[mai mult...]

Water Game

Given an empty glass, this glass has to be filled with water and the task is to find the maximum amount of water that the glass has held at any moment.

Given conditions:

The program takes an input N denoting the number of steps.

Each step consists of two inputs T and X where T is the flag condition denoting whether the X ml of water has to be poured or drinked based on below conditions:
1. if T = 0, Pour X ml (millilitres) of water in the glass
2. if T = 1, Drink X ml of water from the glass

[mai mult...]

Optimal Strategy for a Game

Problem statement: Consider a row of n coins of values v1 . . . vn, where n is even. We play a game against an opponent by alternating turns. In each turn, a player selects either the first or last coin from the row, removes it from the row permanently, and receives the value of the coin. Determine the maximum possible amount of money we can definitely win if we move first.

[mai mult...]

Snake game

The main classes will be:

1. Snake
2. Cell
3. Board
4. Game

The class Game represents the body of our program. It stores information about the snake and the board. The Cell class represents the one point of display / board. It contains the row no, column no and the information about it i.e. it is empty or there is a food on it or is it a part of snake body?

[mai mult...]