Question

How many steps does the following algorithm take?

How many steps does the following algorithm take?

Homework Answers

Answer #1

Answer-

  • Basically, an algorithm is takes finite set of steps that is solving any problem.
  • If you design algorithm for any problem  first you know the problem domain which is help to design an algorithm.

Example- algorithm for sum of two number-

Step 1- Start

Step 2- initialize variable /////(a,b,sum)

Step 3- take the input or declare the value of variable ////(a=4,and b=5)

Step 4- add the value and store ////// (sum= 4+5)

Step 5- print the output ////(sum=9)

Step 6- output

Note- Please do upvote, if any problem then comment in box sure I will help.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Write out an algorithm (using a list of steps or a flowchart), for describing to someone...
Write out an algorithm (using a list of steps or a flowchart), for describing to someone how to take the derivative of a polynomial of order n. ?(?) = ?0 + ?1? 1 + ?2? 2 + ⋯ + ??? ?
Approximately how many days does human cleavage take?  
Approximately how many days does human cleavage take?  
How many aromatic rings does it take for helicity to arise?
How many aromatic rings does it take for helicity to arise?
- How many calories does it take to heat 10 grams of ice to 6 degrees...
- How many calories does it take to heat 10 grams of ice to 6 degrees C? - How many calories does it take to heat 10 grams of 43 degree C water to a vapor?
How many years does it take for a deposit of $1000 to reach $2700 with an...
How many years does it take for a deposit of $1000 to reach $2700 with an annual effective interest rate of 11.1%?
On average, people stay in their job for 15 years. How many months does it take...
On average, people stay in their job for 15 years. How many months does it take someone to find a job, on average, if the steady state natural rate of unemployment is 6.25%
How many days does it take for a perfect blackbody cube (0.0134 m on a side,...
How many days does it take for a perfect blackbody cube (0.0134 m on a side, 35.7 °C) to radiate the same amount of energy that a one-hundred-watt light bulb uses in one hour?
How many days does it take for a perfect blackbody cube (0.0379 m on a side,...
How many days does it take for a perfect blackbody cube (0.0379 m on a side, 14.6 °C) to radiate the same amount of energy that a one-hundred-watt light bulb uses in one hour?
How many days does it take for a perfect blackbody cube (0.0157 m on a side,...
How many days does it take for a perfect blackbody cube (0.0157 m on a side, 29.2 °C) to radiate the same amount of energy that a one-hundred-watt light bulb uses in one hour?
1.)How many years does it take for a deposit of $1000 to reach $2400 with an...
1.)How many years does it take for a deposit of $1000 to reach $2400 with an annual effective interest rate of 13%? ( 4 decimal places) 2)Redo Problem #1 above, but use simple interest for any fraction of a year. Answer to 4 decimals.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT