Hi, I need help in converting the pesudocode into c++ code.
Initialize key = ROLLNO, extra = NAME_POSITION
Start the iterator with value 1
If the iteration number is greater than 5, go to step 12
if the ROLLNO is greater or equal to 50
add five to counter
subtract 2 from extra
go to step 6
Otherwise
Double the value of key
Add 3 to extra
Go to step 8
If the ROLLNO is greater than 74
Add 25 to the key
Multiply the extra by 2
Go to step 10
Otherwise
Add ROLLNO to the key
Subtract extra from key
Go to step
If ROLLNO is less than 25
Divide key by 3
Add 4 to extra
Go to step 10
Otherwise
Add 6 to both key and extra
Go to step 10
Add 1 to iterator
Go to step 3
Output key, extra
Stop