Question: c++ Programming Language Problem Statement: The following formula gives the area of a triangle. A= s(s - a)(s - b)(-) where s = (a+b+c)/2 Given
c++ Programming Language
Problem Statement: The following formula gives the area of a triangle. A= s(s - a)(s - b)(-) where s = (a+b+c)/2 Given a triangular floor with sides of lengths a, b and c (in meters) is going to be carpeted which costs P950.00 per square meter. How much will the carpet cost? Write a program that prompts the user to enter the lengths of the sides a, b and c. The program should then output the value of s, the area of the triangle and the cost of the carpet. Required Output: EDP 101 - First Examination Enter value for a: Enter value for b: Enter value for c: The value of S The area of the triangle is The cost of the carpet is Developed by:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
