Question: Instructions: a) Use scanf function to accept the input from the user. b) Use floating point inputs wherever possible. c) Need hard copy of (i)

 Instructions: a) Use scanf function to accept the input from the

Instructions: a) Use scanf function to accept the input from the user. b) Use floating point inputs wherever possible. c) Need hard copy of (i) source code and (ii) output for each program. [Assume: EOF character when used is the CNTRL Z character] Write a C program to 1. Convert a) Gallons to liters b) Foots to Yards c) Pounds to Kilograms. 2. Count the number of a) Vowels and b) Consonants occurring in a passage entered by the user irrespective of the case. [Note: You may leave out characters other than alphabets entered by the user.] 3. Count the number of characters and number of words occurring in each line of a passage entered by the user. 4. Verify if the string entered by a user is a palindrome or not. 5. Compute the factorial of a positive integer entered by the user. 6. Compute the sum of n numbers entered by the user. 7. Compute the sum of a) Squares of n numbers b) Cubes of n numbers entered by the user. 8. Compute the maximum and minimum of n numbers entered by the user

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!