0% found this document useful (0 votes)
26 views1 page

Week 6 Group Lab Exercises

The document outlines 4 exercises using C++ user defined functions with call by reference: 1) multiplying two numbers, 2) finding the largest of two numbers, 3) computing real roots of a quadratic equation, 4) computing the area of a triangle using Hero's formula.

Uploaded by

James Monchoi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views1 page

Week 6 Group Lab Exercises

The document outlines 4 exercises using C++ user defined functions with call by reference: 1) multiplying two numbers, 2) finding the largest of two numbers, 3) computing real roots of a quadratic equation, 4) computing the area of a triangle using Hero's formula.

Uploaded by

James Monchoi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Wee6 Group Lab Exercises

(i) Using user defined function , write a C++ program for multiplying two numbers using the
concept of call by reference
(ii) Using user defined functions , write a C++ program for computing largest of two
numbers using the concept of call by reference
(iii) Using user defined functions write a C++ program for computing real roots of quadratic
equation using call by reference
(iv) Using user defined function, write a C++ program for computing area of a triangle using
hero’s formula using call by reference.

You might also like