120 likes | 239 Views
This course provides an overview of programming in C, focusing on the development environment setup and the creation of your first program. Students will learn how to use Microsoft Visual Studio and submit their assignments through the Moodle platform. Homework assignments will help reinforce learning concepts, contributing to 20% of the final grade, while the final exam accounts for 80%. You'll gain practical skills in coding with C and explore critical topics such as printing output, using special characters, and adhering to submission guidelines.
E N D
Programming The Development Environmentand Your First C Program
Administration • Teaching assistant: Yehudit Meir-Hasson • e-mail:yehudit6@post.tau.ac.il • Office hours: Tuesday, 14:00-15:00, Shrayber Building, floor -1, room מ19, scheduled via email.
Web Site – Moodle • Contact information • Announcements • All relevant material (homework, solutions, code examples, slides, etc…) • Homework submission, grades • Q&A • http://moodle.tau.ac.il
Grades • Assignments: 20% • Exam: 80%
Homework • 6-8 homework assignments • Programming assignment • Each assignment is due in one week • 20% of final grade • Computer lab 06, open: 8:00 – 20:00, use email/disk-on-key
Submission Guidelines • Submission in singles! • Submission of C source code via course moodle site • Extensions • Should work on Microsoft Dev Studio • No cheating! • Pay careful attention to the guidelines: submission_guidelines.pdf
Submitted File Names • The names of your submitted code files must begin with your full ID Number, all 9 digits ! • Follow this example: 123456789_a1_q1.c • From left to right: 9 digits ID + _assignment + _question
Using Microsoft Visual Studio • At home: Using_Visual_C++_Express_Edition.pdf • At the labs: Visual_C++_6.0.pdf
(Free) Visual Studio Express • Free work environment • Can be used from home • Download and usage details can be found here
A Simple Example /* This program prints a student’s name on the screen in two lines. */ #include <stdio.h> int main() { printf(“Itzik\nCohen\n”); return 0; }
Printing… • In general we print with printf: • printf (“…”); • printf (“%d”,7); • Special characters: • \n: prints new line (printf (“end\n”);) • \t: prints tab (printf(“Itsik\tCohen\n”;) • \\: prints ‘\’ (printf(“Now\\Tomorrow\n”); • \”: prints ‘ “ ‘ (printf(“He said \”No!\”\n”);
Home Work #0 (in class) • Download hw0 from the moodle site • Solve it • Submit c files to the moodle site