Login

Contact Us
Homework
Homework Questions? Ask a Tutor for Answers ASAP
Not a Homework Question?
How JustAnswer Works:
Ask an Expert
Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
Get a Professional Answer
Via email, text message, or notification as you wait on our site.
Ask follow up questions if you need to.
100% Satisfaction Guarantee
Rate the answer you receive.
Ask HW Helper Your Own Question
HW Helper
,
Tutor
Category:
Homework
Satisfied Customers:
45
Experience:
B.A. from top 20 business schoolactually misses doing homeworkmath, econ, psych, business, art
6422916
Type Your Homework Question Here...
HW Helper is online now
Write a program to calculate the area of a circle. The equation
Customer Question
Write a program to calculate the area of a circle. The equation to determine the area of a circle is area = 3.1416*radius*radius. Assume that the circle has a radius of 4 inches.
Rewrite the above program so that the program accepts any value for the radius then recalculate the area of the circle.
Submitted:
7 years ago.
Category:
Homework
Share this conversation
Expert:
HW Helper
replied 7 years ago.
Wesley,
I would love to help you.
What kind of program are you looking for? A simple if, then program for a graphing calculator say, or some kind of a computer program?
Look forward to helping you
Ask Your Own Homework Question
Customer:
replied 7 years ago.
Just the calculation of the circle using the information that was given.
Expert:
HW Helper
replied 7 years ago.
Wesley,
Circle Area Program if I wrote it for my calculator:
query R, R > 0
Y = R*R*3.1416
display "the area of the circle with radius"
display R
display "is"
display Y

If you need something more simple:
Find R, where R > 0
R*R*3.1416 = Y
The area of the circle with radius R is Y
With your example of 4 inches:
query R
R = 4
4*4*3.1416 = Y
Y = 50.2656
The area of a circle with radius R inches is Y inches squared.
The area of a circle with radius 4 inches is 50.2656 inches squared.
HW Helper, Tutor
Category:
Homework
Satisfied Customers:
45
Experience:
B.A. from top 20 business schoolactually misses doing homeworkmath, econ, psych, business, art
HW Helper and 2 other Homework Specialists are ready to help you
Ask your own question now
Customer:
replied 7 years ago.
I actually wanted to see what it would look like in the program format so that if I run the program i would be able to see the results
Expert:
HW Helper
replied 7 years ago.
Which format are you looking for?
Ask Your Own Homework Question
Customer:
replied 7 years ago.
Ok, with the question that I asked, how would it appear in a program format starting from
*/
#include <iostream>
using namespace std;
int main()
{
with these included, how would the progam look.
Expert:
HW Helper
replied 7 years ago.
Ok, this is C++, which I took in college.
<br />
<br />
<br />*/
<br />
<br />#include <iostream>
<br />
<br />using namespace std;
<br />
<br />const float PI=3.14159;
<br />float FindArea(float radius);
<br />
<br />int main ()
<br />{
<br />float radius = 4;
<br />float area;
<br />
<br />area = FindArea(radius);
<br />
<br />cout << A circle of radius 4 has an area of: " <<area<<endl;
<br />
<br />return 0;
<br />}
<br />
<br />
<br />If you wanted to find the area yourself you can use:
<br />
<br />float FindArea(float radius)
<br />{
<br />return PI * radius * radius
<br />}
<br />
HW Helper, Tutor
Category:
Homework
Satisfied Customers:
45
Experience:
B.A. from top 20 business schoolactually misses doing homeworkmath, econ, psych, business, art
HW Helper and 2 other Homework Specialists are ready to help you
Ask your own question now
Expert:
HW Helper
replied 7 years ago.
sorry noticed a typo!
In the cout statement section, it should have " at the end of the area display function.
Or:
cout << A circle of radius 4 has an area of: "<<area<<"endl;
Thanks for your accept!
Ask Your Own Homework Question
Customer:
replied 7 years ago.
I entered it into a DevC++ program but can't get the answer you gave me, i am getting a lot of errors.
Expert:
Raj
replied 7 years ago.
So you need the code for this??
Ask Your Own Homework Question
Expert:
Raj
replied 7 years ago.
THIS ANSWER IS LOCKED!
You need to spend $3 to view this post.
Add Funds
to your account and buy credits.
Ask Your Own Homework Question
Expert:
Raj
replied 7 years ago.
Hi there
Actually i don't know how that Question that you posted lately the link is not working for that
When i posted the answer suddenly the link stop working
I am done with your answer for that question.......
I am talking about the Question that contained flowchart and needed to use Switch case in the code........
So If possible then please post a fresh Question with my name in the Subject "To Raj" so that i can submit the answer again....
Ask Your Own Homework Question
Share this conversation
Related Homework Questions
Question
Date Submitted
Debbie owned and operated a party supply compa ny called
2/20/2017
2/20/2017
Donna Kakonge
Statistic 1. Review the levels of measurement terms in the
2/17/2017
2/19/2017
GLENN
Managerial Accounting Help!! This project is over job order
2/17/2017
2/17/2017
F. Naz
I have a similar question for stats just like this and I'm
2/16/2017
2/16/2017
GLENN
How do I Create a GUI application named
2/16/2017
2/17/2017
LogicPro
Describe the differences between blackbox testing and box
2/10/2017
2/13/2017
GLENN
There are two main views of the 1950s: One considers it a
2/10/2017
2/10/2017
GLENN
I am looking at a question you had provide an answer for
2/9/2017
2/9/2017
LogicPro
Necesito ayuda con un trabajo de espanol Es un trabajo de
2/7/2017
2/7/2017
Kathy
Javascript Program 2 parts 1) Write a program that
2/7/2017
2/7/2017
LogicPro
X
Ask a Tutor
Get a Professional Answer. 100% Satisfaction Guaranteed.
25 Tutors are Online Now
Type Your Homework Question Here...
characters left: