answersLogoWhite

0


Best Answer

Rewrite the above program so that the program accepts any value for the radius then recalculate the area of the circle.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to calculate the area of a circle The equation to determine the area of a circle is area equals 3.1416radiusradius Assume that the circle has a radius of 4 inches?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a c program to determine whether a matrix is singular or not?

A c program is also known as a computer program. A singular matrix has no inverse. An equation to determine this would be a/c=f. <<>> The determinant of a singular matix is zero.


What is the relationshjip between a computer program and an algorithm?

A computer program can use a pre-programmed Algorith to calculate what you want it to calculate.


A program using bufferedreader in quadratic equation?

doctor


What lists all the integer solutions of the equation x equals 10?

The person or program that solves the equation does.


How do you calculate on a spreadsheet?

Enter an equation in a cell and press enter. If auto-calculate is turned on, all calculations are automatic. If auto-calculate is turned off, calculate manually by clicking on the calculate button or pressing F9.You use functions and operators built into the spreadsheet, or you access an additional add-on. You can highlight the numbers to be calculated and then choose an icon to add them up. Other times, you can use a formula to name the cells you want to do math with and the function symbol (like add, subtract, multiply or divide) and the program will do it for you. Click on help in the program to access directions to do this.


How do you determine if a corporate program is meeting its intended objectives?

Answering "How would i determine whether the program was meeting its objectives for both the company and the staff in the company?"


Program to calculate area of triangle?

You don't need a program; the formula is b*h/2.


How does HBO determine its programming schedule?

HBO determines its programming by the length of the program and rating of the program.


A program to compute the real roots of the quadratic equation?

Where the equation is ax2 + bx + c the roots are given by the solutions to : (-b +/- sqrt(b2 - 4ac))/2a So you would first input the values of a, b , and c, then calculate [d = b*b - 4*a*c], and then determine whether it is positive or negative. If it is positive [d>0, or d=0], then you can continue: so the two roots of x are: (-b + sqrt(d))/2/a, and (-b - sqrt(d))/2/a. If d < 0, then you need to calculate sqrt(-d) and then display -b/2/a as the real part, and +/- sqrt(-d)/2/a as the imaginary parts.


How do engineers use the quandratic formula?

Law of motion is quadratic equation and is use in calculate of object trajectory. Fluid dynamic for sizing of pump is also second order equation. Quadratic equation or higher may use to fit equation for fast calculation of result. Example on vapour density equation for the use of evaporative mass transfer. We do need to know how much water air can take. It could use the data from table but the work will be lengthly. We can make data in the table a form of polynomial equation and so put it into program for calculated out this require vapour density.


Write a program to calculate first?

int first= 1;


What is the program to calculate the area of a square?

base X height