subject
Computers and Technology, 04.06.2020 19:02 k11kiki

p25: File Write and Read1) User enters a file name (such as "myMovies. txt").2) User enters the titles of 4 of their favorite moveis (use a loop!).3) Program Writes the 4 titles to a file, one per line, then closes the file (use a loop!).4) Program Reads the 4 titles from "myMovies. txt" stores them in a list and shows the list5) The program writes the titles in reverse order into a file "reverseOrder. txt"Sample Run:Please enter a file name: myMovies. txtPlease enter a movie title #1: movie1Please enter a movie title #2: movie2Please enter a movie title #3: movie3Please enter a movie title #4: movie4Writing the 4 movie titles to file 'myMovies. txt'Reading the 4 movie titles from file into a list: [movie1, movie2, movie3, movie4]Writing the 4 movie titles in revers to 'reverseOrder. txt'Note: Do not use reverse() , reversed()Content of myMovies. txt:movie1movie2movie3movie4Content of reverseOrder. txtmovie4movie3movie2movie1

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:00
How can a user delete a drawing object
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Which company provides a crowdsourcing platform for corporate research and development? a: mtruk b: wiki answers c: mediawiki d: innocentive
Answers: 2
question
Computers and Technology, 24.06.2019 00:00
Visualizing a game of “tag” to remember the meaning of contagious
Answers: 3
question
Computers and Technology, 24.06.2019 01:30
Could you find out how im still getting an 83 percent on this in edhesive a = input("enter an animal: ") s = input ("enter a sound: ") e = "e-i-e-i-o" print ("old macdonald had a farm, " + e) print ("and on his farm he had a " + a + "," + e) print ("with a " + s + "-" + s + " here and a " + s + "-" + s + " there") print ("here a " + s+ " there a " + s) print ("everywhere a " + s + "-" + s ) print ("old macdonald had a farm, " + e)
Answers: 2
You know the right answer?
p25: File Write and Read1) User enters a file name (such as "myMovies. txt").2) User enters the titl...
Questions
question
Mathematics, 27.10.2020 23:10
question
Mathematics, 27.10.2020 23:10
question
Mathematics, 27.10.2020 23:10
question
Biology, 27.10.2020 23:10
question
Mathematics, 27.10.2020 23:10
question
Engineering, 27.10.2020 23:10
question
Mathematics, 27.10.2020 23:10
Questions on the website: 13722362