Challenge overview
Hello and welcome to the challenge!
Write a code which checks exam results by comparing student's answers with correct ones. Sum the score by adding 4 points for every correct answer, subtracting 1 point for every incorrect one and ignoring empty answers (marked by empty strings).
Input
- array with correct answers as one-letter strings
- array with student's answers as one-letter or empty strings
Output
- the scored amount of points as an integer number
Constraints
0 < length of the given arrays < 100
You can solve this programming contest in Ruby, JavaScript, Python, PHP and more languages. If you want, you can also take part in other Challenges. Below you can find some of them:
Did you like this challenge and would like to try your hand at some interesting big programming competitions? Check what’s all over the news in tech world in June 2019 in our article with upcoming IT Conferences, Hackathons and Online Challenges in June 2019.
Have fun and good luck! :)