Question: 20 points Write a funktion that aises an integer to a positive imteger power. Call the finatian taking two integer arguments xandn. Havethefunction retumaa long

 20 points Write a funktion that aises an integer to a

20 points Write a funktion that aises an integer to a positive imteger power. Call the finatian taking two integer arguments xandn. Havethefunction retumaa long int. which represents the results ofcalculating (20 Points) An equation of the form is known as a quadratic equation. The values of ab and c in the preceding enamwie constant values So 4, b -17, and e -15. The values that a represents aquadratic equation where particular quadratie equation, known as the moused the equation can be calculaed by the values of a band einto the following two formula are imaginary numben. Write program to solve a quadratic equation The program hauld allow the user to the values fora, b, and e. If the discriminant less than a message should be displayedthutthe roots are imaginary; otherwise, the program should then proceed calculate and display the twe roots of the equation. Hint: you may need to include nath-h header fir Hincludeomath h and call sqrt function to cakulate squareroot of example: sqrt(400 will retum 20.) 20 points) Wriu a function isPrime0 that retums lif is argument is a prime number and 4 (20 points) write a function called arraysun0that Lakes Bweargumemk an integer amayand the number of elements in the army. Have the function retum asitsresult she sum of the in the array. 5, 20 point A mateix with irows.jcolumn can be transpowod into a matrix N having and columns by simply setting the value of N. equal to the value ofAL al elevant values of a and h. a. Write a function tr ria0that takes asan argument a matra and a matrix. Have the function transposethe4xSmatri andstore the results in Sx4mariu Also write a mai n0 routine to the function. b Using variable Nengthamays, rewriile tr to take the number of rows and columns as arguments, and trampose the matrix ofthe specified dimensions 20 points Write a funktion that aises an integer to a positive imteger power. Call the finatian taking two integer arguments xandn. Havethefunction retumaa long int. which represents the results ofcalculating (20 Points) An equation of the form is known as a quadratic equation. The values of ab and c in the preceding enamwie constant values So 4, b -17, and e -15. The values that a represents aquadratic equation where particular quadratie equation, known as the moused the equation can be calculaed by the values of a band einto the following two formula are imaginary numben. Write program to solve a quadratic equation The program hauld allow the user to the values fora, b, and e. If the discriminant less than a message should be displayedthutthe roots are imaginary; otherwise, the program should then proceed calculate and display the twe roots of the equation. Hint: you may need to include nath-h header fir Hincludeomath h and call sqrt function to cakulate squareroot of example: sqrt(400 will retum 20.) 20 points) Wriu a function isPrime0 that retums lif is argument is a prime number and 4 (20 points) write a function called arraysun0that Lakes Bweargumemk an integer amayand the number of elements in the army. Have the function retum asitsresult she sum of the in the array. 5, 20 point A mateix with irows.jcolumn can be transpowod into a matrix N having and columns by simply setting the value of N. equal to the value ofAL al elevant values of a and h. a. Write a function tr ria0that takes asan argument a matra and a matrix. Have the function transposethe4xSmatri andstore the results in Sx4mariu Also write a mai n0 routine to the function. b Using variable Nengthamays, rewriile tr to take the number of rows and columns as arguments, and trampose the matrix ofthe specified dimensions

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!