IN PYTHON PLZ 3.6 LAB: What is your personality type? In this lab, you will create a Myer-Briggs Personality quiz. To de
Posted: Fri Jul 01, 2022 5:42 am
IN PYTHON PLZ
3.6 LAB: What is your personality type?
In this lab, you will create a Myer-Briggs Personality quiz. To determine the user's personality, you need to ask them 4 questions and follow the chart below to determine their personality and output the relevant description.
To begin, ask the user to answer each of the four questions. For example, for Question 1 you can write code to ask user to enter "E" for Extraversion or "I" for Introversion based on what they identify with the most. Note, the below code prompts the user to E or I and then uses the .upper() operation to capitalize the input. Hence, if the user enters lowercase 'e', the .upper() operation would uppercase the result.
Once the user has answered all 4 questions, proceed to combine all the results into one variable called personality.
For example, assume you have two variables X = "Hello and Y = "World", and you would like to combine the two strings. To do this, you can simple assign the result to a third variable Z as follows: Z = X + Y and now Z holds the value "HelloWorld".
Once you have the full results as a String, proceed to use If - Else If - Else statements to determine the personality type and output the appropriate message. You can use the following personality short descriptions in your output. Sample output is displayed at the bottom of this page.
By the way, what do you think happens if the user types an invalid output? For example, for Q1 instead of entering an I or an E, the user accidentally enters a G, Does your program catch that an invalid selection is made? Could you add a case that would capture an invalid selection, i.e. a selection that would equal one of the 16 options below?
ISTJ => Factual, practical, organized, steadfast
ISFJ => Detailed, traditional, service-minded, devoted
INFJ => Committed, creative, determined, idealistic
INTJ => Independent, visionary, original, global
ISTP => Logical, realistic, adventurous, self-determined
ISFP => Caring, adaptable, gentle, harmonious
INFP => Compassionate, original, creative, empathetic
INTP => Independent, theoretical, analytical, reserved
ESTP => Activity-oriented, versatile, pragmatic, outgoing
ESFP => Enthusiastic, friendly, cooperative, tolerant
ENFP => Creative, versatile, perceptive, imaginative
ENTP => Enterprising, outspoken, challenging, resourceful
ESTJ => Logical, systematic, organized, conscientious
ESFJ => Thorough, responsible, detailed, traditional
ENFJ => Loyal, verbal, energetic, congenial
ENTJ => Logical, strategic, fair, straightforward
Sample output
Are you outwardly or inwardly focused? E-Extraversion or I-Introversion
i
How do you prefer to take in information? S-Sensing or N-Intuition
s
How do you prefer to make decisions? T-Thinking or F-Feeling
t
How do you prefer to live your outer life? J=Judging or P-perceiving
j
Your personality type is ISTJ. Factual, practical, organized, steadfast
3.6 LAB: What is your personality type? In this lab, you will create a Myer-Briggs Personality quiz. To determine the user's personality, you need to ask them 4 questions and follow the chart below to determine their personality and output the relevant description. 1. Are you ardly or inwardly focused? If you: -Could be described as takative, outgoing -Like to be in a fast-paced environment -Tend to work out ideas with others, think out loud -Enjoy being the center of attention then you prefer E Extraversion Pay attention to concrete facts and detais -Profers that have practical applications -Live to describe things in a specific, Heralway then you prefer S Sensing What's Your Personality Type? Use the questions on the outside of the chart to determine the four letters of your Myers-Briggs type. For each pair of letters, choose the side that seems most natural to you, even if you don't agree with every description. -Could be described as reserved private 2. How do you prefer to take in information? If you: -Focus on the reality of how things are Imagine the possibilities of how things could be Notice the big picture, se how everything connects Enjoy and concepts forske Prefer a slower pace with time for contemplation and to think things through inside your head Would rather observe than be the center of attention then you prefer X = "Hello" Y = "World" 2 X+Y Introversion Like to describe things in a figurati pay …………... then you prefer N Intuition ISTJ factual practical organized steadfast ISTP logical realistic adventurous self-determined ESTP activity-oriented versatile pragmatic outgoing ESTJ logical systematic organized conscientious ISFJ detailed traditional service-minded devoted ISFP caring adaptable gentle harmonious ESFP enthusiastic friendly cooperative tolerant ESFJ thorough responsible detailed traditional INFJ committed creative determined idealistic INFP compassionate original creative empathetic #generates the value 'HelloWorld' ISTR-> Logical realistic adventurous colf.determinad ENFP creative versatie perceptive imaginative ENFJ loyal verbal energetic congenial INTJ independent visionary original global INTP independent theoretical analytical reserved ΕΝΤΡ enterprising outspoken challenging resourceful ENTJ logical strategic fair straightforward 3. How do you prefer to make decisions? If you: Base your dechinson personal values and how your actions affect others Valueharmony, forgiveness Uke to please others and point out the best in people Could be described as warm empathetic then you prefer F Feeling Medecinsinan Impersonal way, uning legical reasoning Value justice, faimess Enjoy finding the fans in an argument Could be described as lauded To begin, ask the user to answer each of the four questions. For example, for Question 1 you can write code to ask user to enter 'E' for Extraversion or "I" for Introversion based on what they identify with the most. Note, the below code prompts the user to E or I and then uses the upper operation to capitalize the input. Hence, if the user enters lowercase 'e', the upper() operation would uppercase the result. then you prefer T Thinking Q1 input ("Are you outwardly or inwardly focused? B-Extraversion or I-Introversion ") .upper () - 4. How do you prefer to live your outer life? If you: -Pertolve your options oper •Prefer to have maters settled See rules and deadlines a flexible Think rules and deadlines should be respected Prefer to have detadec, step-by-step instructions Make plans, want to know what you're getting into then you prefer Judging Once the user has answered all 4 questions, proceed to combine all the results into one variable called personality For example, assume you have two variables X = "Hello and Y = "World", and you would like to combine the two strings. To do this, you can simple assign the result to a third variable Z as follows: Z = X + Y and now Z holds the value "HelloWorld". Uke to improvise and make things up as you go Are spontaneous enjoy surprises and new situation then you prefer P Perceiving Once you have the full results as a String, proceed to use If - Else If - Else statements to determine the personality type and output the appropriate message. You can use the following personality short descriptions in your output. Sample output is displayed at the bottom of this page. if personality == "ISTJ"; print ("Your personality type is. ISTJ. Factual, practical, organized, steadfast") elif personality == "ISFJ": print ("Your personality type is ISFJ. Detailed, traditional, service-minded, devoted") By the way, what do you think happens if the user types an invalid output? For example, for Q1 instead of entering an I or an E, the user accidentally enters a G, Does your program catch that an invalid selection is made? Could you add a case that would capture an invalid selection, i.e. a selection that would equal one of the 16 options below? ISTJ => Factual, practical, organized, steadfast ISFJ => Detailed, traditional, service-minded, devoted INFJ => Committed, creative, determined, idealistic INTJ => Independent, visionary, original, global
ISFP => Caring, adaptable, gentle, harmonious INFP => Compassionate, original, creative, empathetic INTP => Independent, theoretical, analytical, reserved ESTP=> Activity-oriented, versatile, pragmatic, outgoing ESFP => Enthusiastic, friendly, cooperative, tolerant ENFP=> Creative, versatile, perceptive, imaginative ENTP=> Enterprising, outspoken, challenging, resourceful ESTJ => Logical, systematic, organized, conscientious ESFJ=> Thorough, responsible, detailed, traditional ENFJ => Loyal, verbal, energetic, congenial ENTJ => Logical, strategic, fair, straightforward Sample output Are you outwardly or inwardly focused? E-Extraversion or I-Introversion i How do you prefer to take in information? S-Sensing or N-Intuition S How do you prefer to make decisions? T-Thinking or F-Feeling t How do you prefer to live your outer life? J=Judging or P-perceiving j Your personality type is ISTJ. Factual, practical, organized, steadfast 414776.1710972.qx3zqy7 LAB ACTIVITY 1 3.6.1: LAB: What is your personality type? Develop mode Submit mode main.py Enter program input (optional) If your code requires input values, provide them here. Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box. 0/2 main ny
3.6 LAB: What is your personality type?
In this lab, you will create a Myer-Briggs Personality quiz. To determine the user's personality, you need to ask them 4 questions and follow the chart below to determine their personality and output the relevant description.
To begin, ask the user to answer each of the four questions. For example, for Question 1 you can write code to ask user to enter "E" for Extraversion or "I" for Introversion based on what they identify with the most. Note, the below code prompts the user to E or I and then uses the .upper() operation to capitalize the input. Hence, if the user enters lowercase 'e', the .upper() operation would uppercase the result.
Once the user has answered all 4 questions, proceed to combine all the results into one variable called personality.
For example, assume you have two variables X = "Hello and Y = "World", and you would like to combine the two strings. To do this, you can simple assign the result to a third variable Z as follows: Z = X + Y and now Z holds the value "HelloWorld".
Once you have the full results as a String, proceed to use If - Else If - Else statements to determine the personality type and output the appropriate message. You can use the following personality short descriptions in your output. Sample output is displayed at the bottom of this page.
By the way, what do you think happens if the user types an invalid output? For example, for Q1 instead of entering an I or an E, the user accidentally enters a G, Does your program catch that an invalid selection is made? Could you add a case that would capture an invalid selection, i.e. a selection that would equal one of the 16 options below?
ISTJ => Factual, practical, organized, steadfast
ISFJ => Detailed, traditional, service-minded, devoted
INFJ => Committed, creative, determined, idealistic
INTJ => Independent, visionary, original, global
ISTP => Logical, realistic, adventurous, self-determined
ISFP => Caring, adaptable, gentle, harmonious
INFP => Compassionate, original, creative, empathetic
INTP => Independent, theoretical, analytical, reserved
ESTP => Activity-oriented, versatile, pragmatic, outgoing
ESFP => Enthusiastic, friendly, cooperative, tolerant
ENFP => Creative, versatile, perceptive, imaginative
ENTP => Enterprising, outspoken, challenging, resourceful
ESTJ => Logical, systematic, organized, conscientious
ESFJ => Thorough, responsible, detailed, traditional
ENFJ => Loyal, verbal, energetic, congenial
ENTJ => Logical, strategic, fair, straightforward
Sample output
Are you outwardly or inwardly focused? E-Extraversion or I-Introversion
i
How do you prefer to take in information? S-Sensing or N-Intuition
s
How do you prefer to make decisions? T-Thinking or F-Feeling
t
How do you prefer to live your outer life? J=Judging or P-perceiving
j
Your personality type is ISTJ. Factual, practical, organized, steadfast
3.6 LAB: What is your personality type? In this lab, you will create a Myer-Briggs Personality quiz. To determine the user's personality, you need to ask them 4 questions and follow the chart below to determine their personality and output the relevant description. 1. Are you ardly or inwardly focused? If you: -Could be described as takative, outgoing -Like to be in a fast-paced environment -Tend to work out ideas with others, think out loud -Enjoy being the center of attention then you prefer E Extraversion Pay attention to concrete facts and detais -Profers that have practical applications -Live to describe things in a specific, Heralway then you prefer S Sensing What's Your Personality Type? Use the questions on the outside of the chart to determine the four letters of your Myers-Briggs type. For each pair of letters, choose the side that seems most natural to you, even if you don't agree with every description. -Could be described as reserved private 2. How do you prefer to take in information? If you: -Focus on the reality of how things are Imagine the possibilities of how things could be Notice the big picture, se how everything connects Enjoy and concepts forske Prefer a slower pace with time for contemplation and to think things through inside your head Would rather observe than be the center of attention then you prefer X = "Hello" Y = "World" 2 X+Y Introversion Like to describe things in a figurati pay …………... then you prefer N Intuition ISTJ factual practical organized steadfast ISTP logical realistic adventurous self-determined ESTP activity-oriented versatile pragmatic outgoing ESTJ logical systematic organized conscientious ISFJ detailed traditional service-minded devoted ISFP caring adaptable gentle harmonious ESFP enthusiastic friendly cooperative tolerant ESFJ thorough responsible detailed traditional INFJ committed creative determined idealistic INFP compassionate original creative empathetic #generates the value 'HelloWorld' ISTR-> Logical realistic adventurous colf.determinad ENFP creative versatie perceptive imaginative ENFJ loyal verbal energetic congenial INTJ independent visionary original global INTP independent theoretical analytical reserved ΕΝΤΡ enterprising outspoken challenging resourceful ENTJ logical strategic fair straightforward 3. How do you prefer to make decisions? If you: Base your dechinson personal values and how your actions affect others Valueharmony, forgiveness Uke to please others and point out the best in people Could be described as warm empathetic then you prefer F Feeling Medecinsinan Impersonal way, uning legical reasoning Value justice, faimess Enjoy finding the fans in an argument Could be described as lauded To begin, ask the user to answer each of the four questions. For example, for Question 1 you can write code to ask user to enter 'E' for Extraversion or "I" for Introversion based on what they identify with the most. Note, the below code prompts the user to E or I and then uses the upper operation to capitalize the input. Hence, if the user enters lowercase 'e', the upper() operation would uppercase the result. then you prefer T Thinking Q1 input ("Are you outwardly or inwardly focused? B-Extraversion or I-Introversion ") .upper () - 4. How do you prefer to live your outer life? If you: -Pertolve your options oper •Prefer to have maters settled See rules and deadlines a flexible Think rules and deadlines should be respected Prefer to have detadec, step-by-step instructions Make plans, want to know what you're getting into then you prefer Judging Once the user has answered all 4 questions, proceed to combine all the results into one variable called personality For example, assume you have two variables X = "Hello and Y = "World", and you would like to combine the two strings. To do this, you can simple assign the result to a third variable Z as follows: Z = X + Y and now Z holds the value "HelloWorld". Uke to improvise and make things up as you go Are spontaneous enjoy surprises and new situation then you prefer P Perceiving Once you have the full results as a String, proceed to use If - Else If - Else statements to determine the personality type and output the appropriate message. You can use the following personality short descriptions in your output. Sample output is displayed at the bottom of this page. if personality == "ISTJ"; print ("Your personality type is. ISTJ. Factual, practical, organized, steadfast") elif personality == "ISFJ": print ("Your personality type is ISFJ. Detailed, traditional, service-minded, devoted") By the way, what do you think happens if the user types an invalid output? For example, for Q1 instead of entering an I or an E, the user accidentally enters a G, Does your program catch that an invalid selection is made? Could you add a case that would capture an invalid selection, i.e. a selection that would equal one of the 16 options below? ISTJ => Factual, practical, organized, steadfast ISFJ => Detailed, traditional, service-minded, devoted INFJ => Committed, creative, determined, idealistic INTJ => Independent, visionary, original, global
ISFP => Caring, adaptable, gentle, harmonious INFP => Compassionate, original, creative, empathetic INTP => Independent, theoretical, analytical, reserved ESTP=> Activity-oriented, versatile, pragmatic, outgoing ESFP => Enthusiastic, friendly, cooperative, tolerant ENFP=> Creative, versatile, perceptive, imaginative ENTP=> Enterprising, outspoken, challenging, resourceful ESTJ => Logical, systematic, organized, conscientious ESFJ=> Thorough, responsible, detailed, traditional ENFJ => Loyal, verbal, energetic, congenial ENTJ => Logical, strategic, fair, straightforward Sample output Are you outwardly or inwardly focused? E-Extraversion or I-Introversion i How do you prefer to take in information? S-Sensing or N-Intuition S How do you prefer to make decisions? T-Thinking or F-Feeling t How do you prefer to live your outer life? J=Judging or P-perceiving j Your personality type is ISTJ. Factual, practical, organized, steadfast 414776.1710972.qx3zqy7 LAB ACTIVITY 1 3.6.1: LAB: What is your personality type? Develop mode Submit mode main.py Enter program input (optional) If your code requires input values, provide them here. Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box. 0/2 main ny