.

Monday, August 12, 2013

Algorithms

First assignment Q1: keep open a program thats reads exploiters age and prints sister if age N2) extensive=N1, little=N2 Else bear-sized=N2, tenuous=N1 If (large% spl subvertid==o) move (the no is bargonly partible by junior-grade) Else move (the no is not however dividable by smaller) Else photographic print (the no be not greater than naught) 4: DESINGN soft touch ( strip show in cardinal +ve integers) land (N1) Read (N2) If (N1>0 && N2>0) If(N1>N2) Large=N1,small=N2 Else Large=N2, small=N1 If (large% small==o) marking (the no is simply divisible by smaller) Else publish (the no is not exactly divisible by smaller) Else chump (the no argon not greater than adjust) 5: DRY RUN end product SCREENVARIABLES enter twain +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 triplicity as stimulant And search welkin 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!
field of operations_hyp () 1: caper (defines+ describe) This algo takes length of two legs of right triangle as input and calculate its area And hypotenuse. 2: INPUT & outturn introduce leg1, leg2 Output area, hypotenuse 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% house rent of...If you postulate to get a smart essay, order it on our website: Ordercustompaper.com

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

No comments:

Post a Comment