.

Friday, November 8, 2013

Algorithms

First assignment Q1: Write a program thats reads exploiters age and prints CHILD if age N2) blanket(a)=N1, minuscule=N2 Else striking=N2, tenuous=N1 If ( self-aggrandizing% small==o) move (the no is bargonly divisible by smaller) Else bell ringer (the no is non barely divisible by smaller) Else Print (the no are not greater than zero) 4: DESINGN Print ( slip in cardinal +ve integers) shoot (N1) contemplate (N2) If (N1>0 && N2>0) If(N1>N2) Large=N1,small=N2 Else Large=N2, small=N1 If (large% small==o) Print (the no is scarce divisible by smaller) Else Print (the no is not exactly divisible by smaller) Else Print (the no are not greater than zero) 5: dry RUN end product SCREENVARIABLES get in two +ve integers 6 3 The no is exactly divisible by smallerN1= 6 N2= 3 large = N1 = 6 small = N2 = 3 large% small ==0 Q8: Write a program that takes the lenths of the two legs of a counterbalance triangle as stimulant And send area and hypotenuse.
Ordercustompaper.com is a professional essay writing service at which you can buy essays on any topics and disciplines! All custom essays are written by professional writers!
Area_hyp () 1: caper (defines+ describe) This algo takes length of two legs of chastise triangle as input and calculate its area And hypotenuse. 2: INPUT & OUTPUT Input leg1, leg2 Output area, hy! potenuse 3: numeral FORMULA Area =1/2*leg1*leg2 Hypotenuse = sqrt (leg1^2+leg2^2) 4: DESINGN Print (enter the length of two legs) Read (leg1) Read (leg2) Area=1/2*leg1*leg2 Print (Area is) Hypotenuse = sqrt (leg1^2+leg2^2) Print (hypotenuse is) 5: DRY RUN OUTPUT SCREENVARIABLES enter the length of two legs 4 3 Area is 6 Hypotenuse is 5Leg1=4 Leg2=3 Area = ½*4*3 Hypotenuse= sqrt(4^2+3^2) Q.9. A pharmaceutical company pays 10% domiciliate rent of...If you want to get a skilful essay, ordinance it on our website: OrderCustomPaper.com

If you want to get a full essay, visit our page: write my paper

No comments:

Post a Comment