subject
Computers and Technology, 22.11.2019 01:31 lke123

Redactedyou are a spy. the file attached has a series of messages that need to be encrypted before being sent. open the file "messages. txt", and for each line, replace all instances of the name "james bond" with "[redacted]", and then print the result. do not use the built-in read method of files. file info: "day 1: i have started observation of james bond. day 3: james bond has still not realized that i am hiding under his fridge. day 14: i accidentally sneezed, and james bond nearly noticed. close call! day 20: after nearly three weeks, james bond has still not noticed i am not a fridge. day 21: without anyone else to talk to, i am concerned that i might be empathizing with the fridge. day 25: i am now the fridge. day 27: james bond hasn't bought any new milk lately. james bond needs more calcium. i am concerned for him. day 29: james bond discovered me after i offered to him find the eggs! i had to flee. ending mission."blockpy: #45.4) plus or minusthe file attached has a series of "+" and "-" characters, representing additions and subtractions. create a function named convert_operator, which consumes a string (a single character, either a "+" or a "-") and returns either 1 or -1, respectively. then apply this function to the contents of each of the following files to calculate the sum of all these pluses and minuses (so an integer number). notice that the "plus and minus. txt" file is entirely on one line. therefore, you should use the read method to access its contents. but you should only pass one character at a time to the function you write! file info: +++-+++--++-+++--+-++--+--+++--++-+ ++--++-+++--+-++--+-+++--+++--++-++ +--+-++-+-+++--+-++-+++-++-+++--+-+ +--+--+++--++-+++--++-+++--+-++--+- +++--+---++-++--++-+++--+-++-+-+++- -+-++--+--+++-++-+++--+--+++--+-++- +++--++-+++--+-++--+-+++--+++--++-+ ++--+-++-+-+++--+-++--+--+++-++-+++ --+-++--+--+++--++-+++--++-+++--+-+ +--+-+++--+++--++-+++--+-++-+-+++-- +-++--+--+++--+---+--+-+

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:00
Perform the following tasks: a. create a class named testclass that holds a single private integer field and a public constructor. the only statement in the constructor is one that displays the message “constructing”. write a main()function that instantiates one object of the testclass. save the file as testclass.cpp in the chapter 08 folder. run the program and observe the results. b. write another main()function that instantiates an array of 10 testclass objects. save the file as test class array.c . run this program and observe the results.
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
If joey was single and his taxable income was $9,500, how much would he pay in taxes each year?
Answers: 1
question
Computers and Technology, 23.06.2019 04:40
The narrative structure of the popular movies can be broken down into
Answers: 3
question
Computers and Technology, 23.06.2019 18:30
How often does colleges update the cost of attendance on their website? . a)every two years b) every four years c) every year d) every semester
Answers: 1
You know the right answer?
Redactedyou are a spy. the file attached has a series of messages that need to be encrypted before b...
Questions
question
Mathematics, 30.08.2019 12:30
question
Computers and Technology, 30.08.2019 12:30
Questions on the website: 13722360