Lexical Analysis

Write a program to get the following equation as input from a file and create token(s) on another file for the possible variable to get the value from the user. After get the value from the user, regenerate all the token(s) on another file for calculation . 

Equation:
x = (a+b)/2 + 4*b

C Programming Source Code : Index-1


Index-1     Index-2    


1.    C program to calculate any kindof equation | View |
-------------------------------------------------------------------
2.    C program to count vowel,consonant, arithmetic operator, special character, word and sentence from amultiple line string  | View |
----------------------------------------------------------------------------------------------------------------------
3.    C program to count vowel,consonant, arithmetic operator, special character, word and sentence | View | 
----------------------------------------------------------------------------------------------------------------------
4.    C program to read a string from a file and write it to the another file | View |
------------------------------------------------------------------------------------------------------------
5.    C program to read a string from a file | View |
------------------------------------------------------------------------------------------------------------
6.    C program to write a string into a file | View |
------------------------------------------------------------------------------------------------------------
7.    C program to count word and sentence | View | 
------------------------------------------------------------------------------------------------------------
8.    C program to count Vowel and Consonant | View |
------------------------------------------------------------------------------------------------------------
9.    C program for String Array sorting using bubble sort algorithm | View | 
------------------------------------------------------------------------------------------------------------
10. C program for Bubble Sort using user defined function | View |
------------------------------------------------------------------------------------------------------------
11. C program for Bubble Sort with struct | View | 
------------------------------------------------------------------------------------------------------------
12. C program for Binary Search implementation | View |
------------------------------------------------------------------------------------------------------------
13. Count number of students above,below and average students Using "C Programming" | View |
------------------------------------------------------------------------------------------------------------
14. Constants usage in "C Programming" | View |
-----------------------------------------------------------
15. A demo "C Program" which represent the ATM transaction | View |
-------------------------------------------------------------------------------------
16. Descending an Array using "C Programming" | View | 
---------------------------------------------------------------------
17. Addition of two numbers without using arithmetic operator as like "+" using "C Programming"  | View | 
---------------------------------------------------------------------------------------------------------
18. Add two Matrices and store the result into another Matrices using "C Programming" | View |
----------------------------------------------------------------------------------------------------------
19. Use C Pointer with array to perform a sum | View | 
-----------------------------------------------------------------
20. Add numbers using command line arguments (CLA) using "C Programming" | View |
-----------------------------------------------------------------------------------------------------------
21. Insertion sort using struct in "C Programming" | View |
-----------------------------------------------------------------------------------------------------------
22. Find address of char, string, integer using "C Programming" | View |
-----------------------------------------------------------------------------------------------------------
23. Subtraction of Two Matrices using "C Programming" | View |
-----------------------------------------------------------------------------------------------------------
24. Swapping of two Values using Functions in "C Programming" | View | 
-----------------------------------------------------------------------------------------------------------
25. Delete Characters from a given position in a given string using "C Programming" | View |
-----------------------------------------------------------------------------------------------------------
26. Count the total number of Consonants in a String using "C Programming" | View |   
-----------------------------------------------------------------------------------------------------------
27. Tree sort- string array in "C Programming" | View |
------------------------------------------------------------------------------------------
28. Demonstrate the use of Strlen() Function using C Programming | View |  
------------------------------------------------------------------------------------------
29. C program to concatenate two strings | View | 
------------------------------------------------------------------------------------------
30. C program to count the number of vowels | View | 
------------------------------------------------------------------------------------------
31. C program to create double dimension array of 2x3 matrix and display its Elements | View |
-------------------------------------------------------------------------------------------------
32. Find out Bigger number using Ternary Operator in "C Programming" | View |  
-------------------------------------------------------------------------------------------------
33. Find out Quadratic Equation (d=b2-4ac) using "C Programming" | View | 
-------------------------------------------------------------------------------------------------
34. C Program for total bill calculation with discount using Ternary Operators | View |   
-------------------------------------------------------------------------------------------------
35. C Program to write salary calculation | View | 
-------------------------------------------------------------------------------------------------
36. Write a C Program to find the given year is leap year or not | View | 
-------------------------------------------------------------------------------------------------
37. C Program to find the size of a declared variable | View |
-------------------------------------------------------------------------------------------------
38. C Program to find a string | View | 
-------------------------------------------------------------------------------------------------
39. C Program to find the length of a given string | View | 
-------------------------------------------------------------------------------------------------
40. C Program to reverse words | View | 
-------------------------------------------------------------------------------------------------
41. C Program to Swap Numbers | View |
---------------------------------------------------------------------------------------------------
42. C Program to check whether a given input is Armstrong number or not | View |
---------------------------------------------------------------------------------------------------
43. Permutations of a given string using C Programming | View | 
---------------------------------------------------------------------------------------------------
44. Calculate factorial of a number using C Programming | View |
---------------------------------------------------------------------------------------------------
45. Find roots of a quadratic equation using C Programming | View |
---------------------------------------------------------------------------------------------------
46. C Program to represent simpson method | View |
---------------------------------------------------------------------------------------------------
47. C Program to print a triangle | View |
---------------------------------------------------------------------------------------------------
48. Example of XOR list using C Programming | View | 
---------------------------------------------------------------------------------------------------
49. C Program to Find the GCD and LCM of Two Integers | View | 
---------------------------------------------------------------------------------------------------
50. Find factorial of a given number using the recursive function method in C Programming |View |
---------------------------------------------------------------------------------------------------
51. Write a C Program to sum of all elements from a two dimensional (2D) array | View |
-----------------------------------------------------------------------------------------------------------
52. Print the multiplication table using C Programming | View | 
----------------------------------------------------------------------------
53. Sum of 1st 10 Prime Numbers using C Programming  | View | 
------------------------------------------------------------------------------------------
54. Sum of each consequent 5 even numbers using C Programming | View |
------------------------------------------------------------------------------------------
55. Nesting of for loops for Pyramid Drawing using C Programming | View |
------------------------------------------------------------------------------------------
56. C Program to find or manipulate EVEN NUMBER | View | 
------------------------------------------------------------------------------------------
57. Difference between while & do while loops in C Programming | View |
------------------------------------------------------------------------------------------
58. Special Operator in C Programming | View |
------------------------------------------------------------------------------------------
59. Relational Operators in C Programming | View |
------------------------------------------------------------------------------------------
60. File Programming in C | View | 
------------------------------------------------------------------------------------------
61. String Programming in C | View | 
------------------------------------------------------------------------------------------
62. Do While Example in C | View |
------------------------------------------------------------------------------------------
63. While loop example in C |View |
------------------------------------------------------------------------------------------
64. For Loop example in C | View | 
------------------------------------------------------------------------------------------
65. How to use Conditional Operator in C Programming | View |
------------------------------------------------------------------------------------------
66. Logical Operator in C Programming | View |
------------------------------------------------------------------------------------------
67. Break Keyword in C Programming | View |
------------------------------------------------------------------------------------------
68. Looping technique in C Programming | View |
------------------------------------------------------------------------------------------
69. How to became expert in Array Programming in C Language | View |
------------------------------------------------------------------------------------------
70. The power of Pointer Programming in C Language | View |
------------------------------------------------------------------------------------------
71. Arithmetic Program using C Language | View |
------------------------------------------------------------------------------------------
72. Arithmetic Operation in C using Pointer Variable | View |
------------------------------------------------------------------------------------------
73. Pointer Array in C Programming Language | View | 
------------------------------------------------------------------------------------------
74. Recursive Function in C Programming Language | View | 
------------------------------------------------------------------------------------------
75. String Programming in C Programming Language | View | 
------------------------------------------------------------------------------------------
76. Function Programming  in C to generate Fibonacci series | View |
------------------------------------------------------------------------------------------
77. Function Programming in C to find all numbers which are divisible by 9 | View |
-----------------------------------------------------------------------------------------------------
78. Function Programming to find the Area of a Circle in C Language | View |
-----------------------------------------------------------------------------------------------------
79. Function Programming to find number which is Divisible by 5 in C Language | View | 
-----------------------------------------------------------------------------------------------------
80. Function Programming to Print an Array in C Language | View |
--------------------------------------------------------------------------------------------
81. Function Programming : Array programming in C | View | 
--------------------------------------------------------------------------------------------
82. Evaluate below equation (problem-83/Line 83) using c function.
83. sum=x + x^2  +  x^3  + ...........+ x ^ n. |View |
-----------------------------------------------------------------------------------------------------------
84. Function Programming to find Even and Odd Number find using C Language | View |
-----------------------------------------------------------------------------------------------------------
85. Function Programming to find a Strange Number in C Language |View|
---------------------------------------------------------------------------------------------------
86. Function Programming to check Perfect Number in C Language | View |
---------------------------------------------------------------------------------------------------
87. Function Programming to Check Prime Number in C Language | View | 
---------------------------------------------------------------------------------------------------
88. Solve an equation of a line using C Programming | View |
---------------------------------------------------------------------------------------------------
89. Find the 1st three (3) Armstrong Number using C Programming |View | 
---------------------------------------------------------------------------------------------------
90. C Program to built the pattern | View | 
---------------------------------------------------------------------------------------------------
91. Print 1st 30 Perfect Numbers starting from 0 and calculate the sum of that numbers using  C Programming Language |View|
------------------------------------------------------------------------------------------------------------
92. Check whether the sum of all printed prime numbers are equal to the given input or not? | View |
--------------------------------------------------------------------------------------------------------------
93. Write a program to find the Maximum Strange Numbers Between 1 and 100000 | View |
--------------------------------------------------------------------------------------------------------------
94. Find the maximum term of Fibonacci sequence whose values do not exceed four million | View |
--------------------------------------------------------------------------------------------------------------
95. Print at least 5 possible values | View |
--------------------------------------------------------------------------------------------------------------
96. Print and Sum of all the Multiples of 3 or 5 up to 999 | View |
--------------------------------------------------------------------------------------------------------------
97. What is the value of the first triangle number to have over 499 divisors? | View | 
--------------------------------------------------------------------------------------------------------------
98. Fibonacci : Sum of even-valued terms of Fibonacci Sequence | View |
--------------------------------------------------------------------------------------------------------------
99. C++ User defined Function in Array Programming | View |
--------------------------------------------------------------------------------------------------------------
100.              C Program for Sum of all the Multiples of 3 or 5 below 1000 : From ProjectEuler.net | View |
--------------------------------------------------------------------------------------------------------------
101.   C/C++ Function: Overloading Example | View |
--------------------------------------------------------------------------------------------------------------
102.   C/C++ Function: Print 45 Asterisks for Design the output | View |
--------------------------------------------------------------------------------------------------------------
103. C/C++ Function: Adding Two Numbers with default value parameter | View |
--------------------------------------------------------------------------------------------------------------
104.  C/C++ Function : Find Maximum value between two natural numbers | View |
--------------------------------------------------------------------------------------------------------------
105.  Char Array Calculation under C Programming Language | View |
--------------------------------------------------------------------------------------------------------------
106.   Fahrenheit to Celsius conversion (ºF to ºC) using C Programming | View |
--------------------------------------------------------------------------------------------------------------
107.  C and C++ : Interview Questions on "Types" | View |
--------------------------------------------------------------------------------------------------------------
108.  Article on C Programming Language | View |
--------------------------------------------------------------------------------------------------------------
109.  Print Prime and Sum using C Programming | View |
--------------------------------------------------------------------------------------------------------------
110.  Digit split and sum using C Programming | View |
--------------------------------------------------------------------------------------------------------------
111. Factorial in C Programming  | View |  
--------------------------------------------------------------------------------------------------------------
112.   Calculate the Series using C Programming  | View |  
--------------------------------------------------------------------------------------------------------------
113.  Find Ascii Values using C Programming  | View | 
--------------------------------------------------------------------------------------------------------------
114.  Goto statement in C Programming | View |  
--------------------------------------------------------------------------------------------------------------
115.  Float Array using c programming language  | View |  
--------------------------------------------------------------------------------------------------------------
116.  Matrix in C Programming Language | View |  
--------------------------------------------------------------------------------------------------------------
117.  Function in C Programming Language  | View |  
--------------------------------------------------------------------------------------------------------------
118.   Break and Continue in C Programming | View |  
--------------------------------------------------------------------------------------------------------------
119.  Sum the selected digits using C Language | View |  
--------------------------------------------------------------------------------------------------------------
120.  Write a C Program to count the currency notes | View |  
--------------------------------------------------------------------------------------------------------------- 
121.  Sum the digits  | View |  
---------------------------------------------------------------------------------------------------------------  
122.  C Programming Quiz Part-II | View |  
---------------------------------------------------------------------------------------------------------------  
123. Exercise in C Programming to find the Smallest Positive Number | View |  
---------------------------------------------------------------------------------------------------------------  
124.  Exercise in C Programming to find the Prime Factors | View |  
---------------------------------------------------------------------------------------------------------------  
125. Exercise in C Programming to create a Fibonacci Sequence| View |  
---------------------------------------------------------------------------------------------------------------  
126. Exercise in C Programming for String Array with Pointer  | View | 
---------------------------------------------------------------------------------------------------------------  
127. C Programming Quiz : Part-I | View |  
---------------------------------------------------------------------------------------------------------------  
128.   String functions in C Programming | View |  
---------------------------------------------------------------------------------------------------------------  
129.   Sorting and Searching using C Programming Language(Data Structures) | View |  
---------------------------------------------------------------------------------------------------------------  
130. Array in C Programming : Dynamic | View | 
---------------------------------------------------------------------------------------------------------------  
131.  Array searching in C Programming | View |  
---------------------------------------------------------------------------------------------------------------  
132.   Adding Two Arrays using C  | View | 
---------------------------------------------------------------------------------------------------------------  
133. Array Filling Partially using C | View |  
---------------------------------------------------------------------------------------------------------------  
134.   Array With Pointer in C Programming | View | 
---------------------------------------------------------------------------------------------------------------  
135.  Array Filling from a file in C Programming  | View |  
---------------------------------------------------------------------------------------------------------------  
136.  Array with Meand & Standard Deviations | View |  
---------------------------------------------------------------------------------------------------------------  
137. Array using C Programming function | View |
---------------------------------------------------------------------------------------------------------------  
138.   Initializing & Printing an Array using C | View |  
---------------------------------------------------------------------------------------------------------------  
139.  Switch Case in C Programming | View |  
---------------------------------------------------------------------------------------------------------------  
140.   Example using Break and Continue statements in C Language  | View |
---------------------------------------------------------------------------------------------------------------  
141. Draw a Build Pattern in C Programming  | View |  
---------------------------------------------------------------------------------------------------------------  
142.  Reverse a String Using C | View | 
---------------------------------------------------------------------------------------------------------------  
143.  Check Odd or Even Number using C Programming | View | 
---------------------------------------------------------------------------------------------------------------  
144.  Creating Pyramid using C Language  | View |  
---------------------------------------------------------------------------------------------------------------  
145.   ELSE IF Ladder using C Language  | View | 
---------------------------------------------------------------------------------------------------------------  
146.   Nested IF example in C Programming  | View |  
---------------------------------------------------------------------------------------------------------------  
147.  IF ELSE example in C Programming Language | View | 
---------------------------------------------------------------------------------------------------------------  
148.   IF Statement in C Programming | View | 
---------------------------------------------------------------------------------------------------------------  
149.   Display numbers using loops in C Language | View |  
---------------------------------------------------------------------------------------------------------------  
150.  Fibonacci Series using C/C++ | View |
---------------------------------------------------------------------------------------------------------------  
151.    Finding Armstrong Number using C Language | View |  
---------------------------------------------------------------------------------------------------------------  
152.   Calculating Slope of a Line in C Language | View |  
---------------------------------------------------------------------------------------------------------------  
153.    Finding the equation in C Language | View |
---------------------------------------------------------------------------------------------------------------
154.  Distance between the two points using C Language  | View | 
---------------------------------------------------------------------------------------------------------------  
155.  Sum of ODD Numbers using C Language | View | 
---------------------------------------------------------------------------------------------------------------  
156.   Sum of EVEN Numbers using C Language | View |  
---------------------------------------------------------------------------------------------------------------  
157.  Sum of ALL Numbers using C Language  | View |
---------------------------------------------------------------------------------------------------------------  
158.  Write a C program to sum of 0 to N numbers  | View |  
---------------------------------------------------------------------------------------------------------------  
159.  Math Functions (Using COSINE Function) using C language  | View | 
---------------------------------------------------------------------------------------------------------------  
160.  Use of Subroutines in C Language | View | 
---------------------------------------------------------------------------------------------------------------  
161. Interest Calculation in C Language  | View | 
---------------------------------------------------------------------------------------------------------------  
162.  Adding Two numbers using float and integer data using C language | View | 
---------------------------------------------------------------------------------------------------------------  
163. Sum the Series using C Language | View |  
---------------------------------------------------------------------------------------------------------------  
164.   Find Perfect Number using C Programming | View | 
----------------------------------------------------------------------------------------------------------------
165.   Reverse an Integer Number using C Programming  | View | 
----------------------------------------------------------------------------------------------------------------  
166. C Program to check a Palindrome| View |  
-------------------------------------------------------------------------------------------------------------------  
167.  C Program to Manipulate a Series | View | 
------------------------------------------------------------------------------------------------------------------  
168.  C Program to Check a Strange Number  | View |  
------------------------------------------------------------------------------------------------------------------  
169.  Prime Number Manipulation using C Programming Language | View |  
-------------------------------------------------------------------------------------------------------------------  
170.   Arithmetic Operation by C Language  | View |
-------------------------------------------------------------------------------------------------------------------
171.     Conditional Expression by C Language | View |  
--------------------------------------------------------------------------------------------------------------------
172.   Comparison Operator by C Language  | View |
---------------------------------------------------------------------------------------------------------------------
173.   Array programming by C Language  | View |
----------------------------------------------------------------------------------------------------------------------
174.   Find the highest (maximum) and lowest (minimum) grades in an array of 25 integer grades. Print the array and print the highest and lowest grades, labeled appropriately  | View |
----------------------------------------------------------------------------------------------------------------------
175.   Write a C program to find the Simple Interest. Take input for principle amount, rate of interest and time from terminal | View |
-----------------------------------------------------------------------------------------------------------------------
176.   Write a program performing as calculator which allows all Arithmetic Operators with operands as input | View |
------------------------------------------------------------------------------------------------------------------------