Question: Exercise 1 1 . A: create a C + + program that will calculate the area of a circle and prompt. The program should have
Exercise A: create a C program that will calculate the area of a circle and prompt. The program should have the following functions:
One function to collect a radius and return the radius. The radius must be between and otherwise, the program will ask the user to enter another radius. The function only returns a valid radius.
One function to calculate the area of a circle. The formula to calculate the area of the circle is area PIradius
Set PI as a global constant with value
The radius is passed to the function as an argument.
One function to prompt the result as
The area of a circle with radius is
Exercise B: create a C program that will prompt a random number between and inclusive. The program should have the following functions:
One function that randomly generates and returns a number between and inclusive.
One function that prompts the result as
The random number is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
