research-guide
In short,
explore topics to find something interesting
find a problem/gap to be solved / research
put together solution / findings
write
Overview:
https://cs.stanford.edu/degrees/ug/Research.shtml (old: http://csmajor.stanford.edu/Research.shtml)
http://www.cs.jhu.edu/~jason/advice/how-to-find-research-problems.html
http://www.cs.cmu.edu/~mleone/how-to.html
Details:
http://people.cs.umass.edu/~emery/misc/how-to.pdf
or
http://www.cs.indiana.edu/mit.research.how.to.html
See also:
https://annajiat.blogspot.com/2018/10/how-to-choose-research-or-thesis-topic.html