Skip to content

RTCedu/ForkingTutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lesson 03 - Forking Tutorial and Assignment

Renton Technical College - Computer Science Department

Included in this repository

  • Lesson 03 Forked Assignment.pptx
  • Solution: ForkingTutorial
  • README.md
  • .gitignore

The Power Point presentation is provided as a walkthrough, with images, to complete this tutorial and assignment. RTC students in the CS programs will be lead through this lesson by their instructor.

Lesson Guide

  1. Fork this repository to your GitHub profile.
  2. Clone the repository from your profile to your local environment (example uses GitKraken).
  3. Follow the assignment instructions found in Summary in ...\ForkingTutorial\Form1.cs
  • Presented below as well.
  1. Finalize changes and push to GitHub repository on your profile.
  2. Submit link to your forked version of the repository on Canvas.

Assignment

Full notation on these examples are presented in solution.

Create a simple calculator capable of parsing out numbers, operation Deliverables:

  • Fork Assignment to own profile
  • work on assignment, creating commits and pushing code to forked repository. ** Important Note: Success in the code is not the point of this assignment. Being able to Fork, update, and turn in is. ** The forked repository should be updated at least once, minimum of 10 lines edited.
  • Turn in link to forked repository

GUI Setup

  • Add a TextBox to display output, mark it as editable false. (Already Added)
  • Add Buttons for numbers 0-9, addition, subtraction, multiplication, division, equals, and clear. (Already Added)
  • Set Form's text to relevant title (your choice).

Form.cs

  • Add methods to parse input and calculate equations
  • Add code to buttons
  • Add Form Load.

Object Naming Convention

  • Buttons | btn... | btnEquals, btnZero, btnOne, ..., btnNine, btnSubtract, btnMultiply, btnDivide, btnAdd
  • TextBox | txt... | txtDisplay

Objectives of code:

  • Input two numbers separated by an operation
  • Parse input to determine equation
  • Calculate correct answers for ab, a+b, a-b, a/b

Approximately 30 minutes will be given for this assignment, with instructor aid, helping each other is permitted. Example code can be found in the Power Point presentation: Lesson 03 Forking Assignment.

About

Lesson 03 - Forking Tutorial and Assignment

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages