Question: Objective: learn how to use: Call-By-Value Functions Call-By-Reference Functions Write C++ program to find the area and the circumference of a circle given the radius.

 Objective: learn how to use: Call-By-Value Functions Call-By-Reference Functions Write C++

Objective: learn how to use: Call-By-Value Functions Call-By-Reference Functions Write C++ program to find the area and the circumference of a circle given the radius. the decimal place. Problem: Output the results with one digit after Formulas: area = PI * radius * radius circumference-2 PI radius ter radius: 18 The area is: 314.2 The circunference is: 62.8 Press any key to continue . Part 1: Call-By-Value Filename: lab8a.epp Write a C++ program including two Call-By-Value functions that prompts the user for a circle radius in meters and outputs the circle area and circumference. Use two functions, one that returns the area and one that returns the circumference. Use the data type double for all variables. Print the source file. E-mail the source file. Call-By-Reference Filename: lab8b.cpp Part 2: Write a C+t program including a Call-By-Reference function that prompts the user for a circle radius in meters and outputs the area of the circle and the circumference of the circle. Use one call-by-reference function. Use the data type double for all variables. This program requires the following elements: Variables declared in the main function for the radius, area and circumference. A void function having three parameters: the radius passed by value, the area passed by reference and the circumference passed by reference

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!