1 / 24

Understanding Algorithms: Flowcharts, Pseudocodes, and C Programming

Algorithm is a work plan depicting task sections like joining a community, studying hard, robotics projects, graduating, finding a high-paying job, and enjoying life. Learn how to make an Algorithm using flowcharts and pseudocodes. Introduction to C Programming covers standard libraries, IO functions, data types, variable declarations, and operators, essential in programming. Enhance your programming skills with flowcharts, pseudocodes, and C programming basics.

Download Presentation

Understanding Algorithms: Flowcharts, Pseudocodes, and C Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. What is Algorithm ? Algorithm, is a work plan that shows the sections of a duty.

  2. Example • Join Hacettepe Robotics Community. • Study hard. • Join Robot Projects. • Graduate from Hacettepe. • Find a Job with high salary. • Enjoy ! ☻

  3. How to make an Algorithm ? • Flowcharts • Pseudocodes

  4. Flowcharts

  5. Yes Start Tap Temperature No Temp. <25 ? Print ‘hot’. Print ‘Cold’. End

  6. Types of Flowcharts • Sequence • Selection • Loop

  7. Start Start Start Sequence Selection Loop Decision Process Process Process Process Process Decision Process End End End

  8. Pseudocodes • Have a usage like routine speaking. • No syntax. • Aims to understand how program works.

  9. Example • 1 if • 2 students grade > 60 • 3 print ‘PASSED’ • 4 else • 5 print ‘FAILED’

  10. Introduction to C Programming • Standart libraries • Standart input/output functions • Data types • Variable declarations • Operators

  11. Standart Libraries • Stdio.h ( Standart input/output) : • Defines variable types • Various functions for performing input / output • Stdlib.h ( Standart Library) : • Various functions for performing general functions

  12. Standart Libraries • Define Library; • #include<stdio.h> • #include<stdlib.h>

  13. Standart Input / Output Functions • Printf • Scanf

  14. Printf 1)Single Text; • printf("Hello World !");

  15. Printf 2)Control Characters;

  16. Printf 3)Conversion Specifier(Place Holder);

  17. #include <stdio.h> int main() { printf("Welcome to Hacettepe Robotics Community!\n"); }

  18. Scanf • scanf("%Conversion_specifier",&Variable _name);

  19. #include <stdio.h> int main() { int x,y,sum; printf("Insert x and y>> !\n"); scanf("%d%d",&x,&y); sum=x+y; printf("Sum is >> %d",sum); }

  20. For a single character Data Type For a string Conversion Specifier

  21. Aritmetic Operators

  22. Assignment Operators

  23. Compare Operators

More Related