Write an algorithm to calculate the area of a circle and display the result . Use the formulae A=¶r where ¶ is equal to 3.1416?

1 Answer

Answer :

10001/999900

Related questions

Description : Write a C++ program to declare a class ‘circle’ with data members as radius and area. Declare a function getdata to accept radius and putdata to calculate and display area of circle.

Last Answer : #include<iostream.h> #include<conio.h> class circle { float radius,area; public: void getdata() { cout<<"Enter radius:"; cin>>radius; } void putdata() { area=3 ... { circle c; clrscr(); c.getdata(); c.putdata(); getch(); }

Description : Define a class circle having data members pi and radius. Initialize and display values of data members also calculate area of circle and display it.

Last Answer : class abc {  float pi,radius; abc(float p, float r) { pi=p; radius=r; } void area() { float ar=pi*radius*radius; System.out.println("Area="+ar); } void display() { System.out.println("Pi="+pi ... void main(String args[]) { abc a=new abc(3.14f,5.0f); a.display(); a.area(); } }

Description : The formulae to calculate ginning percentage

Last Answer : Ans.Ginning %=

Description : Which of the following formulae is used to calculate tangential stress, when a member is subjected to stress in mutually perpendicular axis and accompanied by a shear stress? a. [(σ x - σ y )/2 ]sin θ - τ cos 2θ b. [(σ x - ... τ cos 2θ c. [(σ x - σ y )/2 ]sin θ - τ 2 cos θ d. None of the above

Last Answer : c. [(σ x – σ y )/2 ]sin θ – τ 2 cos θ

Description : What is the formulae to calculate sustained stress?

Last Answer : Sl = (F axial/ Area) + (Sb2+4St2)1/2

Description : Write a shell script to accept length and breadth of rectangle from user. Calculate and display area, perimeter, of entered values using choice entered by user.

Last Answer : #!/bin/bash # GNU bash, version 4.3.46 echo "Enter Length of Rectangle: " read length echo "Enter Breadth of Rectangle: " read breadth echo "Which operation you want to perform? 1: area 2: perimeter" read ... ) res=` echo 2 \* $length \* $breadth | bc` ;; esac echo "Result is $res" exit 0

Description : How do I restore an iPod with a 1416 error?

Last Answer : it requires some finagling in Terminal, but should not be too hard. First, connect the iPod to your computer and open Terminal. Type: diskutil list You will get a list something to the ... restore it. And explode into dance. Source: http://discussions.apple.com/thread.jspa?threadID=1421052&tstart=1

Description : When did John Napier develop logarithm? A) 1416 B) 1614 C) 1641 D) 1804

Last Answer : Answer : B

Description : When did John Napier develop logarithm: a) 1614 b) 1416 c) 1641 d) None of The Above

Last Answer : a) Direct Memory Access

Description : AGARTALA is written in code as 14168171, the code for AGRA is: (A) 1641 (B) 1416 (C) 1441 (D) 1461

Last Answer : Answer: D A G A R T A LA is written in code as 1 4 1 6 8 1 7 1 Therefore A G R A = 1 4 6 1

Description : 2. write a Python program to calculate the area of a circle. -Artificial Intelligence

Last Answer : # Python Program to find Area Of Circle using Radius PI = 3.14 radius = float(input(' Please Enter the radius of a circle: ')) area = PI * radius * radius circumference = 2 * PI * radius print(" Area Of a Circle = area + "sq ms") print(" Circumference Of a Circle = circumference +"cms")

Description : How to write a Python program (i)to calculate area of a circle and (ii)to find if a given number is even or odd. -Python

Last Answer : (i) # 1.Circle pi = 3.14 r = int(input("Please enter the Radius of the circle:")) area = pi*r*r print("Area of the circle is" + str(area) + "sq ms") (ii) # 2. Odd Number & Even Number Number = int( ... Number % 2 == 0): print("This is an Even Number") else: print("It's an Odd Number")

Description : Write a program to calculate area of circle and area of rectangle using function overloading. 

Last Answer : #include<iostream.h> #include<conio.h> float area(float a) { return (3.14*a*a); } int area(int p,int q) { return(p*q); } void main() { clrscr(); cout< ... ;<<area(6); cout<<"Area of Rectangle:"<<area(5,6); getch(); }

Description : Write a Program in ‘C’ for DDA Circle drawing algorithm

Last Answer : #include<stdio.h> #include<conio.h> #include<graphics.h> #include<math.h> void main() { int gdriver=DETECT,gmode,errorcode,tmp,i=1,rds; float st_x,st_y,x1,x2,y1,y2,ep; initgraph(& ... =y2; }while((y1-st_y)<ep || (st_x-x1)>ep); getch(); }

Description : Rephrase the Bresenham’s algorithm to plot 1/8th of the circle and write the algorithm required to plot the same.

Last Answer : The key feature of circle that it is highly symmetric. So, for whole 360 degree of circle we will divide it in 8-parts each octant of 45 degree. In order to that we will use Bresenham's Circle Algorithm for calculation of the ... Call Putpixel (Y + h, -X - k). Call Putpixel (-Y + h,-X + k).

Description : How do you Write a pseudo code algorithm that reads in three values and writes out the result of subtracting the second value from the sum of the first and third values?

Last Answer : Pseudocode means you don't use any actual computer language, so you can be quite informal. Just get the general idea. In this case, for instance:Input number to aInput number to bInput ... a + c - bShow resultYour teacher may have specific requirements for pseudocode; try to incorporate those.

Description : Write a C++ program to declare a class addition with data members as x and y. Initialize values of x and y with constructor. Calculate addition and display it using function ‘display’.

Last Answer : #include<iostream.h> #include<conio.h> class addition { int x,y; public: addition(int,int); void display(); }; addition::addition (int x1,int y1) { x=x1; y=y1; } void addition: ... y); } void main() { addition a(3,4); a.display(); getch(); }

Description : If the value of a number (N) is entered through keyboard. Write a program using recursion to calculate and display factorial of number (N). 

Last Answer : #include<stdio.h> #include<conio.h> int factorial(int N); void main() { int N,fact; clrscr(); printf("Enter number:"); scanf("%d",&N); fact=factorial(N); printf( ... N) { if(N==1) return(1); else return(N*factorial(N-1)); }

Description : Write a program to accept marks of four subjects as input from user. Calculate and display total and percentage marks of student. 

Last Answer : #include<stdio.h> #include<conio.h> void main() { float marks[4]; float total=0.0, perc=0.0; int i; clrscr(); for(i=1;i<=4;i++) { printf("Enter marks of ... is :%f",total); perc=total/4; printf("Percentage is %f",perc); getch(); }

Description : Decision Tree is a display of an algorithm. a) True b) False

Last Answer : a) True

Description : Write the molecular formulae for the following compounds -Maths 9th

Last Answer : NEED ANSWER

Description : Write the molecular formulae for the following compounds -Maths 9th

Last Answer : molecular formulae of the following compounds.

Description : Using IUPAC norms write the formulae for the following: (a) Potassium trioxalatoaluminate (III) (b) Dichloridobis(ethane-l, 2-diamine) cobalt (III) -Chemistry

Last Answer : (a) K3[Al(C2O4)3] (b) [Co(Cl)2(en)2]+

Description : Using IUPAC norms write the formulae for the following: (a) Tris(ethane-1,2-diamine) chromium (III) chloride (b) Potassium tetrahydroxozincate(II) -Chemistry

Last Answer : a) [Cr(en)3] Cl3 (b) K2[Zn(OH)4]

Description : Using IUPAC norms write the formulae for the following: (i) Sodium dicyanidoaurate (I) (it) Tetraamminechloridonitrito-N-platinum (IV) sulphate -Chemistry

Last Answer : (i) Na[Au(CN)2] (ii) [Pt(NH3)4 Cl(NO2)] (SO4)

Description : Write all the auxiliary formulae of `A=P(1+(TR)/(100))`.

Last Answer : Write all the auxiliary formulae of `A=P(1+(TR)/(100))`.

Description : If the motion of an object is described by x = f(t) write formulae for instantaneous velocity and acceleration.

Last Answer : If the motion of an object is described by x = f(t) write formulae for instantaneous velocity and acceleration.

Description : Write the formulae of the compounds of hydrogen formed with sodium and chlorine.

Last Answer : Write the formulae of the compounds of hydrogen formed with sodium and chlorine.

Description : Write the molecular formulae of the third and fifth member of homologous series of carbon compounds represented by the general formula C n H 2n+2

Last Answer : Third member n = 3, C 3 H 2x3+2 = C 3 H 8 Fifth member n = 5, C 5 H 2x5+2 = C 5 H 12

Description : Write the molecular formulae for the following compounds and name the elements present. (a) Baking soda (b) Common salt (c) Sulphuric acid (d) Nitric acid

Last Answer : (a) Baking soda - NaHCO3 Elements present in Baking soda are sodium, hydrogen, oxygen and carbon. (b) Common salt - NaCl Element present are: Sodium and chlorine. (c) Sulphuric acid - H2SO4 ... , sulphur and oxygen. (d) Nitric acid - HNO3 Elements present are: Hydrogen, nitrogen and oxygen.

