subject

//chapter 13 (file input and output), java programming, joyce farrell, 8th edit//debugthirteen3.java//output, need to fix// crestes a file of entrees sold at a restaurantimport java. nio. file.*; import java. io.*; import static java. nio. file. accessmode.*; import java. util. scanner; public class debugthirteen3{ public static void main(string[] args) { path file = paths. get("c: \\java\\chapter.13\\debugdata4.txt" ); scanner kb = new scanner(); string[] array = new string[2]; string string = ""; string delimiter = ","; string entree; string price; final string quit = "zzz"; try { outputstream output = new bufferedoutputstream(files. newoutputstream(file)); bufferedwriter writer = new bufferedwriter(new outputstreamwriter(output)); system. out. print("enter first entree or " + quit + " to quit > > "); entree = kb. nextline(); while(! entree. equals(quit)) { system. out. print("enter price > > "); price = kb. nextline(); string = entree + delimiter + price + system. getproperty("line. separator"); writer. write(string, 0, string.; system. out. print("enter next entree or " + quit + " to quit > > "); entree = kb. nextline(); } writer. close(); } catch(exception e) { system. out. println("message: " + e); } }}//debugdata1.txtsomewhere over the //debugdata2.txtthere's no place like home. are you a good witch or a bad witch? //debugdata3.txt435-9845239-9845981 -9883384-5656875-3784874-//debugdat a4.txtsteak,20lobster,30macaroni,8s paghetti,10

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:00
Consider the following function main: int main() { int alpha[20]; int beta[20]; int matrix[10][4]; . . } a. write the definition of the function inputarray that prompts the user to input 20 numbers and stores the numbers into alpha. b. write the definition of the function doublearray that initializes the elements of beta to two times the corresponding elements in alpha. make sure that you prevent the function from modifying the elements of alpha. c. write the definition of the function copyalphabeta that stores alpha into the first five rows of matrix and beta into the last five rows of matrix. make sure that you prevent the function from modifying the elements of alpha and beta. d. write the definition of the function printarray that prints any onedimensional array of type int. print 15 elements per line. e. write a c11 program that tests the function main and the functions discussed in parts a through d. (add additional functions, such as printing a two-dimensional array, as needed.)
Answers: 3
question
Computers and Technology, 24.06.2019 05:30
If you combine two cells into one, what action are you performing? a.  adding a new row or column      b.  splitting the cells      c.  removing a new row or column      d.  merging the cells
Answers: 2
question
Computers and Technology, 24.06.2019 21:30
Jenny wants to create an animated short video to add to her website. which software will she use to create this animated video?
Answers: 1
question
Computers and Technology, 25.06.2019 05:00
How many meatballs required for a larty of 25 adults and 6 children
Answers: 1
You know the right answer?
//chapter 13 (file input and output), java programming, joyce farrell, 8th edit//debugthirteen3.java...
Questions
question
Mathematics, 11.02.2021 14:00
question
Mathematics, 11.02.2021 14:00
Questions on the website: 13722360