1(A)- write a function called mult() that accepts two floatingpoint numbers as p
ID: 3608932 • Letter: 1
Question
1(A)- write a function called mult() that accepts two floatingpoint numbers as parameters, multiplies these two numbers, anddisplays the result. (B)- include the function written in exercise 1(A) in aworking program. make sure your function is called from main().test the function by passing various data to it. 2(A)- The load, P er, in units of kips, applied to a columnthat will cause the column to buckle is referred to as the criticalbuckling load. This load can be determined using the equation P er = ()^2 EA/(L/r)^2 where E is the modulus of elasticity of the material used inthe column, A is the cross-sectional area, L is the length of thecolumn, and r is its radius of gravition. Using this formula, writea C++ function named cload() that accepts values of E,A,L, and r,and returns the critical load. (B)- Include the function written in exercise 2(A) in aworking program. Make sure your function is called from main() andcorrectly returns a value to main (). Have main () use a coutstatement to display the value returned. Test the function bypassing various data to it. 1(A)- write a function called mult() that accepts two floatingpoint numbers as parameters, multiplies these two numbers, anddisplays the result. (B)- include the function written in exercise 1(A) in aworking program. make sure your function is called from main().test the function by passing various data to it. 2(A)- The load, P er, in units of kips, applied to a columnthat will cause the column to buckle is referred to as the criticalbuckling load. This load can be determined using the equation P er = ()^2 EA/(L/r)^2 where E is the modulus of elasticity of the material used inthe column, A is the cross-sectional area, L is the length of thecolumn, and r is its radius of gravition. Using this formula, writea C++ function named cload() that accepts values of E,A,L, and r,and returns the critical load. (B)- Include the function written in exercise 2(A) in aworking program. Make sure your function is called from main() andcorrectly returns a value to main (). Have main () use a coutstatement to display the value returned. Test the function bypassing various data to it.Explanation / Answer
please rate - thanks part1 please note enter -9999.0for 1st value to exit program #include float mult(float,float); int main() {float a,b,result; couta; while(a!= -9999.00) {coutb; result=mult(a,b); coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.