1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
pantera1 [17]
3 years ago
9

RedactedYou are a spy. The file attached has a series of messages that need to be encrypted before being sent. Open the file "me

ssages.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 help 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:---++---+-+++--+---+-+++--+-++--+--+++--+-+++++--+-----+++--+-+++--+---+-+++--+-++--+-+++--+-+++++--+----++---+-++--+---+-+++--+-++--+--+++---+++++--+-----++---+-+++--+-+++--+-++-+++--+-+++++--+-----++---+-+++--+---+-+++--+-++--+--+++--+-+++++--+-----+++--+-+++--+---+-+++--+-++--+-+++--+-+++++--+-----+-++--+---+-+++--+-++--+--+++---+++++--+-----++---+-+++--+-+++--+-++--+--+++--+-+++++--+-----++---+-+++--+---+-+++--+--+++--+-+--+-----+++--+-+++--+---+-+++--+-++--+-+++--+-+++++--+----++---+-++--+---+-+++--+-++--+--+++---+++++--+-----++---+-+++--+-+++--+-++--+--+++--+-+++++--+-----++---+-+++--+---+-+++--+-++--+--+++--+-+++++--+-----+++--+-+++--+---+-+++--+-++--+-+++--+-+++++--+----++---+-++--+---+-+++--+-++--+--+++---+++++--+-----++---+-+++--+-+++--+-++--+--+++--+-+++++--+--+-+
Computers and Technology
1 answer:
Montano1993 [528]3 years ago
7 0

Hey! How are you? My name is Maria, 19 years old. Yesterday broke up with a guy, looking for casual sex.

Write me here and I will give you my phone number - *pofsex.com*

My nickname - Lovely

You might be interested in
Does anyone know a working free spotify premium on ios 2021 plz i have had any luck finding anything:(​
natima [27]
No sorry

................
5 0
3 years ago
Read 2 more answers
Given the strings s1 and s2 that are of the same length, create a new string consisting of the first character of s1 followed by
LiRa [457]

Answer:

s1='abc'

s2='wxyz'

length=len(s1)

s3=''

for i in range(length):

   s3+=s1[i]+s2[i]

print(s3)

3 0
3 years ago
Are storage devices input devices
Nonamiya [84]

Answer:

Exphfbdplanation:

8 0
3 years ago
Where is NumPy used?
Svetradugi [14.3K]

Explanation:

The ndarray (NumPy Array) is a multidimensional array used to store values of same datatype. These arrays are indexed just like Sequences, starts with zero.

7 0
3 years ago
Read 2 more answers
Create the following SQL Server queries that access the Northwind database. Place them in a zip file and place the zip file in t
neonofarm [45]

Answer:

1. SELECT e.EmployeeID, e.FirstName, e.LastName, COUNT(*) as OrderByEmployee FROM Employees e

JOIN Orders o

ON e.EmployeeID = o.EmployeeID

WHERE YEAR(o.OrderDate) = '1996'

GROUP BY e.EmployeeID,e.FirstName,e.LastName

ORDER BY OrderByEmployee DESC

2. SELECT o.OrderID,c.CustomerID, o.OrderDate,SUM((od.Quantity)*

od.UnitPrice - od.Discount)) as TotalCost FROM Orders o

JOIN [Order Details] od

ON od.OrderID = o.OrderID

JOIN Customers c

ON o.CustomerID = c.CustomerID

WHERE (MONTH(OrderDate)= 7 OR MONTH(OrderDate) = 8) and

YEAR(OrderDate) = 1996

GROUP BY o.OrderID,c.CustomerID, o.OrderDate

ORDER BY TotalCost DESC

3. SELECT c.CustomerID, c.CompanyName, c.City, COUNT(o.OrderID) as TotalOrder, SUM(od.Quantity* od.UnitPrice) as TotalOrderAmount FROM Customers c

JOIN Orders o

ON o.CustomerID = c.CustomerID

JOIN [Order Details] od

ON od.OrderID = o.OrderID

WHERE c.Country = 'USA'

GROUP BY c.CustomerID, c.CompanyName, c.City

ORDER BY c.City, c.CustomerID

4. SELECT c.CustomerID, c.CompanyName, c.City, COUNT(o.OrderID) as TotalOrder, SUM(od.Quantity* od.UnitPrice) as TotalOrderAmount FROM Customers c

JOIN Orders o

ON o.CustomerID = c.CustomerID

JOIN [Order Details] od

ON od.OrderID = o.OrderID

WHERE c.Country = 'USA'

GROUP BY c.CustomerID, c.CompanyName, c.City

HAVING COUNT(o.OrderID) > 3

ORDER BY c.City, c.CustomerID

5. SELECT p.ProductID, p.ProductName, s.ContactName as SupplierName, MAX(o.OrderDate) as LastOrderDateOfProduct FROM Products p

JOIN Categories c

ON c.CategoryID = p.CategoryID

JOIN Suppliers s

ON s.SupplierID = p.SupplierID

JOIN [Order Details] od

ON od.ProductID = p.ProductID

JOIN Orders o

ON o.OrderID = od.OrderID

where c.CategoryName = 'Grains/Cereals'

GROUP BY p.ProductID, p.ProductName, s.ContactName

ORDER BY SupplierName, p.ProductName

6. SELECT p.ProductID, p.ProductName, Count(DISTINCT c.CustomerID ) as OrderByThisManyDistinctCustomer

FROM Products p

JOIN [Order Details] od

ON od.ProductID = p.ProductID

JOIN Orders o

ON o.OrderID = od.OrderID

JOIN Customers c

ON c.CustomerID = o.CustomerID

where YEAR(o.OrderDate) = 1996

GROUP BY p.ProductID, p.ProductName

Explanation:

The six query statements returns data from the SQL server Northwind database. Note that all the return data are grouped together, this is done with the 'GROUP BY' Sql clause.

8 0
3 years ago
Other questions:
  • Data mining is ______? a process of finding meaningful patterns in data to improve decisions a strategy for locating security so
    7·1 answer
  • How to remove a channel from favorite list on suddenlink?
    15·1 answer
  • From the video "Your Password Sucks", using computer power to guess your password by trying multiple variations one after the ot
    15·2 answers
  • Design a module named getNumber, which uses a reference parameter variable to accept an Integer argument. The module should prom
    6·1 answer
  • HURRY
    5·1 answer
  • IBF Consultants, LLC provides consulting services in privacy and theft deterrence solutions. Another client has very sensitive d
    7·1 answer
  • Which of the following components controls the opening and closing of the valves in an engine ?
    15·2 answers
  • Integer indexing array: Weekend box office The row array movieBoxOffice stores the amount of money a movie makes (in millions of
    11·1 answer
  • Me Completan Pliiiis
    10·2 answers
  • There are many ways you can improve the performance of a website from an SEO perspective. When it comes to link building, which
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!