Description : Write the molecular formulae of: 1. Copper oxide 2. Iron (III) chloride 3. Sodium hydroxide 4. Iron (II) sulphide 5. Lead (II) oxide 6. Hydrogen nitrate (nitric ... Hydrogen sulphate (sulphuric acid) 8. Calcium hydroxide 9. Magnesium carbonate 10.Ammonium carbonate

Last Answer : 1. Copper oxide - CuO 2. Iron (III) chloride - FeCl3 3. Sodium hydroxide - NaOH 4. Iron (II) sulphide - FeS 5. Lead (II) oxide - PbO 6. Hydrogen nitrate (nitric acid) - HNO3 7. ... ) - H2SO4 8. Calcium hydroxide - Ca(OH)2 9. Magnesium carbonate - MgCO3 10.Ammonium carbonate - (NH4)2CO3

Description : What goes into the algorithm Google Maps uses to calculate the suggested time of a given trip?

Last Answer : see @timtrueman ‘s answer to this thread http://www.fluther.com/82394/how-do-online-mapping-tools-calculate-best-distance-time/

Description : Explain LRU page replacement algorithm for following reference string. 7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1 Calculate the page fault.

Last Answer : LRU: The Least Recently Used (LRU) page replacement policy replaces the page that has not been used for the longest period of time. LRU replacement associates with each page the time of that page's last use. ... in question so assume frame size as 3 or 4) LRU: Assume frame size=3

Description : Below are the few steps given for scan-converting a circle using Bresenham's Algorithm. Which of the given steps is not correct? (1) Compute d = 3 – 2r (where r is radius) (2) Stop if x> y (3) If d

Last Answer : If d≥0,then d=4 *(x-y)+10, x=x+1 and y=y+1

Description : Plzz give me answer

Last Answer : Here is an algorithm to find the area of a triangle: Accept the values of the three sides of the triangle (a, b, c). Calculate the semi-perimeter of the triangle using the formula: s = (a ... the triangle, and it is used as a way to simplify the formula and avoid having to calculate the perimeter.

Description : State which of the following formulae is/are incorrect and justify your statement. -Maths 9th

Last Answer : (ii) V = ab + c, is incorrect As volume is three - dimensional, so each term in the formula must have a product of three letter terms.

Description : (a) What are groups' and periods' in the periodic table'? (b) Two elements M and N belong to group I and II respectively and are in the same period of the periodic ... Sizes of their atoms Their metallic characters Their valencies in forming oxides Molecular formulae of their chlorides -Science

Last Answer : (a) The vertical columns in the periodic table are called groups'. The horizontal rows in the periodic table are called periods'. (b) M' and N' belong to same period but group I ... oxides. Valency goes on increasing first and then decreases. MCI, NCI2 are molecular formulae of their chlorides.

Description : What is the best formulae milk for babies?

Last Answer : Enfamil Enspire Infant Formula is an inspired way to nourish. Enspire has MFGM and Lactoferrin, two components also found in breast milk, making it our closest formula ever to breast milk. Enspire is a non-GMO* baby formula that is designed to provide complete nutrition for babies through 12 months.

Description : The two projection formulae that represent a pair of enantiomers are.

Last Answer : The two projection formulae that represent a pair of enantiomers are. A. I and II B. III and IV C. I and III D. II and IV

Description : The two projection formulae that represent a pair of enantiomers are.

Last Answer : The two projection formulae that represent a pair of enantiomers are. A. I and II B. III and IV C. I and III D. II and IV

Description : In the formula `t_(n)=(1)/(a+(n-1)d)`, how many auxiliary formulae are possible ad what are they?

Last Answer : In the formula `t_(n)=(1)/(a+(n-1)d)`, how many auxiliary formulae are possible ad what are they?

Description : A book with many printing errors contains four different formulae for the displacement y of a particle undergoing a certain periodic function

Last Answer : A book with many printing errors contains four different formulae for the displacement y of a ... Rule out the wrong formulae on dimensional grounds.

Description : Find out the structural formulae of various oxyacids of phosphorus.

Last Answer : Find out the structural formulae of various oxyacids of phosphorus.

Description : The formulae of Karl pearson’s coefficient of Skewness

Last Answer : Ans. CSK=

Description : The formulae of Rate of Turn Over

Last Answer : Ans. Rate of Turn Over =

Description : Formulae of Intelligent Quotient

Last Answer : Ans. I.Q. (%) =

Description : Formulae of pure live seed

Last Answer : Ans. Pure Live Seed =

Description : Formulae of real value of seed

Last Answer : Ans. Real value of seed =

Description : The formulae of monosaccharide

Last Answer : Ans. C6H12O6

Description : The formulae of particle density of soil

Last Answer : Ans. PD (g/cc) =