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
HW Helper, Tutor
Category: Homework
Satisfied Customers: 45
Experience:  B.A. from top 20 business school-actually misses doing homework-math, econ, psych, business, art
6422916
Type Your Homework Question Here...
HW Helper is online now
A new question is answered every 9 seconds

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: 5 years ago.
Category: Homework
Expert:  HW Helper replied 5 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
Customer: replied 5 years ago.
Just the calculation of the circle using the information that was given.
Expert:  HW Helper replied 5 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 school-actually misses doing homework-math, econ, psych, business, art
HW Helper and 7 other Homework Specialists are ready to help you
Customer: replied 5 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 5 years ago.
Which format are you looking for?
Customer: replied 5 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 5 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 school-actually misses doing homework-math, econ, psych, business, art
HW Helper and 7 other Homework Specialists are ready to help you
Expert:  HW Helper replied 5 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!
Customer: replied 5 years ago.
I entered it into a Dev-C++ program but can't get the answer you gave me, i am getting a lot of errors.
Expert:  Raj replied 5 years ago.
So you need the code for this??
Expert:  Raj replied 5 years ago.
THIS ANSWER IS LOCKED!
You can view this answer by clicking here to Register or Login and paying PhP150.
If you've already paid for this answer, simply Login.
Expert:  Raj replied 5 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....

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
< Last | Next >
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
  • He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here. Diane Dallas, TX
 
 
 

Meet The Experts:

 
 
 
  • Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4522
    More than 5000 online tutoring sessions.
< Last | Next >
  • http://ww2.justanswer.com/uploads/BU/BusinessTutor/2012-2-2_115741_Kouki2.64x64.jpg Manal Elkhoshkhany's Avatar

    Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4522
    More than 5000 online tutoring sessions.
  • http://ww2.justanswer.com/uploads/ComputersGuru/2010-02-13_051118_Photo41.JPG LogicPro's Avatar

    LogicPro

    Engineer

    Satisfied Customers:

    3458
    Expert in Java C++ C C# VB Javascript Design SQL HTML
  • http://ww2.justanswer.com/uploads/LI/lindaus/2012-6-10_04811_IMG20120609164157.64x64.jpg Linda_us's Avatar

    Linda_us

    Finance, Accounts & Homework Tutor

    Satisfied Customers:

    3124
    Post Graduate Diploma in Management (MBA)
  • http://ww2.justanswer.com/uploads/chooser77/2009-08-18_162025_Chris.jpg Chris M.'s Avatar

    Chris M.

    M.S.W. Social Work

    Satisfied Customers:

    2385
    Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)
  • http://ww2.justanswer.com/uploads/JawaadAhmed/2009-6-27_12137_SIs_SHadi.jpg F. Naz's Avatar

    F. Naz

    Chartered Accountant

    Satisfied Customers:

    1988
    Experience with chartered accountancy
  • http://ww2.justanswer.com/uploads/JK/jkcpa/2011-1-16_182614_jkcpa.64x64.jpg Bizhelp's Avatar

    Bizhelp

    CPA

    Satisfied Customers:

    1876
    Bachelors Degree and CPA with Accounting work experience
  • http://ww2.justanswer.com/uploads/avremote/photoa.jpg Seanna's Avatar

    Seanna

    Tutor

    Satisfied Customers:

    1781
    3,000+ satisfied customers, all topics, A+ work
 
 
 

Related Homework Questions

Chat Now With A Tutor
HW Helper
HW Helper
Tutor
45 Satisfied Customers
B.A. from top 20 business school-actually misses doing homework-math, econ, psych, business, art