Zebra0.com

csharp arithmeticArithmetic Operations

Arithmetic Operations

Learn C# (C sharp) in FREE step-by-step lessons.

Module 05: Arithmetic Operations

Learn all about performing arithmmetic operations in C#

Goals:

Objectives:

Please study the material at each of the links below.

  1. Arithmetic Operators in C# Arithmetic Operators in C#: C# Operators
  2. Microsoft Reference: C# Operators Microsoft Reference: C# Operators: C# Operators
  3. Drill: Operators Drill: Operators: Do this drill to make sure you understand
  4. Centering a control on the form Centering a control on the form: The control is centered when the form is resized
  5. Drill: The % operator Drill: The % operator: Drill on the % operator: remainder
  6. Finding Dozens: A program to select quantity on scroll bar and display dozens: quantity%12
  7. Finding Feet and Inches Finding Feet and Inches: A scroll bar selects inches, feet and inches is displayed
  8. Order of operations: The Order of operations for arithmetic operations is to do parenthesis () then *, / %, then + and - working from left to right.
  9. Drill: Order of operations Drill: Order of operations: Test how well you can solve these problems
  10. Calculate Grade: Scroll bars select midterm and final exam, average is calculated
  11. Write a function: Write a function to avoid the same code in two places
  12. Algebra to code: Convert algebraic expressions to programming statements
  13. Decimal values on scroll bars: Value on scroll bar is integer, how to select a decimal value
  14. A function to display values on the scroll event and also form load A function to display values on the scroll event and also form load: Calculate tip, avoid misinformation at form load
  15. Real world math: A few real world problems you can solve in C#
GlossaryGlossary for arithmetic lesson
Full Glossary