Question: Create a program called FanFicMaker The idea behind this program is to ask the user for their name ( and an output file ) and
Create a program called FanFicMaker
The idea behind this program is to ask the user for their name and an output file and you will replace one of the characters in a story with them, then write the new story out to a file. Voila, fan fiction! Thats how it works, right?
Ask the user for two things: an output file name, and for their name. Save these inputs into String variables, name them however you'd like.
Download the attached file and add it to your project. Again, the file should be in the base folder of your project NOT the src or bin folders
Using the nextLine method of a Scanner object, open this file and read its contents into a String variable. Name the variable whatever you want
If I were you, Id look at my previous code on Gitlab for a reminder as to how this is done.
Replace FANFIC in the story with the name the user input in step
Replace all Tabs t with new lines r
Now write the resulting string to a file. The name of this file should be the one given in step
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
