Computers and Technology
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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 16:30, jngonzo1226
Which of the following statements best describes it careers?
Answers: 2
image
Computers and Technology, 22.06.2019 22:30, jacob7542
The qwerty keyboard is the most common layout of keys on a keyboard
Answers: 3
image
Computers and Technology, 23.06.2019 14:30, naomi20044
Select the correct answer. andy received a potentially infected email that was advertising products. andy is at risk of which type of security threat? a. spoofing b. sniffing c. spamming d. phishing e. typo-squatting
Answers: 2
image
Computers and Technology, 23.06.2019 15:00, lopez7512
What is the total resistance in a circuit that contains three 60 ohm resistors connected in a series? a. 20 ohms b. 120 ohms c. 60 ohms d. 180 ohms
Answers: 2
Do you know the correct answer?
p25: File Write and Read1) User enters a file name (such as "myMovies. txt").2) User enters the titl...

Questions in other subjects:

Konu
English, 21.07.2019 21:30