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

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

View Full Document Right Arrow Icon
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! +…
Image of page 1

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

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

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

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

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

View Full Document Right Arrow Icon
Algorithm: Prime number 1.
Image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern