1. Use the starter code to create your PromptBank and modify it to work with your project. (Note: remove any existing bugs and write additional code as needed) 2. Your project should have 2 classes or more. 1 class is the starter code PromptBank, the other is your program's logic. 3. The initial greeting should say "Hello, my name is Eliza. What is your name? 4. The user should enter their name. 5. Then the program should greet the user by name and prompt them for input related to the therapy session "Hello **username. Tell me what is on your mind today in 1 sentence." 6. When the user submits their sentence your program should read in the line 7. It should use the 1st word and last word from that line to form another prompt to the user by plugging those words into a statement or question randomly selected from the relevant array. 8. Create methods that work with the starter code to replace BLANK1 and BLANK2 with the words from the line 9. If the sentence the user enters ends with a '?', the program should prompt the user with a question built using the 1st word and last word of their line. 10. If the sentence the user enters ends with a "!", the program should prompt the user with a statement that starts with "WOW! Dramatic! "followed by the rest of the statement built using the 1st word and last word of their line. 11. If the sentence the user enters ends with a "! or any other character, the program should prompt the user with a statement built using the 1st word and last word of their line. 12. This process should be repeated until the user types "EXIT" as a response When the user types "EXIT" the user should be asked if they want to run the: again. o If they say yes, upper or lower case, run the program from the beginning" o If they say no, upper or lower case, say "Goodbye, until next time" 13. Some of the things you'll need to do to get the Project to work: 1. Initialize your arrays to the appropriate length. 2. Modify the existing methods in the starter code to populate the arrays by following the code comments 3. Create methods to replace BLANK1 and BLANK2 in the sentence trunk you got from the array
1. Use the starter code to create your PromptBank and modify it to work with your project. (Note: remove any existing bugs and write additional code as needed) 2. Your project should have 2 classes or more. 1 class is the starter code PromptBank, the other is your program's logic. 3. The initial greeting should say "Hello, my name is Eliza. What is your name? 4. The user should enter their name. 5. Then the program should greet the user by name and prompt them for input related to the therapy session "Hello **username. Tell me what is on your mind today in 1 sentence." 6. When the user submits their sentence your program should read in the line 7. It should use the 1st word and last word from that line to form another prompt to the user by plugging those words into a statement or question randomly selected from the relevant array. 8. Create methods that work with the starter code to replace BLANK1 and BLANK2 with the words from the line 9. If the sentence the user enters ends with a '?', the program should prompt the user with a question built using the 1st word and last word of their line. 10. If the sentence the user enters ends with a "!", the program should prompt the user with a statement that starts with "WOW! Dramatic! "followed by the rest of the statement built using the 1st word and last word of their line. 11. If the sentence the user enters ends with a "! or any other character, the program should prompt the user with a statement built using the 1st word and last word of their line. 12. This process should be repeated until the user types "EXIT" as a response When the user types "EXIT" the user should be asked if they want to run the: again. o If they say yes, upper or lower case, run the program from the beginning" o If they say no, upper or lower case, say "Goodbye, until next time" 13. Some of the things you'll need to do to get the Project to work: 1. Initialize your arrays to the appropriate length. 2. Modify the existing methods in the starter code to populate the arrays by following the code comments 3. Create methods to replace BLANK1 and BLANK2 in the sentence trunk you got from the array
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
Java Coding : user would type sentences and the program used those words to compose a question.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
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