Introducing series programming thinking exercises

I've pretty much guide you to learn programming, however many you thinking not so good to solve the problem. You usually do not think is the form that is to do this, there must be something. Ie when experiencing a completely new post, you can not or very difficult to solve it. So I wrote the series […]

Exercise bank earnings

Exercise bank deposits and bank interest are downright practical exercises but also helps programmers thinking abilities very high. This article we are going to learn some lessons about it. Threads: One savers no limit to the amount a period at an interest rate 0.3% every month. Asked after n months, that person will be drained of money, […]

Point classmates

Threads 1: Enter a list of classmates. Print the biggest screen in the classroom Based on the assignment we can determine this is the problem of finding the largest number in the array (has been mentioned in all the biggest search). To do this, we first need to enter is the list points – ie import array. We want to import array […]

Password checking program

Threads: Write a program that checks the user password when logging. Users must log in to when the correct username and password out loud. (username and password defined in the program) In reality, You will encounter this problem a lot when building software, wesbite that log function. So this problem is extremely helpful. First […]

Calculate the area of ​​a circle circumference

Threads: Enter the radius of the circle. Calculate the circumference and area of ​​a circle which offer all quite clear and there is nothing to discuss more. Thing you have to do is remember the formula for the circumference and area of ​​a circle. I have the following formula: So the formula has. Now we just code formula. In the code above, the […]

[C / C ] Calculate the number of large

To handle a large number of us will turn to handle string. In the following code method was needed your attention str.insert(int post, int n, int ch); n times to insert the character ch in the string str at position pos; There are also 2 Other methods are : str.insert(int post, char * s); insert s (array of characters ending '') at position pos of str; str.insert(int post, string […]

Calculate the factorial n!

Threads: Write a program to calculate n! n is a natural number no sound input from the keyboard To do this, First you need to recall the formula n! skin. By definition we have factorial: 0! = 1 n! = 1.2.3…n What is the formula we have already. Looking at the formula we see with n = 0 it's easy, if n> 0 then […]

Calculate the sum of the numbers from 1 to 100

Threads: Calculate the sum of the numbers from 1 to 100 Hello everyone, if the total 2 numbers a and b, it is quite simply the then, however, to calculate the total number of consecutive multiple threads all we like how? We found that the nature of the numbers 1 to 100 is continuous so we can use loops to perform […]

Superlative solving equations ax + b = 0

Threads: Superlative solving equations ax + b = 0 (other a 0) With the coefficients a, b is entered from the keyboard. To solve this, you recall the mathematical knowledge we have learned of the ordinary. Due to a different 0 so we always have x = -b experimental / a. So easy and, formula has, only now just code. Simple […]

[Pascal – TUT] Posts 10: Files in pascal – File Type

1 The concept of file: The file is a sequence of elements of the same type are arranged sequentially. The data files are stored in external memory under a certain name. File aggregation in it some element of data has the same structure but different array like array element number of the file is not defined. [qads] In Pascal 3 file types […]