ABSOLUTE C++ -TEXT
ABSOLUTE C++ -TEXT
6th Edition
ISBN: 2810017515514
Author: SAVITCH
Publisher: PEARSON
bartleby

Videos

Textbook Question
Book Icon
Chapter 4, Problem 2PP

The area of an arbitrary triangle can be using the formula

A r e a = s ( s a ) ( s b ) ( s c )

where a, b, and c are the lengths of the sides, and s is the semiperimeter:

s = ( a + b + c ) / 2

Write a void function that uses five parameters: three value parameters that provide the lengths of the edges and two reference parameters that compute the area and perimeter (not the semiperimeter). Make your function robust. Note that not all combinations of a, b, and c produce a triangle. Your function should produce correct results for legal data and reasonable results for illegal combinations.

Blurred answer
Students have asked these similar questions
:The parameters specified in the function heading are known as formal parameters value parameters actual parameters original parameters
USE C++programming language
Write the following function: Name: CylinderVolume Parameters: r (int), h (double) Calculate and return the volume of a cylinder The formula for volume of a cylinder is: Volume = pi*r2 * h  In main() input the radius (int) and the height (double) of a cylinder. Then use the function CylinderVolum() to calculate the volume and then display the volume. Limit the output to 2 decimal places.

Additional Engineering Textbook Solutions

Find more solutions based on key concepts
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Computer Programming for Beginners | Functions, Parameters & Arguments | Ep24; Author: Programming With Avelx;https://www.youtube.com/watch?v=VXlh-qJpfw0;License: Standard YouTube License, CC-BY