Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a C++ function that has an input of a char value and returns true if the c

ID: 3627712 • Letter: W

Question

Write a C++ function that has an input of a char value and returns true if the character is lower case or false otherwise?


Write a C++ function that has three inputs which are integers. The function returns true if the first number raised to the power of the second number equals the third number?

Using the functions in the cmath library, write the following mathematical formulas as C++ expressions:
a. 3.02.4

b. (x - y)1/2 Note: the ½ power is the square root

c. |y - 42.3|

d.( -b + (b2 - 4ac)1/2) / 2a



Explanation / Answer

bool islower(char c)

{

if ( c>='a' && c<='z' ) return ture;

return false;

}

bool istrue(int a,int b,int c)

{

if ( pow(a,b) == c) return true;

return false;

}

a) pow ( 3.0 , 2.4)

b) pow( x-y, 0.5)

c) abs(y - 42.3)

d) (-b + sqrt( b*b- 4*a*c) )/ (2*a)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote