cp-1_lect_17 - More Examples on Algo and Flowcharts...

This preview shows pages 1–7. Sign up to view the full content.

More Examples on Algo and Flowcharts Continued… Draw a flowchart for finding largest of three numbers Draw a flowchart to read marks of 10 students and classify them into different grades Algo for checking whether a given number is prime 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, … Algo for printing Fibonacci series 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, … Algo for finding whether a given number is an Armstrong number 371, 153, 407, ... Draw a flowchart for finding roots of a quadratic equation Draw a flowchart to print sum of even terms within 0 to 20 Algo for finding sum of series 1 + x + (x2 )/2! + x3 /3! +…

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Draw a flowchart for computing factorial N (N!) Where N! = 1 ´ 2 ´ 3 ´ …… N .
Draw a flowchart to find the sum of first 50 natural numbers.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Draw a flowchart to find the largest of three numbers A,B, and C.
Draw a flowchart for computing factorial N (N!) Where N! = 1 ´ 2 ´ 3 ´ …… N .

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Algorithm: Prime number 1.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern