C Answers

Questions answered by Experts: 1 680

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

write function definition(recursive as well as non-recursive)to generate the following series upto n numbers.the first two numbers are known.
1 2 6 16 44 120.....
  1. Create a program that sorts the words of a string based on the first letter of each word.
  2. • You may use stdio.h and string.h.
  3. • Remove any trailing newline \n from your input string. • Use the insert function that we went over in class.
  4. • Your input prompt should be "Enter a string: ".
  5. • The output should be the sorted string on a new line. • Save your code as prob2.c.
  6. Example Run
            Enter a string: this is a string
            a is string this
Write a program to implement Queue and its operation (like create, insert, delete,
search) using array data structure.
Create a C program that display the Fibonnacci number(s).

The program must ask an input of nth-Fibonacci.

Example:

Find fibonacci number: 5th

5th-Fibonacci = 3
Create a C program that display the Fibonnacci number(s).

The program must ask an input of nth-Fibonacci.

Example:

Find fibonacci number: 5th

5th-Fibonacci = 3
Can a single dot (.) be a graph? with Examples
How can I write a C program to shoot a two dices 1000 times and print the numbers you make, then calculate the average number, and finally print the average number out
You visit a shop to get your assignment typed and printed. WAP to calculate bill of a job work based on following rates.
Rate of typing is Rs. 3/- per page
Printing of fist copy if Rs. 5/- per page and later every copy Rs. 3/- per page.
User should enter the number of pages in assignment and no. of print out copies your group want.

print 5,10,15,20,25 using for for loop


WAP to calculate an electricity bill using decision making. As every house has got electricity now a days, the chief in electricity board is in pressure of generating automated bills. So he approached your team to work for him. He explains to you all the cases to be considered to calculate the accurate bill.
For instance,
I. Bill paid within 15days of generation.
II. If reading is less than or equal to 200 units then each unit is charged Rs. 2.
III. If reading is more than 200 units but less than or equal to 400units then for first 200 units charges will be Rs.2 and other units are charged at Rs. 4
IV. If reading is more than 400 units then all the units will be charged Rs. 4.
V. Bill paid after 15days of generation: A surcharge of 10% on your bill amount has to be paid.
Now considering these cases help the chief in automating the billing system.
LATEST TUTORIALS
APPROVED BY CLIENTS