A Natural Introduction to Computer Programming with C#

Front Cover
Trafford Publishing, 2004 - C# (Computer program language) - 602 pages

This is the second in a series of books which introduce their readers in a natural and systematic way to the world of computer programming. This book teaches computer programming with the C# programming language. Pronounced "see sharp", this language is the latest important programming language in the computer world.

While studying computer programming with this book, the reader does not necessarily require any previous knowledge about the subject. The basic operating principles of computers are taught before the actual studies of computer programming begin. All the examples of computer programs are written so that the reader encounters a lot of natural-language expressions instead of the traditional abbreviations of the computer world. This approach aims to make learning easier.

The pages of the book are designed to maximize readability and understandability. Examples of computer programs are presented in easy-to-read graphical descriptions. Because the pages of the book are large, example programs can be presented in a more reader-friendly way than in traditional programming books. In addition, pages are written so that the reader does not need to turn them unnecessarily.

The electronic material that is available for the readers of this book includes 250 C# computer programs of which 101 are example programs presented on the pages of the book. Almost one hundred programs are provided as solutions to programming exercises. The rest of the programs are extra programs for interested readers.

When you study computer programming, you need special programming tools in your personal computer. This book explains how the reader can download free programming tools from the Internet. Alternatively, the reader can work with commercial programming tools.

Although this book is designed to be an easy book for beginners in the field of computer programming, it may be useful for more experienced programmers as well. More experienced people might not need to read every paragraph of the body text. Instead, they could proceed more quickly and concentrate on the example programs which are explained with special text bubbles. The book has a 14-page index which should help people to find information about certain features of the C# langauge.


 

What people are saying - Write a review

We haven't found any reviews in the usual places.

Contents

A FIRST LOOK AT C SOURCE PROGRAMS
11
C programs in this book
17
HOW INFORMATION IS STORED IN THE MEMORY OF A COMPUTER
29
Exercises related to numbering systems
37
LOGICAL OPERATING PRINCIPLES OF COMPUTERS
47
Exercise related to main memory usage
50
Exercises related to machinelevel programming
70
Exercises with programs abcde iml and aaaabbbbcccc iml
84
Person cs 1 A class that has public data fields
298
Exercises with program BankBetter cs
304
Convert cs 1 1 Method convert of class Conversion
318
The first part of a program that gives information about planets
321
Exercise with program Stack cs
330
MORE ADVANCED CLASSES
335
Second exercise with Date objects
343
CurrentDate cs 1 The declaration of class CurrentDate 394
344

FUNDAMENTALS OF PROGRAMMING
95
Fullname cs 1 The inputoutput of strings 195
100
Exercises with program Game cs
103
Exercises write some simple programs
121
Additions cs 1 Demonstrating the use of the + operator
122
BASIC ACTIVITIES IN PROGRAMS
129
Declarations of classes MemberClass HighClass and MiddleClass 406
140
Exercises related to if constructs
142
Whilesum cs 1 A program to calculate the sum of integers in a while loop
150
Exercises related to while loops
155
SETS OF SIMILAR DATA ITEMS
171
Exercises with program ArrayDemo cs
173
Class Animal with two constructors and two other methods 308
174
Exercises related to arrays
186
Demonstrating the methods of class ArrayList 514
187
Interest cs 1 + Calculating interest on interest with a multidimensional array
188
STRINGS STORE SEQUENCES OF CHARACTER CODES
193
Widename cs 1 Referring to individual characters of a string
199
Exercises related to strings
200
Exercises with Marilyn cs
226
METHODS LOGICAL PERFORMING UNITS IN PROGRAMS
235
Exercises related to methods
248
Largeint cs 1 + A program to find the largest of three integers 132
252
Still more exercises related to methods
266
Two methods that are executed as independent threads 552
277
Messages cs 1 Method Main calling a simple method named print_message 237
282
Exercises related command line parameters
283
OBJECTORIENTED PROGRAMMING
287
Exercises with program Presidents cs
372
Class Olympics with a property named Year
376
Exercise with programs Olympics and WinterOlympics cs
385
INHERITANCE AND CLASS HIERARCHIES
387
StackInspection cs 1 A program that prints the contents of the stack memory 270
395
Exercises related to inheritance
403
Exercises with program Windows cs
416
Exercise with program Times cs
437
SOME STANDARD C CLASSES AND STRUCTS
439
Decorations cs 1 + Method Main calls a method that takes a string as a parameter 244
448
Exercises with program ExceptionalNumbers cs
450
STORING INFORMATION IN FILES
457
The first part of a program that makes a copy of a text file
468
Exercises related to text files
476
Exercises with program Collect cs
489
MORE STANDARD C TYPES
509
The declaration of class BilingualTranslation
518
Exercises with program Translate cs
521
First cs 1 A C program that prints a single line of text to the screen 13
532
Exercises with struct DateTime
536
GOING CLOSER TO THE MACHINE
537
TruthValues cs 1 A program that prints truth values 169
543
Exercises related to bit operators
554
SUMMARY OF IMPORTANT C FEATURES
561
C KEYWORDS RESERVED WORDS
573
USEFUL TABLES
599
Copyright

Other editions - View all

Common terms and phrases

Bibliographic information