The goal for this exercise is to review
and practice how to use git, GitHub, and Visual Studio. This will also
help you practice using arrays which is a secondary effect but still good.
Take the
queue of integers, and the stack of integers that you've implemented, and
annotate each method listed below, put a comment immediately before the start of
each method describing the running time of that method, using the Big "Oh"
notation Make sure to include a quick (1-2 sentence) explanation as to why
you chose the running time that you did. You should do this exercise, based on
your code, even if you can't get all the methods to work correctly.
What you need to do for this exercise:
- On the page for this lesson you should find a link that reads
similar to “Link to access the project for this assignment in
GitHub”.
Follow that link in order to access the starter
Solution for this particular exercise.
Please note that this starter Solution/project is completely separate
from the starter files for the rest of the exercises in this lesson
- Please also note that in order to hand in this exercise you’ll
need to commit your work into your local git repo and then push
those changes back to your copy of the repo that’s stored in GitHub.
If you need a refresher on how to do that please review the material
from the previous Lesson(s) and/or make use of office hours, the
tutoring hours in the Bock Learning Center, and/or Google/Bing/etc.
- In that starter repo you'll find a Solution, and in that solution
you’ll find a project,
- Inside that project, in the Program.cs file
please make sure to put your full name (in a comment) at the top of the
file.
- In the main method you'll find an array named
nums.
Add code to main that will fill nums with
random numbers ranging from as small as 1 to as large as 10.
Add code
to main that will print out all the numbers
- Once you've written your code, tested it informally (i.e., by
running it, etc) and you're ready to hand this in make sure to commit
your work in git (using Visual Studio's Team Explorer panel).