Programming Exercises
Academic Integrity
Remember the Academic Integrity Policy when completing assignments.
You can work with classmates but not to the point of sharing code.
Do not ask to see a classmates code or show a classmate your code.
Do not search for exercise solutions or copy and paste code you find. Think!
Do not post solutions in whole or in part.
If you don't understand how to solve a problem, utilize resources from the course web site and seek assistance from a student assistant or the professor.
One Time Instructions
Create a free "For Developers" account on HackerRank if you don't already have one.
Join the course contest at https://www.hackerrank.com/3003-21
You can run against custom input in HackerRank but it is better to code in your IDE.
Assignment Instructions
Complete the following challenges for the corresponding assignments:
1
Say "Hello, World" With C++
Input and Output
Basic Data Types
Functions
2
For Loop
Condition Statements
PV Menu Switch
Bitwise Operators
3
Arrays Introduction
Structs
Pointers in C
Caesar Cipher
4
PV Get ISO Date
Classes and Objects
Inheritance Introduction
Box it!
5
PV RGB 2
Multi Level Inheritance
Virtual Functions
Exceptional Server
6
DRY vector
C++ Class Templates (choose C++ 14 as the language)
Add this code after your class
int start_up() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
return 0;
}
int static r = start_up();
#define endl '\n';
Overload Operators (choose C++ 14 as the language)
Feet Inches 1
It is alright if you can't complete all of the problems. You will earn partial credit for completing some of them. See the grading form in Canvas. Submit at least some exercises each week they are due. You can resubmit the assignment in Canvas after you complete additional problems if necessary (subject to class late penalty noted on syllabus).
Submission Instructions
Copy the line below and change the end and paste it into the Canvas assignment.
https://www.hackerrank.com/contests/3003-21/compare/yourusername
Exercises Description
In order to learn and practice programming at your own pace and with instant feedback, this course utilizes HackerRank.com.
HackerRank.com is a web site that provides programming challenges in multiple languages. You can write and run code right on the site without worrying about installing and setting up anything on your computer.
HackerRank could even help you get a job.
“Some companies often ask for TopCoder or HackerRank handle in their applications. So, your performance can be used as a criteria for application evaluation.
More importantly, even if your potential employer do not look into your TopCoder or HackerRank or Codechef profiles, experience you get from participating there can be very useful. You can enhance your skills, evaluate yourself.”