Introductory Lecture Programming Club. Agenda Programming in Linux for newbies Transition from Turbo to GNU C/C++ Face to face with the ONLINE JUDGE Contest.

Slides:



Advertisements
Similar presentations
1 Exceptions: An OO Way for Handling Errors Rajkumar Buyya Grid Computing and Distributed Systems (GRIDS) Laboratory Dept. of Computer Science and Software.
Advertisements

compilers and interpreters
1 ACM Programming Contest Nov 3, Introduction ACM organized such contests from1977 Contest Regional Qualifying Final Purpose provides college.
UNIX Overview. 2 UNIX UNIX is a multi-user and multi-tasking operating system. Multi-tasking: Multiple processes can run concurrently. Example: different.
Overview of programming in C C is a fast, efficient, flexible programming language Paradigm: C is procedural (like Fortran, Pascal), not object oriented.
ARDUINO CLUB Session 1: C & An Introduction to Linux.
C Tutorial Ross Shaull cs146a Why C Standard systems language – Historical reasons (OS have historically been written in C, so libraries written.
Contest format 5 hours, around 8-12 problems One computer running (likely)Linux, plus printer 3 people on one machine No cell phones, calculators, USB.
ITEC 320 Lecture 24 OO in Ada (2). Review Questions? Inheritance in Ada.
Zhang Hongyi CSCI2100B Data Structures Tutorial 2
1 Reading Assignments Linux, g++ & dropboxes Simple C/C++ Program (again) Edit, Compile, Test, Submit CSE Lecture 2 – More Preliminaries.
1 Introduction to UNIX Ke Liu
1 Introduction to UNIX 2 Ke Liu
CS 110 Intro to Computer Science I Sami Rollins Fall 2006.
CS201 - Information. CS201 - Laboratories All labs will be done using Linux on the PC’s or esus. All labs MUST use Makefiles. First lab is due NEXT WEEK.
Revisions If you received the grade: “R” If you received the grade: “R” You must do a revision to receive a grade for lab 2. You must do a revision to.
EPFL ACM ICPC Qualifiers Program Committee I&C, EPFL.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
Project: automated program tester for programs submitted to an ACM-like programming contest General Idea: When a program is submitted to the contest, a.
1 Basics of Linux On linux machine: Login at your home directory Open a “shell” or “terminal” or “xterm” workspace (4) On windows machine Intall linux.
Lecture 01CS311 – Operating Systems 1 1 CS311 – Lecture 01 Outline Course introduction Setting up your system Logging onto the servers at OSU with ssh.
Introduction to Linux/UNIX. History UNIX beginnings in 1969 (Linus Torvalds is born!) AT & T Bell Laboratories (Ken Thompson & Dennis Richie) Working.
Embedded Programming and Robotics Lesson 13 Basic Linux 1.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
CS162B: Assembly and C Jacob T. Chan. Objectives ▪ System calls ▪ Relation of System calls to Assembly and C ▪ Special System Calls (exit, write, print,
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Unix Basics Chapter 4.
2INC0 Operating Systems Introduction to Linux
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
CS 114 – Class 02 Topics  Computer programs  Using the compiler Assignments  Read pages for Thursday.  We will go to the lab on Thursday.
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
CS 6560 Operating System Design Lecture 3:Tour of GNU/Linux.
LINUX Tuesday, 5 July :00 pm. Remote Login l Use Secure Shell (ssh) l Machine name/IP address E.g. ssh hydra.sma.nus.edu.sg Or ssh
Creating your first C++ program
1 Editing a C Program 01/16/15. 2 Objective Use Linux to edit, compile and execute a C program.
Agenda Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Review next lab assignments Break Out Problems.
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
Building Java Programs Primitive Data and Definite Loops.
C By Example 1 The assumption is that you know Java and need to extend that knowledge so you can program in C. 1. Hello world 2. declarations 3. pass by.
CSE 351 GDB Introduction. Lab 1 Status? How is Lab 1 going? I’ll be available at the end of class to answer questions There are office hours later today.
Reactive and Output-Only HKOI Training Team 2006 Liu Chi Man (cx) 11 Feb 2006.
1 CSC2100B Data Structure Tutorial 1 Online Judge and C.
Basic Unix Commands & GCC Saurav Karmakar Spring 2007.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
A Brief Overview of Unix Brandon Bohrer. Topics What is Unix? – Quick introduction Documentation – Where to get it, how to use it Text Editors – Know.
Online Judge System Tom Chao Zhou CSC2100B Data Structures Tutorial 2.
Learning basic Unix command It 325 operating system.
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
 Prepared by: Eng. Maryam Adel Abdel-Hady
Embedded Software Design Week II Linux Intro Linux Kernel.
Software Engineering Algorithms, Compilers, & Lifecycle.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
Linux CSE 1222 CSE1222: Lecture 1BThe Ohio State University1.
August 31, 2010Joris Geurts1 2IN05 Operating Systems Introduction to Linux More information for this course:
Programming C++ in Linux by various IDEs and editors by: Danial Khashabi Master: Dr.B.Taheri November 2008.
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
Chapter 11 Command-Line Master Class
Prepared by: Eng. Maryam Adel Abdel-Hady
A bit of C programming Lecture 3 Uli Raich.
Prog Club Introductory Presentation
Richard P. Simpson Midwestern State University
Useful Linux Commands.
C Programming Lecture Series
Operating Systems Lecture 5.
A Brief Overview of Unix
C By Example The assumption is that you know Java and need to extend that knowledge so you can program in C. 1. Hello world 2. declarations 3. pass.
CS31 Discussion 1H Fall18: week 1
Presentation transcript:

Introductory Lecture Programming Club

Agenda Programming in Linux for newbies Transition from Turbo to GNU C/C++ Face to face with the ONLINE JUDGE Contest for y6 Junta Weekend Programming Contest

Linux for newbies Basic Linux Commands ls, cp, mkdir, chmod, man, rm, less, mv. Text editors Kate, kwrite, emacs, vi. Compile GNU C : gcc GNU C++: g++ Java : javac Execute GNU C/C++:./a.out Java : java

Transition from Turbo to GNU C/C++ Use #include instead of #include Include the line using namespace std; before the main function. Do not include conio.h. Do not use any external library int size is 32 bit.

Example Problem You are given a very long number of about 1000 digits. You have to successively keep on summing the digits till you reach a single digit. For example – Input: Output: 7 How? =52; 5+2=7

Face to face with Online Judge How to submit ? Understanding judge response Success. Solution Accepted. Compile Error. Wrong Answer. Execution Error: It can be further divided into following categories: Invalid Memory Reference: Null pointer exception? Are you consuming too much memory. Process tried to write a file. Process killed by signal 9 => Time Limit Exceeded. Unknown Error:

Contest for Y6 Junta Contest exclusively for Y6 Contest Problems Pascal triangle Longest palindrome in a given string One number in an array of n no.s is missing, nos are not in order, find the missing number Given a number get a new number by adding the digits of the number……keep doing this until the number reduces to a single digit. Print the digit you get Submit solutions/algorithms at

WPC Register at students.iitk.ac.in/programmingclub/wpc.htm atleast one hour before the contest begins Date:20 th Aug 2006 Time :8:30 pm to 11:30 pm Submission page : students.iitk.ac.in/programmingclub/wpc.htm All are invited

Prizes WPC First prize: 300/- Second Prize: 200/- Third prize: 100/- Chocolates for first 10 correct entries for each question. Y6 contest First correct entry for each problem : Rs 200