Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Problem 1271. THE CALCULATOR OF LOVE

Created by @bmtran

In honor of Valentine's Day, program a love calculator that figures out the percentage of compatibility between two people using their names! The algorithm should be as follows:

  • Compile the unique characters of both names
  • Sum their ASCII values
  • Divide by 101
  • The remainder is the match percentage!

Enjoy! And may cupid have mercy on your love life.

Problem Group

Solution Statistics

40 correct solutions 20 incorrect solutions
Last solution submitted on Feb 24, 2015

Problem Comments