Implement the following in a C project structure: - A function called Grader that takes a numeric score and returns a letter grade. Grader has one argument of type integer and returns a value of type char. Use the rule that 90 to 100 is an A, 80 to 90 is a B, 70 to 79 is a C, and less than 70 is an F. - The greatest common divisor of two positive integers is the largest integer that divides them both. For example, the greatest common divisor of 9 and 6 is 3. Write a function declaration for a function with two integer arguments that returns their greatest common divisor. - Write a function that accepts a character argument and returns 1 if the argument is a valid letter(a-z/A-Z), otherwise returns 0. - Write a function declaration for a function that computes interest on a credit card account balance. The function has arguments for the initial balance, the monthly interest rate, and the number of months for which interest must be paid. The value returned is the interest due. Do not forget to compound the interest, that is, to charge interest on the interest due. The interest due is added into the balance due, and the interest for the next month is computed using this larger balance. - Write a function that accepts a numeric argument (N) and returns the factorial of N. Create a main menu for function testing.
Implement the following in a C project structure:
- A function called Grader that takes a numeric score and returns a letter grade. Grader has one
argument of type integer and returns a value of type char. Use the rule that 90 to 100 is an A, 80 to
90 is a B, 70 to 79 is a C, and less than 70 is an F.
- The greatest common divisor of two positive integers is the largest integer that divides them
both.
For example, the greatest common divisor of 9 and 6 is 3. Write a function declaration for a
function with two integer arguments that returns their greatest common divisor.
- Write a function that accepts a character argument and returns 1 if the argument is a valid
letter(a-z/A-Z), otherwise returns 0.
- Write a function declaration for a function that computes interest on a credit card account
balance. The function has arguments for the initial balance, the monthly interest rate, and the
number of months for which interest must be paid. The value returned is the interest due. Do not
forget to compound the interest, that is, to charge interest on the interest due. The interest due is
added into the balance due, and the interest for the next month is computed using this larger
balance.
- Write a function that accepts a numeric argument (N) and returns the factorial of N.
Create a main menu for function testing.
Step by step
Solved in 2 steps with 5 images