Question: 2. Write a function named tenLetterAway that takes one character argument which we will assume is always a lower case English letter i.e. the character

 2. Write a function named tenLetterAway that takes one character argument
which we will assume is always a lower case English letter i.e.

2. Write a function named tenLetterAway that takes one character argument which we will assume is always a lower case English letter i.e. the character will be always one of the letters 'a','b', 'c'...'2', and returns the English letter that is ten letters away. Observe that if the character that is ten letters away from the argument is outside of the lower case English letters, then we must go back to 'a'. Example, If the argument character is 'a' then your function must return 'k' If the argument character is 'b' then your function must return If the argument character is 'y' then your function must return 'i' 3. Given the three sides of a triangle, the general formula to calculate the area of the triangle is area = s(-a)(s -b) (s - c) where a, b, and care the sides of the triangle and s = a+b+c Write a C++ function named triangleArea that takes three double-type arguments and returns the area of the triangle formed by the sides a, b, and c. Note that the three sides must satisfy the condition that the sum of any two sides must be greater than the third side to form a valid triangle. You must check this in your function. If the arguments do not satisfy this condition, your function should return zero area

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!