[Solved]Q1 Write Program Calls Function Double Area Triangle Double Double B Double C Compute Area Q37020755
write c++ program
Q1.) Write a program that calls the function double area of triangle(double a, double b, double c) to compute the area of the triangle using the Hero’s formula. The user should input the values of a, b and c in the function main. The function should return the area of the triangle to the main based on the values of a,b and c. Hero’s formula: a +b+c Area – s(s-als -bls-ehere where 2 Write a main) program to test the function. Sample Run: Enter a,b and c: 3.5 4.8 2.9 Area is : 5.04 Comment on the changes made in your code. Show transcribed image text Q1.) Write a program that calls the function double area of triangle(double a, double b, double c) to compute the area of the triangle using the Hero’s formula. The user should input the values of a, b and c in the function main. The function should return the area of the triangle to the main based on the values of a,b and c. Hero’s formula: a +b+c Area – s(s-als -bls-ehere where 2 Write a main) program to test the function. Sample Run: Enter a,b and c: 3.5 4.8 2.9 Area is : 5.04 Comment on the changes made in your code.
Expert Answer
Answer to Q1.) Write a program that calls the function double area of triangle(double a, double b, double c) to compute the area o… . . .
OR

