Write a C program to find common divisors between two numbers in a given pair.
Write a C program to reverse the digits of a given number and add it to the original, If the sum is not a palindrome repeat this procedure.
Write a C program to find common divisors between two numbers in a given pair.
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.
Write a program, maxmin.c, which finds the maximum and minimum of a set of
floats stored in the file samplesin.txt. You can assume that the number of values in the input file is less than 100.
Your main must use the following steps:
open the two files samplesin.txt and maxminout.txt.
read the values from samplesin.txt into the array x.
compute the maximum and minimum values found in the array x.
write the maximum and minimum values to the le maxminout.txt.
Your output file should look like :
There are 80 values in the array
The maximum value in the array is 63.605999
The minimum value in the array is 4.808900
Let
T:
R3→R2
be a linear transformation such that
(1,1,1) = (1,0),
(1,1,0) = (2, −1) and
(1,0,0) =
(4,3). What is
(2, −3,5)?
Write a program that inputs the length of two pieces of fabric in feet and inches (as whole numbers) and prints the total.
Write a program that displays the following menu to the user:
Press 1 for Permanent Employee
Press 2 for Daily wages Employee
After selecting the appropriate employee calculate salary and medical charges for the employees. Following menu would be displayed:
Press a to calculate Salary
Press b to calculate medical charges.
The daily wages employees are paid 400 per hour while permanent employees are paid 800 per hour.When you would calculate the salary, first you need to ask for the number of hours for which the employee has worked so far. The permanent employees are paid 5% medical charges of their total salary while daily wages are paid 3% of medical charges. For calculating medical allowance no further selection/input is required.
Write a program that ask the users to enter three characters. Then the program should display the
following menu
1. Sort in Ascending order
2. Sort in Descending order
The program should perform sorting of these three characters in ascending or descending order as per the user requirement.