Create an application that: 1. Is implemented in a single Java (.java) file named “MatchMaker.java” 2. Successfully compiles with “javac *.java" and successfully executes with “java MatchMaker” 3. Has a simple yet an aesthetically pleasing user interface 4. Includes user instructions that succinctly describes the application and how it works Requirement 2 Be sure that application also: 1. Asks five questions as described above 2. Calculates question compatibility scores and weighted question compatibility scores for each question 3. Calculates the total weighted compatibility scores across all questions 4. Calculates the total compatibility score across all questions Requirement 3 Enhance the application so that it: 1. Displays a summary of each question’s compatibility score and weighted compatibility score 2. Displays a summary of the overall weighted compatibility score as a percentage 3. Displays an interesting closing remark based on predetermined compatibility ranges 4. Validates user input, displays meaningful error messages, and asks the question again if the user enters invalid text Requirement 4 Finally test and refactor the application so that it: 1. Utilizes constants at the top of the file or in a separate file for all desired answers, question weightings, and compatibility ranges 2. Utilizes a single function called “validate” to validate user input and displays and error message for all question
Create an application that: 1. Is implemented in a single Java (.java) file named “MatchMaker.java” 2. Successfully compiles with “javac *.java" and successfully executes with “java MatchMaker” 3. Has a simple yet an aesthetically pleasing user interface 4. Includes user instructions that succinctly describes the application and how it works Requirement 2 Be sure that application also: 1. Asks five questions as described above 2. Calculates question compatibility scores and weighted question compatibility scores for each question 3. Calculates the total weighted compatibility scores across all questions 4. Calculates the total compatibility score across all questions Requirement 3 Enhance the application so that it: 1. Displays a summary of each question’s compatibility score and weighted compatibility score 2. Displays a summary of the overall weighted compatibility score as a percentage 3. Displays an interesting closing remark based on predetermined compatibility ranges 4. Validates user input, displays meaningful error messages, and asks the question again if the user enters invalid text Requirement 4 Finally test and refactor the application so that it: 1. Utilizes constants at the top of the file or in a separate file for all desired answers, question weightings, and compatibility ranges 2. Utilizes a single function called “validate” to validate user input and displays and error message for all question
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Object-Oriented Programming
❤❤❤ Matchmaker with Java ❤❤❤
Summary: Create a Java application that will determine your true love.
Prerequisites: Java, VS Code, and Terminal
In this assignment you will develop and test a command-line application written in the Java language
that asks questions to determine if a person is your true love. More specifically your application
should ask five questions in the form of statements and allow the user to respond to each statement
with the numbers 1 through 5 with 1 indicating strongly disagree and 5 indicating strongly agree. You
will then compare the person’s answers with your desired “true love” answers. The closer the answers
are to your desired “true love” answers the better match the two of you are for each other.
For example, suppose you choose the statement “Broccoli is delicious.” and your desired answer was
1 (strongly disagree) because you really don’t like broccoli. If the application user entered 4 (agree),
then the two of you would not be a very good match based on that question. In the broccoli example
above you would want to calculate your question compatibility score for this question by taking the
absolute value of the difference between their answer and your desired answer. In addition, each
question should have a weighting of 1 to 3 based on how important that question is to you. For
example, the “Broccoli is delicious.” statement may only have a weighting of 1 where a “I could play
Fortnight for hours.” question may be more important to you and deserve a weighting of 3.
After all five questions are answered, you will need to add up the weighted question compatibility
scores for each of the five questions and subtract the value from 100 to calculate a final
compatibility score that has a maximum value of 100.
You will also need to set three threshold scores. One for true love, one for possible friends, and one
for run away. You utilize your programming knowledge, creativity, and good taste to set and adjust
the thresholds, phase the results, and share the results to the user. Be sure to review and test your
ideas for the application with a friend or classmate to get some usability feedback.
If you are looking for some examples of what this application might look like if it was a command line
application and Dr. Klump was creating it, you can see it here [link]. I’m sure you can improve on his
design.
Requirement 1
Create an application that:
1. Is implemented in a single Java (.java) file named “MatchMaker.java”
2. Successfully compiles with “javac *.java" and successfully executes with “java MatchMaker”
3. Has a simple yet an aesthetically pleasing user interface
4. Includes user instructions that succinctly describes the application and how it works
Requirement 2
Be sure that application also:
1. Asks five questions as described above
2. Calculates question compatibility scores and weighted question compatibility scores for each
question
3. Calculates the total weighted compatibility scores across all questions
4. Calculates the total compatibility score across all questions
Requirement 3
Enhance the application so that it:
1. Displays a summary of each question’s compatibility score and weighted compatibility score
2. Displays a summary of the overall weighted compatibility score as a percentage
3. Displays an interesting closing remark based on predetermined compatibility ranges
4. Validates user input, displays meaningful error messages, and asks the question again if the user
enters invalid text
Requirement 4
Finally test and refactor the application so that it:
1. Utilizes constants at the top of the file or in a separate file for all desired answers, question
weightings, and compatibility ranges
2. Utilizes a single function called “validate” to validate user input and displays and error message
for all question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 4 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education