0% found this document useful (0 votes)
3 views

Programming Language

Programming languages facilitate communication with computers to create software applications, with various types such as high-level, low-level, scripting, and markup languages serving different purposes. Flowcharts visually represent processes, aiding programmers in planning and organizing their code logically before implementation. The relationship between flowcharts and programming languages enhances problem-solving by breaking down complex tasks into manageable steps, which can then be translated into machine-readable code.

Uploaded by

moham4d2023
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Programming Language

Programming languages facilitate communication with computers to create software applications, with various types such as high-level, low-level, scripting, and markup languages serving different purposes. Flowcharts visually represent processes, aiding programmers in planning and organizing their code logically before implementation. The relationship between flowcharts and programming languages enhances problem-solving by breaking down complex tasks into manageable steps, which can then be translated into machine-readable code.

Uploaded by

moham4d2023
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

1 What are Programming

Languages?
Programming languages are used to
communicate with computers and to create
software applications. They allow
programmers to create code that computers
can run, serving as a link between human
reasoning and machine instructions. Each
language is intended to solve certain issues
and jobs efficiently.
2 Programming Language
Types
A High-level languages, like Python, which
are easier for people to understand, Offer
direct hardware control and high performance
but are difficult to learn, debug, and lack
portability.
B Low-level languages, such as C, which
are closer to machine code. They are Easy to
read, write, and maintain, making them
accessible for beginners, but they trade
performance and control for abstraction.
C Scripting languages, like JavaScript, often
used for automating tasks or making websites
interactive. Ideal for rapid development and
automation, but they are slower and less
suitable for large-scale systems.
D Markup languages, such as HTML, which
are used to structure and present data. It
Makes structuring data easy, but Relies on
other languages for functionality
3 What are Flowcharts?
Flowcharts are diagrams that use symbols to show
steps in a process. They break complex steps by
visually displaying a series of choices or actions. In a
flowchart, each shape has a meaning:
Ovals indicate the beginnings and ends.
Rectangles show actions or directions.
Diamonds represent decision points.
Arrows show how the process is moving and connect
between other shapes.
4 Relation between Flowcharts and
Programming Languages
Flowcharts and programming languages are tools
for problem solving that break down complicated
tasks into shorter steps. Programmers better plan
and prepare their ideas before writing code using
flowcharts, which visually represent processes.
This logical chain of actions is converted into
machine-readable code using programming
languages. Programmers can make sure their code
follows the wanted logic by comparing
programming elements (such as if-else
5 proggramming
languages compared HTML
<!DOCTYPE html>
Python <html>

number = int(input("Enter a <head>


number: ")) <title>Even or Odd</title>

if number % 2 == 0: </head>

print("The number is even.") <body>

<h2>Check if a Number is Even or


else: Odd</h2>

print("The number is odd.") <label for="number">Enter a


number:</label>

<input type="number"
id="number"><br><br>
C
<button
#include <stdio.h> onclick="checkEvenOdd()">Check</butto
n>

int main() { <p id="result"></p>

int number;

printf("Enter a number: "); <script>

function checkEvenOdd() {
scanf("%d", &number);
const number =
if (number % 2 == 0) { parseInt(document.getElementById("numb
er").value);
printf("The number is even.\
n");
if (number % 2 === 0) {
} else {

printf("The number is odd.\ document.getElementById("result").textCo


n"); ntent = "The number is even.";

} else {
}

return 0; document.getElementById("result").textCo
JAVASCRIPT ntent = "The number is odd.";

let number = parseInt(prompt("Enter a }


number:"));
}

</script>

You might also like