Write a C program to get all possible two digit letter combinations from a digit (1 to 9) string.
Write a C program to remove and print every third number from a list of numbers until the list becomes empty.
One large chemical company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9% of their gross sales for that week. For example, a salesperson who sells $5000 worth of chemicals in a week receives $200 plus 9% of $5000, or a total of $650. Develop a program that will prompt the user for a salesperson’s gross sales and will calculate and display that salesperson's earnings. Process one salesperson's figures at a time, use the sentinel value -1 to terminate the program. A sample input/output dialog for the program is below:
Write a program that let's you input a string. The program then should push the characters of the string onto a stack, one by one, and then pop the characters from the stack and display them. This results is displaying the string in reverse order.
Devise a c programming interface for a stack, i.e a (stack.h) header file. Your stack should not arbitrarily add constraint(i.e: max depth of stack).
Taylor series expands function into a finite sequence of a variable x or a finite series plus a
remainder. A complex electromagnetic signal transmitted from a radio transmitter can be
decomposed into its components by using Taylor approximation, which is equivalent to estimating
the parameters of complex exponential functions. Let x(t) be a signal transmitted. Develop a C-
script that calculates the following Taylor series approximation of function f(x) for N number of
terms. Where N is the largest whole number which is a factor of both 42 and 98. You can select any
positive real value of x.
f (x) = ∑
𝒙
𝒏
𝒏!
𝑵
𝒏=𝟎
= 1 +
𝒙
𝟏!
+
𝒙
𝟐
𝟐!
+
𝒙
𝟑
𝟑!
........
Note : Don't use arrays, do with loops
Octal number system has been popularly used as a potential number system in computing texts,
graphics, and especially file protection systems in UNIX operating system. Develop a C- script that
takes a decimal number as an input and produces its equivalent octal number.
[DoB]10 = (----)8
DoB: Date of birth
Note : Don't use array, do with loops
A toy company manufactures electronic learning boards for kids to learn alphabets. Accordingly,
when a kid presses 1 alphabet a is shown on the screen, and when 2 is pressed ab is shown along
with the previous alphabet and so on. The patterns are likely to be as follow:
a
ab
abc
abcd
abcde
:
:
:
:
a
Develop a C-script which generates the above-mentioned pattern.
Note : Don't use array ,just use loops
A toy company manufactures electronic learning boards for kids to learn alphabets. Accordingly,
when a kid presses 1 alphabet a is shown on the screen, and when 2 is pressed ab is shown along
with the previous alphabet and so on. The patterns are likely to be as follow:
a
ab
abc
abcd
abcde
:
:
:
:
abcdefghijklmnopqrstuvwxyz
Develop a C-script which generates the above-mentioned pattern
Note: Don't use array , do with loops
Write a program to implement the Merge sort algorithm with the space optimization for
auxiliary space O(n/2)