Friday, 6 March 2026

Module 1. Lesson 2. Setting Up Environment

Introduction to Lesson 2

A carpenter needs his tools to build any craft for the satisfaction of his clients. The same for programmers who need to set up their tools to effectively write and code C programs. In this lesson, the students will be taught how to set up a Turbo C compiler that runs on their workstations and/or laptops.


Learning Outcomes

At the end of the lesson, 

  1. The students must be equipped of setting up the development environment of writing and executing C programs.


Lesson 2: Read and Learn

Setting Up Environment

The visual guide will walk you through how to properly set up your Turbo C integrated development environment. 


  1. Access this link https://bit.ly/3OjMoxY for the Turbo C compiler

  2. Download TC.zip

  1. Extract the downloaded file to folder TC.

  1. Transfer the TC folder to your drive C.

  1. Open the TC folder, then double-click TC_Launcher to open Turbo C compiler.

 


Walkthrough of the Turbo C Environment 

  1. File Menu

  2. Editor status line and edit window

  3. Compiler message window

  4. “Hot key” quick reference line


Main Menu

The main menu directs Turbo C to take the action specified in the list of menus. By pressing the Alt key and the first letter of the menu, it can be activated or used. To open the File menu, for instance, use Alt + F. 


Basic menu of Turbo C

  1. File – used to “load and save files, handles directories, invokes DOS and exits Turbo C” 

  2. Run – used to “compile (check for errors), links, and runs the program currently loaded in the environment”

  3. Compile – used to compile the environment's current program.


Submenus under File menu

  1. Load – allows the user to choose a file that will be loaded or opened in the editor.

  2. Pick – allows the user to choose a file based on the nine most recently opened or modified files.

  3. New – allows the user to open new programs or modify new files.

  4. Save – saved or "saves the file that is currently open in the editor"

  5. Write to – to "save a file using a different filename" for the user.

  6. Directory – "displays the contents of the current working directory"

  7. Change dir – permits the user to alter the default path or directory by specifying the defined path.

  8. OS Shell – allows the user to "execute DOS commands" and "loads the DOS command processor"

  9. Quit – enables the user to terminate or stop Turbo C


Editor Status Line and Edit Window

You type your program on the editor's status line and edit window, where you can also see the current line and column of the text you've typed. The word insert vanishes when you attempt to hit the Alt-I or Insert key, indicating that the window is in overwrite mode. When you press "insert" once more and go back to regular mode, you'll see the word "insert" appear once again.


Message Window

The message window is situated below the Hotkeys and the centre of the edit window. The various compiler or linker messages are displayed using it.


Hot Keys

The Hotkeys button is at the bottom of the Turbo C splash screen. It alludes to a menu selection shortcut or shorthand. There are two sets of hotkeys: "the standard ones and the alternate set." To use the standard hotkeys, press the corresponding key. Press F1, for instance, to activate assistance. To use alternative hotkeys, however, briefly press the Alt key and the relevant Function key.


Quiz #2. 

  1. Filename extension for c programs.

  2. To load files in the Turbo C compiler.

  3. To compile c programs.

  4. To execute c programs.

  5. To edit code in c programs.

Activity 2.

  1. Submit screenshots of setting up the Turbo C compiler in your own workstations.

Module1. Basics of C Programming. Lesson 1: History of C Language

Module 1. Basics of C Programming


Introduction to Lesson 1: History of C Language

C programming language has been prominent in the industry and has been the foundation of most programming languages. The superiority of the C programming language makes it impossible to be removed from the IT academic journey of would-be programming students.


Lesson 1 Read and Learn

History of C

Dennis Ritchie, working at Bell Labs in 1972, created the general-purpose, high-level language C. C was created for the DEC PDP-11 computer initially. The description of C programming was written by Brian Kernighan and Dennis Ritchie in 1978 and made available to the public under the name K&R standard.

Because the C compiler was available, the dynamics of C allowed for the development of the UNIX operating system, LINUX application applications, and embedded systems. For these reasons, C has evolved into the industry standard.

C programming language is easy to learn & understand, structured language, produces efficient programs, is capable of low-level activities for embedded systems, and can compile a variety of computing platforms in the industry. 

Programming is the act of writing a program. Program is a synonym for computer software that contains a set of specific and defined instructions that tells the computers what to do.


Information on C

• C was created to create the UNIX operating system.

The B language, which debuted in 1970, was replaced by C.

• In 1988, the American National Standard Institute (ANSI) defined the language.

• By 1973, the UNIX OS had been entirely written in C.

• The most used and well-liked system programming language today is C.

• The majority of modern software has been developed in C.

• The most widely used Linux OS today and RBDMS MySQL were created in C.


Why choose C?

C was initially employed for system development tasks, specifically for the operating system's programs. Because C provides code that executes almost as quickly as code written in assembly language, it has become widely used for system development. The following are a few instances of using C:

• Text Editors Operating Systems Language Compilers Assemblers

• Print Spoolers Network Drivers Contemporary Software Databases

• Language interpreters and software utilities


Code in C

A C program should be written into one or more text files with the ".c" extension and can include anywhere from three lines to millions of lines, for example, hello.c. 

In order to complete this module, you must be able to edit text files and create source code in C programming language.


Quiz #1. 

  1. To whom C programming language was credited.

  2. C was first implemented on this computer.

  3. C is a successor of what language?

  4. An Operating System that was completely written in C.

  5. Year C programming language was formalized.

Activity 1.

  1. Submit lists of embedded systems using the C programming language.

Sunday, 5 May 2019

Update Data from Database using Visual Basic 2012 and MySQL

In this Visual Guide, the students will learn how to update data in MySQL database using Visual Basic 2012.

This is the final part of the Visual Basic 2012 CRUD Implementation using MySQL database.

Please follow the steps below to arrive at the same output.

1.  Modify your form to add the following objects.
Requirements:
- Button Name: btn_update
Text: Update
Name: btn_close
Text: Close
- Textbox Name: txtcname_id
Visible: False

Adding Data to MySQL using VB 2012

In this Visual Guide, the students will learn how to add data into MySQL database using Visual Basic 2012.

1. Design your form to accept data entry.
Requirements: 
- Label         Text: Enter course name
- Textbox         Name: txtcname
- Command Button Name: btnsave
                                        Text: Add
- Form 1         Text: Demo System

2.  Double Click Add Button
Add the statement above the Public Class Form1
Imports MySql.Data.MySqlClient

Visual Basic 2012 connecting MySQL Database

In this Visual Guide, students will learn how to create a basic Windows Application integrating MySQL connection.

1. Open Visual Studio 2012.


2. Create a New Project. Templates Visual Basic then select Windows Forms Application. Framework by default is set to .Net Framework 4.5 . Type name for the Project. In this tutorial, vbnetmysql then click Ok button.

Installing MySQL Connector 6.9.8

Visual Guide on installing MySQL Connector for Database Connectivity in Visual Basic 2012.

For easy reference for students on how to install mysql-connector-6.9.8.
  1. Install the MySQL connector using administrator privileges selecting complete. Click the Next button.
  2. Select Complete then click Next