Digital FXtbook
Easy Contacts
  • Home
    • Software
    • The Author
    • Former Students Hall of Fame
    • A tribute....
    • Treasure Hunt
  • Video Game Training
    • 3d Motion Graphics >
      • Unity >
        • Unity Essentials >
          • Unity's Interface >
            • Our First Assignment
          • Modeling and Level Design >
            • The Essentials
            • The Floor is Lava Name Project
            • ProBuilder >
              • ProBuilder Image Planes
              • ProBuilder Steve Modeling
              • ProBuilder Steve Texturing
          • Programming >
            • Getting Started with Scripting
            • Default Scripting
            • Scripting a Game Object
          • Real Time Audio >
            • Adding Background Music
            • 3-d Audio effects
          • 2d Essentials >
            • 2d Game Objects
            • Objects on 2d Game Objects
        • Creative Core >
          • Introduction to Creative Core
          • Shaders and Materials
          • Lighting
          • Animation
          • VFX
          • Cameras
          • Post Processing
          • Audio
          • User Interface
          • Proto-Typing
    • C# Programming >
      • Visual Studios >
        • First Program >
          • Getting input from the User
        • Comments >
          • PsuedoCode
        • Variable Types >
          • AlphaNumeric Variables
          • Numeric Variables
          • Putting it all together
        • Operators >
          • Assignment and Arithmetic Operators >
            • Use of Parenthesis
            • When is Easter??
          • Comparison and Logical Operators >
            • Logical Data, Illogical Assignment
          • Random Class
        • Conditional Statements >
          • Number validator
          • Number tester
          • Speed Camera
        • Loops >
          • For Loops >
            • Adding Numbers
          • For Each Loops
        • Arrays >
          • Simple Arrays
          • Complex Arrays
      • Intro to Unity >
        • Unity Essentials >
          • Unity's Interface
          • The Essentials
          • Programming >
            • Getting Started with Scripting
            • Default Scripting
            • Scripting a Game Object
        • Intro to Programming 1 >
          • Player Control 1 >
            • Player Control 1.2
            • Player Control 1.3
            • Player Control 1.4
          • Player Control 2 >
            • Player Control 2.2
            • Player Control 2.3
            • Player Control 2.4
          • Player Control Challenge
        • Intro to Programming 2 >
          • Sound and Effects >
            • Sound and Effects 3.2
            • Sound and Effects 3.3
            • Sound and Effects 3.4
          • GamePlay
          • User Interface
          • Feedback and Testing
          • Next Steps
        • Intro to Programming 3 >
          • Manage Scene Flow and Data
          • Apply Object-Oriented Principles
    • Modeling and Rigging >
      • Modeling >
        • Introduction: The Temple
        • Name Text Curve
        • Character Modeling >
          • Minecraft Steve
          • Minecraft Steve UV
          • Roblox Character modeling
          • Big Daddy
          • Character Modeling Legion the Geth
          • Character Modeling Geth Armor
        • Weapons >
          • Minecraft Tools and Weapons
          • Minecraft Movie Pickaxe
          • Minecraft Movie Sword
          • Thor's Hammer
          • Hammer
          • LOL Sword
          • Sword of Light
          • Buzz Axe
          • Weapon
      • Rigging >
        • Intro to Rigging
        • Controls
        • Rigging Basics
        • Rigging Creating Skeletons
        • Rigging: Body Controls
        • Rigging: Hands
        • Rigging: Skinning
        • Smooth Skinning
      • Animation >
        • Character Animation
    • Advanced >
      • Modeling >
        • Image Planes
        • Polygon Modeling >
          • Coke Can
          • Low Polygon Character
          • Character Modeling Legion the Geth
          • Character Modeling Geth Armor
          • Face Modeling
        • NURBS Modeling >
          • Intro to NURBS
          • Lofting
          • CV Curves
          • Organic Modeling
          • Autombile
      • Linda Training >
        • Advanced Modeling >
          • Modeling Basics
          • Modeling Room Objects
      • Texturing
      • Rigging >
        • Rigging with HumanIK
        • Smooth Skinning
  • Student Films
    • Advanced Student's movies
    • Beginning Student's movies
  • Links
    • BPA >
      • BPA Computer Modeling
    • The Top Six Animation Schools
    • The Top Video Game Design Schools

Numeric Operators

In this lesson you are going to have the opportunity to interact with operators +, -, *, and \ to get a specific value. The initial program has been Psuedo-Coded for you already so that you can interact directly with the correct Algorithm to begin with. For the Video I will doing a different scenario and Algorithm but it all directly applies to how you would solve the Assignment code to get the desired result. Good luck and enjoy... Believe it or not this is really not all that hard.

Hints:

     The language used to derive the desired output is actually pretty simple. The language is called "Expressions" and they are as follows.

     Increase: add one variable to another, its special symbol is +
          a = 13 and b = 5
          example a + b = k
               Result k = 18
     Decrease: subtract one variable by another, its special symbol is - 

          a = 13 and b = 5
          example a - b = k
               Result k = 8

     Increment: add one to a variable, its special character is ++
          a = 13 and b = 5
          Example k = k ++
               Result k = 14
                    Explanation the ++ operator simply adds one to the numeric value of k every time is called upon
     Modulo: is simply the remainder in any division problem and its special character is % 
          Special note: by using the modulo you are telling the computer to divide and only pay attention to the reminder
          a = 13 b = 5
          Example k =  a % b
               In this step above we are dividing 13 by 5 and then only paying attention to the remainder which is 3
               Result k = 3
     Assign: is an operator that makes a variable something else, its special character is = 
          a = 13 b = 5
          Example k = a
               In this step the value of a (which is 13) is assigned to k (which now becomes 13)
​               Result k = 13


The Assignment



​So now that we have the basics and we have an idea of how to work with Incrementing, Assigning, Adding, Subtracting, Multiplying, and Dividing, what follows is the code and the Assignment that you get to tackle. Just take the info that you got and simply apply it.... You have got this!!!



The Code

using System;

namespace Parenthesis
{
    class Program
    {
        static void Main(string[] args)
        {
            {
                int i = 5;
                int j = 10;
                int k;

                // each of these lines below should be separate lines
                // increase i by 2 giving k
                // decrease j by i giving k
                // divide i by j giving k
                // increment k by 1 giving k
                // modulo i divided j giving k
                // increase k by k added to i giving k
                // increase k by k divided by j giving k
                // assign k times k times k to k giving k
                // increase k by i times j giving k
​
}
        }
    }
}
​
Proudly powered by Weebly