5062CEM

Programming and Algorithms 2

Advanced Data Types of C++

Advanced Data Types of C++

For this activity, you will need to be using an Integrated Development Environment (IDE). The recommended IDE for this module is JetBrains IntelliJ IDEA for Python and JetBrains CLion for C++. You can follow instructions at the following page to set up your development environment:

Setting up your Development Environment

For this task, you need to create a array with the name arrModule. The array should be populated with the following details about this module: i.e. the module code, title and leader. Upon the creation of the array, you will need to provide a solution for the following:

  1. Access the member of staff using a negative range accessor
  2. Resize the array so the member of staff Dr Daniel Goldsmith can be added
  3. Remove Dr Daniel Goldsmith using an index number
  4. this will require implementing a searching algorithm in C++

For this task, you need to create a vector with the name vecModule. The vector should be populated with the following details about this module: i.e. the module code, title and leader. Upon the creation of the vector, you will need to provide a solution for the following:

  1. Access the member of staff using a negative range accessor
  2. Add the member of staff Dr Daniel Goldsmith using an appropriate method
  3. Remove Dr Daniel Goldsmith using an index number

For this task, you need to create a map with the name mapModule. The map should be populated with the following details about this module: i.e. the module code, title and leader. Upon the creation of the map, you will need to provide a solution for the following:

  1. Access the member of staff using a negative range accessor
  2. Add the member of staff Dr Daniel Goldsmith using an appropriate method
  3. Remove Dr Daniel Goldsmith using the appropriate key

If you are struggling with this lab activity, you may want to get some additional support. You can speak to the module leader/team in the room of when the lab week is active, or you can visit the Additional Support page for more information on how you can get extra support.