Although I know Java and C++, in terms of big O notation I’m not too well versed in the subject any longer, so for compiling reasons I decided to use python3. Python is actually one of the most widely used simple coding platforms. Also as I am not a full stack developer, my front-end system architecture is a little rusty. I would recommend perhaps a second answer might have a better solution for the actual app design. Below is python code for the back-end function of the app and calls it at the end.
Python3 code:
def booktrackingapp():
read = input("Did you read a book?")
if read == "yes":
print("Liar, you don't actually read.")
else:
print("That's what i thought.")
booktrackingapp()