Source Code
CSE 1321 Source Code Examples
Code examples are hosted on Repl.it. You can register for a free account and run my code there, you can also fork my code to make your own copy to experiment with freely. Some of the code examples are incomplete as they are just intended to show particular topics.
Input/Output & Calculations - C++: MoonWeight - TemperatureConversion - WeightGain
Input/Output & Calculations - C#: MoonWeight - TemperatureConversion - WeightGain
Input/Output & Calculations - Java: MoonWeight - TemperatureConversion - WeightGain
Data Types and Expressions - C++: Swap
Data Types and Expressions - C#: Swap
Data Types and Expressions - Java: Swap
Selection Structures - C++: LabGradeIF - LabGradeSWITCH
Selection Structures - C#: LabGradeIF - LabGradeSWITCH
Selection Structures - Java: LabGradeIF - LabGradeSwitch
Repetition Structures - C++:Calculator - Equivalency - NestedLoop - Pre versus Post - Reverse - Sentinel&Validation - Stars - SumNumbers
Repetition Structures - C#: Calculator - Equivalency - NestedLoop - Pre versus Post - Reverse - Sentinel&Validation - Stars - SumNumbers
Repetition Structures - Java: Calculator - Equivalency - NestedLoop - Pre versus Post - Reverse - Sentinel&Validation - Stars - SumNumbers
Methods - C++: Exponent - GuessTheNumber - Vowel
Methods - C#: Exponent - GuessTheNumber - Vowel
Methods - Java: Exponent - GuessTheNumber - Vowel
Classes & Objects - C++: Dog - Monster - Player - AdvancedDog
Classes & Objects - C#: Dog - Monster - Player - AdvancedDog
Classes & Objects - Java: Dog - Monster - Player - AdvancedDog
Arrays - C++: 1DArrays 2DArrays
Arrays - C#: 1DArrays 2DArrays
Arrays - Java: 1DArrays 2DArrays
Searching & Sorting - C++: Binary Linear Bubble Exchange Insertion Selection
Searching & Sorting - C#: Binary Linear Bubble Exchange Insertion Selection
Searching & Sorting - Java: Binary Linear Bubble Exchange Insertion Selection
Review - C#: Elevator
Review - Java: Array ElevatorClass ElevatorTest