View the step-by-step solution to:

Question

Part 1: Writing to a text file:

  1. Create a program (java main class) called

PortfolioGenerator.java.

  • Complete the implementation of the getString and getArrayOfStrings functions in the SafeInput Library.
  • For Extra Credit: Create a getEmail function that will validate the user Input. (Use Regular Expressions) Example
  • The program will prompt the user (namely, you) to enter the following information
  • Name
  • Email
  • Personal Background
  • Programming Languages
    • You don't know ahead of time how many languages the user knows. So, use an ArrayList to store the records.
    • Once the user has indicated that they've entered all their languages, move on to the next question.
    1. Achievements and interests you would like to share
    • Same as above, you don't know how many achievements the user will share so use an ArrayList Here as well.
    • Once the user has indicated that they've entered all their achievements, export a text file that looks like the screenshot attached.
    1. Use the SafeInput Library as needed to validate the user inputs; Block and Repeat until the user gets the input correct, do not terminate the script.
    2. Run the application and answer the question (I want to learn more about YOU through this assignment)

    Sample Output: (Click to expand)

    Sample Output2: (Extra Credit) (Click to expand)


    Grading

    •  The program runs with no errors.
    •  The program uses ArrayLists.
    •  The program generates the text file in the above format.
    •  Correct implementation of the getString function
    •  Correct implementation of the getArrayOfStrings function
    •  (1 EXTRA POINTS ⭐): If you Center your name as in the screenshot
    •  (2 EXTRA POINTS ⭐⭐): Correct Implementation of the getEmailAddress function in the SafeInput Library.


    Part 2: Reading from a file:

    Recently Asked Questions

    Why Join Course Hero?

    Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

    • -

      Study Documents

      Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

      Browse Documents
    • -

      Question & Answers

      Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

      Ask a Question
    Let our 24/7 Java Programming tutors help you get unstuck! Ask your first question.
    A+ icon
    Ask Expert Tutors You can ask You can ask You can ask (will expire )
    Answers in as fast as 15 minutes
    A+ icon
    Ask Expert Tutors