This guide provides a tutorial introduction to computing and the C++computer programming language. It will help you teach yourself to write, compile, execute and test simple computer programs inC++which read data from the keyboard, perform some computations on that data, and printout the results; and how to display the results graphically using gnu plot. By the end of the course, you should be able touse computing to help you understand physics better. C. Organisation There are 4two-hour laboratory sessions scheduled for the Michaelmasterm computing course, and 3 sessions for the Lent term. You should work through the examples and exercises described in this document. Each session consists of a tutorial (which must be read before the start of the laboratory session) and interleaved computing exercises. Please allow two hours preparation time per week. The computing exercises are placed inside a boxlike this one. To benefit most from the laboratory session and from the demon strators’help you must read the tutorial sections before the start of each session . C. Assessment In this course, your progress will be self-assessed . The self-assessment process is based on a desire to treat you as adults, and on the assumption that you are interested in learning, capable of choosing goals for yourself, and capable of self-evaluation. I expect everyone to achieve full marks. Programming is an essential skill, just like graph-sketching . If you don’t know how to sketch graphs, what do you do? -practice, read books, talk to supervisors and colleagues, practice some more. As second-year physicists, graph sketching should be second nature, and you should use it as a tool in all physics problems you study. Similarly, programming is a valuable tool for thinking, exploring, investigating, and understanding almost any scientific or technical topic. You will find that programming can help you with your 2ndyear, 3rdyear, and 4thyearcourses. This course exists to get you up to speed on programming, for the benefit of all your courses. Many skills are best acquired gradually. Programming is one such skill, so this course is spread over two terms. To ensure that you are making steady progress we will seta sequence of tasks and targets. We strongly encourage you to do these tasks at the recommended time, because that’s when the expert demonstrators are thereto help you. To allow for unexpected complications, the final deadline for assessment of each piece of work will be 9 days after the recommended completion time…
Download Tutorial Guide to C++ Programming.Pdf
0 comments:
Post a Comment