Replacing values based on divisibility

Exercise Type: Implementation

Basis

Consider the vector described by this sequence:

vec <- -100:100 

Instructions

This vector includes exactly 201 elements. Write a small chunk of code that replaces every 7th element with 1000!