Section 2: Program Design 2 Write a C++ program that calculate the area of a circle. • Circle area's formula – pai (3.14159) * radius? In this program, create 2 function to calculate the circle's area 1. Function getRadius – insert the radius value 2. Function Square – to calculate the square of radius. Display the square value Calculate and display the area of circle Copy+paste your program code and submit it with your lab report. Example of program output:

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter2: Problem Solving Using C++using
Section2.6: A Case Study: Radar Speed Traps
Problem 5E: (Conversion) a. Design, write, compile, and run a C++ program to convert temperature in degrees...
icon
Related questions
Question

Coding in C++

Section 2: Program Design 2
Write a C++ program that calculate the area of a circle.
• Circle area's formula – pai (3.14159) * radius?
In this program, create 2 function to calculate the circle's area
1. Function getRadius – insert the radius value
2. Function Square – to calculate the square of radius. Display the square value
Calculate and display the area of circle
Copy+paste your program code and submit it with your lab report.
Example of program output:
C\Users\Be_KIM13\Desktop\Lab4\s2.exe
This program calculates the area of circle
Enter the radius of the circle: 10
The square of 10 is 100
The area is 314.159
Process exited with return value 0
Press any key to continue. .
Transcribed Image Text:Section 2: Program Design 2 Write a C++ program that calculate the area of a circle. • Circle area's formula – pai (3.14159) * radius? In this program, create 2 function to calculate the circle's area 1. Function getRadius – insert the radius value 2. Function Square – to calculate the square of radius. Display the square value Calculate and display the area of circle Copy+paste your program code and submit it with your lab report. Example of program output: C\Users\Be_KIM13\Desktop\Lab4\s2.exe This program calculates the area of circle Enter the radius of the circle: 10 The square of 10 is 100 The area is 314.159 Process exited with return value 0 Press any key to continue. .
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Datatypes
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning