PLEASE HELP ME SOLVE THIS IN PYTHON: REQUIREMENTS: Must have the application of OOP Principles (Inheritance, Polymorphism, Encapsulation, Abstration) Scenario: Mating Game is a relationship calculating algorithm famous between the youngsters. At the time of graduation everyone might heard about this and just as the same as you, there were many of them tried out this secretly. Some took this so seriously. It uses the keyword FLAMES and described as follows: F - Friendship L - Love A - Affection M - Marriage E - Enemy S - Sister (Sibling) How we can calculate the FLAMES? It is very easy to explain with some example: Your name : Mart Baste Partner name : Cortana Get the flames count 1. Take the two names (‘Mart Baste' and 'Cortana') 2. Remove the common characters (three common characters 'a', 'r', 't') 3. Get the count of the characters that are left on each name a. Your name : m,b,s,e Count/Remaining : 4 b. Partner name : c,o,n Count/Remaining : 3 4. Get the sum of your name and partner name. So, the result is 7. Get the flames result 1. We take FLAMES letters ('F', 'L', 'A', 'M', 'E', 'S'). 2. Circularly, start counting each letter using the sum result from leftmost to rightmost. It means that you go back to the first letter of the keyword when you reach the rightmost letter of the keyword until finish counting. 3. And the letter which last the process after the counting is the result. 4. Congratulations on your mating. Be happy of the result no matter what. In our example we got your name count = 4 and partner name =3. Sum them up and it yields to 7. Then we take FLAMES keyword and start counting from left up to right in a circular manner. Continue counting going through each letter until sum is used up. So, the result is 'Friend'. NOTE : If the result of sum is 0, print “Not compatible! Single forever 3”
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
PLEASE HELP ME SOLVE THIS IN PYTHON:
REQUIREMENTS: Must have the application of OOP Principles (Inheritance,
Polymorphism, Encapsulation, Abstration)
Scenario:
Mating Game is a relationship calculating
time of graduation everyone might heard about this and just as the same as you, there were
many of them tried out this secretly. Some took this so seriously. It uses the keyword FLAMES
and described as follows:
F - Friendship
L - Love
A - Affection
M - Marriage
E - Enemy
S - Sister (Sibling)
How we can calculate the FLAMES?
It is very easy to explain with some example:
Your name : Mart Baste
Partner name : Cortana
Get the flames count
1. Take the two names (‘Mart Baste' and 'Cortana')
2. Remove the common characters (three common characters 'a', 'r', 't')
3. Get the count of the characters that are left on each name
a. Your name : m,b,s,e Count/Remaining : 4
b. Partner name : c,o,n Count/Remaining : 3
4. Get the sum of your name and partner name. So, the result is 7.
Get the flames result
1. We take FLAMES letters ('F', 'L', 'A', 'M', 'E', 'S').
2. Circularly, start counting each letter using the sum result from leftmost to
rightmost. It means that you go back to the first letter of the keyword when you
reach the rightmost letter of the keyword until finish counting.
3. And the letter which last the process after the counting is the result.
4. Congratulations on your mating. Be happy of the result no matter what.
In our example we got your name count = 4 and partner name =3. Sum them
up and it yields to 7. Then we take FLAMES keyword and start counting from
left up to right in a circular manner. Continue counting going through each letter
until sum is used up.
So, the result is 'Friend'.
NOTE : If the result of sum is 0, print “Not compatible! Single forever </3”
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images