Visual Basic.NET Programming. Beginner Lesson 8. Complex Arithmetic Expressions

  Рет қаралды 29,425

Computer Science Lessons

Computer Science Lessons

Күн бұрын

This is the eighth in a series of computer science video tutorials for beginners, about programming with Visual Basic.NET (VB.NET) in Visual Studio. In this lesson, you will learn how to write complex arithmetic expressions that perform calculations in your code. A complex arithmetic expression is an expression that involves more than one arithmetic operator. You also will learn how to control the order of operations using brackets, also known as parentheses. You will see that the order of operations in a complex expression is given by the acronyms BODMAS (Brackets Order Division Multiplication Addition Subtraction) and PEMDAS, Please Excuse My Dear Aunt Sally (Parentheses Exponentiation Multiplication Division Addition Subtraction).

Пікірлер: 21
@NA-sk4ys
@NA-sk4ys 4 жыл бұрын
By far best explanation I found for beginners
@SkepticleOrc
@SkepticleOrc 3 жыл бұрын
A bit of good old fashioned Bodmas. Love it.
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Indeed. And don't forget to 'Please Excuse My Dear Aunt Sally' :)KD
@jtlunsford780
@jtlunsford780 Жыл бұрын
I got that, but it's sure nice to be reminded. And now, I've heard of BODMAS. Thank you for what you do and how you do it....JT
@CameronSmith-iv3lc
@CameronSmith-iv3lc Жыл бұрын
"50 pounds worth of cakes. No surprises there." You have become the man from the math textbooks.
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
Perhaps it was a school teacher buying cakes for his students :)KD
@kupaninoe7372
@kupaninoe7372 2 жыл бұрын
Life saver . God bless you
@StephenBoyd21
@StephenBoyd21 2 жыл бұрын
I think I've been to Pemdas on holiday, isn't it in Wales?
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
It's got that ring to it. Might be in Pembrokeshire. There's a Pemdas near San Jose - do you know the way?
@TempleTrainer
@TempleTrainer Жыл бұрын
Yeah PEMDAS is the better example Parenthesis, Exponents, Multiplication, Division, Addition, and Subtraction
@ComputerScienceLessons
@ComputerScienceLessons Жыл бұрын
I prefer it to BODMAS :)KD
@braddenton1350
@braddenton1350 3 жыл бұрын
Thank you!
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
and thank you too :)KD
@deadboy164
@deadboy164 2 жыл бұрын
8:03 Why no.2 and no.3 are different if Division is perform first? 1. iResult = 10 / 5 * 2 2. iResult = 2 * 10 / 5 3. iResult = 10 * 5 / 2
@nationalshitpostagency
@nationalshitpostagency 2 жыл бұрын
multiplication and division have equal priority so performing of the operations go through left to right. 2. (2*10)/5 3.(10*5)/2. 4:20
@michaeljones5681
@michaeljones5681 3 жыл бұрын
i really wouldnt mind being payed £15 for some cakes
@kevinerose
@kevinerose 3 жыл бұрын
What does everyone call these? I call (these) parenthesis and [these] brackets and I call {these} braces. ( ) , [ ] , { }. I am from USA. What do you say and where are you from? thanks.
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
Hi Kevin. I call (these) brackets, or round brackets and occasionally parentheses (strictly speaking a parenthesis is a word, clause, or sentence inserted as an explanation or afterthought into a passage which is grammatically complete without it). I call [these] square brackets and {these} are curly brackets. Let's not forget . :)KD
@lucadoesthings
@lucadoesthings 3 жыл бұрын
It's quite obvious he is british, like me.
@devil_beast1428
@devil_beast1428 3 жыл бұрын
@@lucadoesthings does that matter where he is from, he is doing good work (don't take it as offensive)
Visual Basic.NET Programming. Beginner Lesson 9. Selection with If Statements
10:09
Computer Science Lessons
Рет қаралды 35 М.
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
Andro, ELMAN, TONI, MONA - Зари (Official Audio)
2:53
RAAVA MUSIC
Рет қаралды 8 МЛН
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН
Thank you mommy 😊💝 #shorts
0:24
5-Minute Crafts HOUSE
Рет қаралды 33 МЛН
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 347 М.
Visual Basic.NET Programming. Beginner Lesson 11. Logical and Relational Operators 2
9:06
The 7 Levels of Math Symbols
14:03
The Unqualified Tutor
Рет қаралды 15 М.
The true history of complex numbers.
5:43
MetaMaths
Рет қаралды 134 М.
5 Excel Secrets You'll Be Embarrassed You Didn't Know
17:32
Excel Campus - Jon
Рет қаралды 296 М.
Making Simple Windows Driver in C
7:26
Nir Lichtman
Рет қаралды 377 М.
Visual Basic.NET Programming. Beginner Lesson 7. Arithmetic Operators
11:37
Computer Science Lessons
Рет қаралды 38 М.
Visual Basic.NET Programming. Beginner Lesson 10. Logical and Relational Operators 1
14:34
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 582 М.
Andro, ELMAN, TONI, MONA - Зари (Official Audio)
2:53
RAAVA MUSIC
Рет қаралды 8 МЛН