Assignment 2
Assignment 2
Assignment 2
Submission:
• Email instructor or TA if there are any questions. You cannot look at others’ solutions or use
others’ solutions, however, you can discuss it with each other. Plagiarism will be dealt with
according to the course policy.
• Submission after due time will not be accepted.
Follow this naming convention for your report, it should highlight difficulties you faced and things you
learned in this assignment. Naming Pattern ( Roll#_Assignment#.pdf e.g BSCE23000_Assignment3.pdf )
In this assignment you have to do following tasks:
Task 1: Ensure that you have installed all three softwares in your personal computer (Github,
Cygwin & CLion). Now, accept the assignment posted in Google Classroom and after accepting,
clone the repository to your computer. Make sure you have logged into the github app with your
account.
Task 2: Open Cygwin app, Move to your code directory with following command “cd
<path_of_folder>”
<path_of_folder> can be automatically populated by dragging the folder and dropping it to the
cygwin window.
Run the code through Cygwin, use command “make run”, to get the output of the code
Task 3: Solve the given problems, write code using CLion or any other IDE.
Task 4: Keep your code in the respective git cloned folder.
Task 5: Commit and Push the changes through the Github App
Task 5: Write the code in separate files (your_structure_name.h, your_structure_name.cpp) for each
struct(name must be singular), declare struct variables, and call functions from main.cpp. Ensure that
file names are in lowercase.
Task 6: Run ‘make run’ to run C++ code
Task 7: Run ‘make test’ to test the C++ code
Part 1: Constructor
Define default constructor and parameterized constructor to initialize the properties of the
Student structure. Both constructor should print format: “Constructor Function is Called”.
1. Student()
2. Student(string n, string rn, string dept, float *gpas);