Turbo C Sample Programs

***FIND SOMETHING USEFUL ON MY WEBPAGE? PLEASE SIGN MY GUESTBOOK!***

1. Age Calculator: Program asks for age and prints how many months, weeks, days, hours and minutes old you are.

see code>>>

2. Simple Calculator: Asks for number of kilos of rice to buy the prints the amount to pay.

see code>>>

3. Movie House Calculator: Asks which part of the movie house (De Luxe or Premiere) will you watch the movie and how many heads then computes the total amount to pay.

see code>>>

4. Salary Calculator: This program will ask for the number of hours you have worked and computes your salary including the overtime. Note: working hours over 45 is considered an overtime on this example.

see code>>>

5. Addition of Numbers using While loop: Program will keep on asking numbers until '5' is entered. It will then display the number of times a number was entered and display its sum.

see code>>>

6. Records using Arrays: Program will ask you information and will store it on an array.

see code>>>

7. Using strcmp or string compare: This program will ask for two words and check whether they are the same or not.

see code>>>

8. Word in Reverse Order: This program will ask for a word and then prints it backward character by character.

see code>>>

9. Password Checker: Asks for a password and checks if it's valid or not. Uses strings.

see code>>>

***FIND SOMETHING USEFUL ON MY WEBPAGE? PLEASE SIGN MY GUESTBOOK!***

10. Using Do While: A cute program asking for your option and will terminate if 'E' or 'e' is pressed.

see code>>>

11. Run Name: A Program that will run my name across the screen.

see code>>>

12. ATM (Automated Teller Machine) Program. (version 2). hint: use 11111, 22222, 33333, 44444 or 55555 as your 5-digit pin.

see code | download program (exe file 36.7KB)>>>


13. Make a program that will ask the user a value for the radius R. Then present a menu to the user with choices [a] radius, [b] circumference, [c] area of circle. If the user inputs letter 'a' or 'A', it will print at the center of the screen the radius. If the user presses letter 'b' or 'B', the circumference will be shown at the center of the screen. And if 'c' or 'C' is pressed, the area of the circle is shown also in the center of the screen. The the program terminates. (note: I'm using 'switch statement')

see code>>>

14. Basing on the quadratic formula, write a program that will compute for the roots or values of X where a, b and c are inputted by the user. Include corrections on the possibility that there is 'a division by zero'  and 'a negative value' inside the square root giving an imaginary root. Hint: use pow() to raise a term to a power 0.5. (note: I'm using the 'if statement')
 
see code>>>

15. Database Program 1: A cool graphical Turbo C program using structures. Programmed by a fellow student.

see code>>>

16. Cash Register Program. This was my finals project. Uses structures and arrays.

see code>>>

17. Database Program 2: Will ask for 9 records and prints all the record on the screen.

see code>>>

18. Database Program 3.

see code>>>

 

***FIND SOMETHING USEFUL ON MY WEBPAGE? PLEASE SIGN MY GUESTBOOK!***



webweaving by harvey
copyright 2002-2004 bikoy83. all rights reserved.