Computer Languages: Understanding Machine, Assembly, and High-Level Languages, Slides of Automatic Controls

An overview of computer languages, discussing their classification into machine, assembly, and high-level languages. It covers the characteristics, advantages, and disadvantages of each type, as well as examples of high-level languages like C, C++, Java, and Python.

Typology: Slides

2020/2021

Uploaded on 04/03/2021

dilovan-asaad
dilovan-asaad 🇲🇾

2 documents

1 / 21

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Computer Languages
Duhok
Polytechnic University
Computer languages can be classified into 3 types:
Machine Languages:
Languages that the Computer can directly understand…
Each operation a string of digits (1’s and 0’s)
Machine Dependent: only usable on one platform.
Difficult for humans to freely use.
Assembly Languages:
More ‘English-like’: Uses words from natural languages…
Each an abbreviation for a single machine language operation.
Translated to Machine Language by special programs:
Assemblers
Still not convenient for Humans.
High-Level Languages (HLLs):
So-called Programming Languages.
Single statements can accomplish bigger tasks:
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15

Partial preview of the text

Download Computer Languages: Understanding Machine, Assembly, and High-Level Languages and more Slides Automatic Controls in PDF only on Docsity!

Computer Languages

Duhok Computer languages can be classified into 3 types:

  • (^) Machine Languages:  (^) Languages that the Computer can directly understand…  (^) Each operation a string of digits (1’s and 0’s)  (^) Machine Dependent: only usable on one platform.  (^) Difficult for humans to freely use.
  • (^) Assembly Languages:  (^) More ‘English-like’: Uses words from natural languages…  (^) Each an abbreviation for a single machine language operation.  (^) Translated to Machine Language by special programs:  (^) Assemblers  (^) Still not convenient for Humans.
  • (^) High-Level Languages (HLLs):  (^) So-called Programming Languages.  (^) Single statements can accomplish bigger tasks:

Computer Languages

Duhok

  • (^) Both High level language and low level language are the programming languages’s types.
  • (^) The main difference between high level language and low level language is that, Programmers can easily understand or interpret or compile the high level language in comparison of machine.
  • (^) Machine can easily understand the low level language in comparison of human beings.
  • (^) Examples of high level languages are C, C++, Java, Python, etc.

Visual Programming

Duhok

  • (^) Visual Basic .NET (VB.NET) is an object-oriented computer programming language implemented on the .NET Framework.
  • (^) Like all other .NET languages, VB.NET has complete support for object-oriented concepts.
  • (^) Everything in VB.NET is an object, including all of the primitive types (Short, Integer, Long, String, Boolean, etc.) and user-defined types, events, and even assemblies. All objects inherits from the base class Object.

Strong Programming Features VB.Net

Duhok

  • (^) VB.Net has numerous strong programming features that make it endearing to multitude of programmers worldwide. Let us mention some of these features:  (^) Boolean Conditions  (^) Automatic Garbage Collection  (^) Standard Library  (^) Assembly Versioning  (^) Properties and Events  (^) Delegates and Events Management  (^) Easy-to-use Generics  (^) Indexers  (^) Conditional Compilation  (^) Simple Multithreading

C# Toolbox and Events:

Duhok

  • (^) Windows Forms Label controls are used to display text or images that cannot be edited by the user. They are used to identify objects on a form to provide a description of what a certain control will do if clicked, for example, or to display information in response to a run-time event or process in your application. Because the Label control cannot receive focus, it can also be used to create access keys for other controls. Setting Label Properties:
  • (^) After you place a Label control on a Form, the next step is to set properties.
  • (^) The easiest way to set properties is from the Properties Window. You can open Properties window by pressing F4 or right click on a control and select Properties menu item.

1- Labels

Setting Label Properties

Duhok

2- Textbox’s

Duhok

  • (^) To create a TextBox control at design-time, you simply drag and drop a TextBox control from Toolbox to a Form in Visual Studio.
  • (^) Once a TextBox is on the Form, you can move it around and resize it using the mouse and set its properties and events.

2- Textbox’s

Duhok For displaying a text in a TextBox control: TextBox1.Text = "http://vb.net-informations.com" The below code set a textbox width as 150 and height as 25 through source code. TextBox1.Width = 150 TextBox1.Height = 25

3- Buttons

Duhok

  • (^) The Button class in .NET Framework class library represents a Windows Forms Button control.
  • (^) A Button control is a child control placed on a Form and used to process click event and can be clicked by a mouse click.

4- message box

Duhok

  • (^) MessageBox control in Windows Forms is used to display a message with the given text.
  • (^) You can also use MessageBox control to add additional options such as a caption, an icon, or help buttons. 1.string message = "Simple MessageBox" ; 2.string title = "Title"; 3.MessageBox.Show (message, title);

Duhok

  • (^) MessageBox.Show(‘’Result Message’’, ‘’3- Result of our program’’, MessageBoxButtons.OKCancel, MessageBoxIcon.Warning)

5- CheckBox

Duhok

  • (^) A CheckBox control allows users to select single or multiple items from a list of items.
  • (^) To create a CheckBox control at design-time, you simply drag and drop a CheckBox control from Toolbox to a Form in Visual Studio. Once a CheckBox is on the Form, you can move it around and resize it using a mouse and set its properties and events. CheckBox1.Text = “Playing“ CheckBox2.Text = “Coding" CheckBox3.Text = “Reading" CheckBox4.Text = “Hacking" CheckBox5.Text = “Sleeping“ Button1.Text = “Submit"

7- List Boxes

Duhok

  • (^) A ListBox control provides a user interface to display a list of items. Users can select one or more items from the list.
  • (^) A ListBox may be used to display multiple columns and these columns may have images and other controls.

Duhok

  • (^) How to add item to list box: NameOfListBox.Item.Add();
  • (^) How to count items: NameOfListBox.Items.Count();
  • (^) How to clear list box: NameOfListBox.Items.Clear(); ListBox1.Items.Add(“100") ListBox1.Items.Add(“200") ListBox1.Items.Add(“300") ListBox1.Items.Add(“400")