Calculator results based on input from users

I am looking for a (most likely javascript) calculator that displays a limited number of results based on the input from the user.

The user needs to answer “yes” or “no” to a series of 7 questions. If all answers are “no” then the display will say, “something here.”

If any of the answers are yes then it will say something else.

All replies will be no. This is expected.

The only other criteria is that it will have a single input where the user inputs a number. If the number is greater than 7 then the display will be something else.

Any ideas on where to find a script like this? I can modify the script but I am looking for something to get started.

Thank you,