daa lab questions

2
DESIGN & ANALYSIS OF ALGORITHMS 1. Calculate the area and circumference of 10 circles by supplying the corresponding radii, one-by-one. Draw the flow chart and write an algorithm. 2. Draw the flowchart and write an algorithm of the Overtime calculation example. 3. Develop a flow chart and write an algorithm to convert any temperature from Centigrade to Fahrenheit, using the relation C / 5 = F-32 / 9. 4. Develop a flow chart and write an algorithm to calculate the area of a triangle and circumference of a circle using the relations Area = p r2 and circumference = 2p r 5. Develop a flow chart and write an algorithm to prepare the marksheet for the students of a class. 6. Develop a flow chart and write an algorithm to prepare salary for the employees and calculate the tax on salary based. 7. Develop a flow chart and write an algorithm to solve a quadratic equation. 8. Develop a flow chart and write an algorithm to check whether any given year is Leap or not. 9. Develop a flow chart and write an algorithm to check prime and unprimed numbers. 10. Develop a flow chart and write an algorithm to calculate the factorial of any positive number using recursive function.

Upload: sujathalavi

Post on 18-Sep-2015

228 views

Category:

Documents


0 download

DESCRIPTION

DAA Lab Questions

TRANSCRIPT

DESIGN & ANALYSIS OF ALGORITHMS1. Calculate the area and circumference of 10 circles by supplying the corresponding radii, one-by-one. Draw the flow chart and write an algorithm.2. Draw the flowchart and write an algorithm of the Overtime calculation example.3. Develop a flow chart and write an algorithm to convert any temperature from Centigrade to Fahrenheit, using the relation C / 5 = F-32 / 9.4. Develop a flow chart and write an algorithm to calculate the area of a triangle and circumference of a circle using the relations Area = p r2 and circumference = 2p r5. Develop a flow chart and write an algorithm to prepare the marksheet for the students of a class.6. Develop a flow chart and write an algorithm to prepare salary for the employees and calculate the tax on salary based.7. Develop a flow chart and write an algorithm to solve a quadratic equation.8. Develop a flow chart and write an algorithm to check whether any given year is Leap or not.9. Develop a flow chart and write an algorithm to check prime and unprimed numbers.10. Develop a flow chart and write an algorithm to calculate the factorial of any positive number using recursive function.11. Develop a flow chart and write an algorithm to calculate the bill amount for the book shop.12. Develop a flow chart and write an algorithm to find the product of two matrices.13. Write an algorithm for DFS.