Joyce | C and Python Applications | Buch | 978-1-4842-7773-7 | www.sack.de

Buch, Englisch, 233 Seiten, Format (B × H): 178 mm x 254 mm, Gewicht: 482 g

Joyce

C and Python Applications

Embedding Python Code in C Programs, SQL Methods, and Python Sockets
1. Auflage 2021
ISBN: 978-1-4842-7773-7
Verlag: Apress

Embedding Python Code in C Programs, SQL Methods, and Python Sockets

Buch, Englisch, 233 Seiten, Format (B × H): 178 mm x 254 mm, Gewicht: 482 g

ISBN: 978-1-4842-7773-7
Verlag: Apress


Solve problems by embedding Python code in a C programs, SQL methods, Python sockets. This book uses rudimentary mathematics and basic programming to create practical Python applications for embedding. You'll start with an introduction to C and Python, assuming a fundamental understanding of what programming is. You will also review the basics of the database management language, SQL. You will learn how to use SQL from a C program and from a Python program. C and Python have different programming strengths, and you will learn how to write a Python program embedded within a C program to profit from the strength of each, in one program. Finally, you will explore how socket programs enable two computers to communicate with each other. Here the book covers basic server-client, basic threaded, and basic chat programs. What You Will Learn - Review basic Python and C coding
- Understand the methods of embedding Python code within a C program
- Create typical programs in Python and C using SDK
- Work with socket applications in Python

Who This Book Is For

Programmers and computational modelers with at least some prior experience with programming in C and Python as well as programming in general.

Joyce C and Python Applications jetzt bestellen!

Zielgruppe


Professional/practitioner


Autoren/Hrsg.


Weitere Infos & Material


Chapter 1 :Review of C and PythonChapter goal: Load up all of the software eg sqlite3, C, Python etc
1.1 : Pythona. Defining different types of variablesb. Reading in data from command linec. Arithmetic operationsd. Switches (user-written)e. If-then-elsef. Arraysg. For loopsh. Stringsi. Math functionsj. User-written functionsk. Dictionariesl. File usem. Use of Matplotlibn. Create typical programs in Python using SDK1.2 : C
a. Read and write characters
b. Arithmetic operationsc. Switchesd. If-then-elsee. Arraysf. For loops and Do loopsg. Stringsh. Data arraysi. Structuresj. Math functionsk. User-written functionsl. File usem. Create typical programs in C using SDKExercises

Chapter 2:  SQL in C  Chapter goal: Load up all of the software eg sqlite3, C compiler,  Python etc. Demonstrate using SQL in C by writing separate C programs to:-
a) create a table
b) insert a row of data into the tablec) select a row or rows of data in the tabled) amend a row of data in the tablee) delete a row of data from the tableExercises

Chapter 3 :SQL in Python  Chapter goal: Load up appropriate eg sqlite3, Python etc. Demonstrate using SQL in Python by writing separate Python programs to:-a) create a table
b) insert a row of data into the tablec) select a row or rows of data in the tabled) amend a row of data in the tablee) delete a row of data from the tableExercises

Chapter 4 : Embedded Python in Ca. Introduction to why you might want to embed python in cb. Basic example “hello”c. Plot a graph with preset points in python program d. Plot a graph with user-entered points in pythone. Print from a dictionaryExercises

Chapter 5: Sockets in Python a. Show basic server-client  programs
b. Show basic threaded  programs
c. Show basic chat  programs
Exercises

AppendicesC Programming Code GuidePython Programming Code Guide


Philip Joyce has 28 years experience as a software engineer – working on control of steel production, control of oil refineries, communications software (pre-Internet), office products (server software), and computer control of airports. Programming in Assembler, COBOL, Coral66, C, and C++. Mentor to new graduates in the company. He also has a MSc in computational physics (including augmented matrix techniques and Monte Carlo techniques using Fortran) - Salford University 1996. Chartered scientist, chartered physicist, member of the Institute of Physics (member of the higher education group).



Ihre Fragen, Wünsche oder Anmerkungen
Vorname*
Nachname*
Ihre E-Mail-Adresse*
Kundennr.
Ihre Nachricht*
Lediglich mit * gekennzeichnete Felder sind Pflichtfelder.
Wenn Sie die im Kontaktformular eingegebenen Daten durch Klick auf den nachfolgenden Button übersenden, erklären Sie sich damit einverstanden, dass wir Ihr Angaben für die Beantwortung Ihrer Anfrage verwenden. Selbstverständlich werden Ihre Daten vertraulich behandelt und nicht an Dritte weitergegeben. Sie können der Verwendung Ihrer Daten jederzeit widersprechen. Das Datenhandling bei Sack Fachmedien erklären wir Ihnen in unserer Datenschutzerklärung.