There is no simple way by programming to rename a registry key. You would have to create a new key, copy the subkeys and values from the old one to the new one, and delete the old key and its content. This seems like quite an advanced test for a school project, especially given your comments about your level of experience. I suggest you take a look at
the RegistryKey
class[
^] and see if you can provide at least some of the answer.