Question
COP1210C Who Wants to Be a Java Programmer? v.4 25 points Files File name: javaGamev4.java (3) Create an algorithm. (6) Create a text file that
COP1210C Who Wants to Be a Java Programmer? v.4 25 points Files File name: javaGamev4.java (3) Create an algorithm. (6) Create a text file that saves the questions, 4 answers, correct answer and point value in a file called questions.txt. The file should contain only raw data and should use the following format for each question: Question1 Answer1A Answer1B Answer1C Answer1D Question1CorrectAnswer PointValue Example Data: questions.txt (10) Replace the code in your project that currently prompts for the questions separately with a for loop that completes the following tasks for each question: Read the data from the file Display the question and answers Prompt the user for an answer Determine if the user is correct/incorrect Display whether or not the user is correct Update the score accumulator What is the command to display a line of output on the screen? SystemOut.print() System.out.print() System.out.println() System.outPrintln() B 100 (4) Create a text file called highscore.txt that stores the current high score earned on the game. Write the value zero to the file as the initial score. At the end of the game, compare your users score to the current high score. If the user has scored higher than the score in the file, replace the high score in the file. Otherwise, do not modify the text file. (2) Include documentation in your code to explain the updates that were made to this version.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started