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
Contact [7]
4 years ago
7

The function takes two string parameters; the first is the name of a file and the second is text. Complete the function to appen

d the string text onto the end of the file named filename. You'll want to open the file for appending and then you can use a single write function call to complete the write. Be sure that you close the file, either with an explicit close function call or by using a with statement.
Computers and Technology
1 answer:
castortr0y [4]4 years ago
3 0

Answer:

The code for the function is given below in Python language

Explanation:

def append_string_to_file(filename, text):// function takes the filename // and text  to append

f = open(filename, 'a')

f.write(text) //function part that writes the text

f.close() //closing the file using the explicit close function

You might be interested in
Is the adoption rate of communication technology increasing ?
Neko [114]
More people adopt the technology during any period, leading to an increasing rate of adoption. So, yes
3 0
3 years ago
Read 2 more answers
Help pls nnnnnnnnnnnnnnnnnnnn
kiruha [24]

Answer:

3rd choice

Explanation:

i did that yesterday

5 0
3 years ago
Write a Java program named Problem 3 that prompts the user to enter two integers, a start value and end value ( you may assume t
Mashcka [7]

Answer:

hope this helps

Explanation:

import java.util.Scanner;

public class Problem3 {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.print("Enter start value: ");

       int start = in.nextInt();

       System.out.print("Enter end value: ");

       int end = in.nextInt();

       if (start > end) {

           int temp = start;

           start = end;

           end = temp;

       }

       for (int i = start; i <= end; i++) {

           if (i % 2 == 1) {

               System.out.print(i);

               if (i == end || i + 1 == end) {

                   System.out.println();

               } else {

                   System.out.print(", ");

               }

           }

       }

   }

}

5 0
3 years ago
. What are the differences between a centralized and distributed database architecture
Digiron [165]

Answer:

The difference between the centralized and the distributed database architecture are as follows:

  • The centralized database is the type of database which works on the single file in the database. Whereas, the distributed database works with the multiple files in the database.  
  • The centralized database refers to the proper planning and the helps in the decision making in the management system. Whereas, in the distributed database system the data are mainly distributed in the multiple files and the user can easily access the near by file in the database system.
  • In the centralized database, if the database are get fail then the overall system come to halt. On the other hand in the distributed system, if the component get failed then the performance of the system are get reduced.

6 0
3 years ago
What utility is used to verify that tcp/ip installed, bound to the nic, configured correctly, and communicating with the network
klasskru [66]
<span>PING is a utility that can verify that TCP/IP is installed, bound to the NIC, configured correctly, and communicating with the network. Ping is used diagnostically to ensure that a host computer the user is trying to reach is actually operating. Ping works by sending an Internet Control Message Protocol (ICMP) Echo Request to a specified interface on the network and waiting for a reply. Ping can be used for troubleshooting to test connectivity and determine response time.</span>
6 0
4 years ago
Other questions:
  • How does the team know what to work upon during the iteration
    6·1 answer
  • Which of the following statements is true?
    12·1 answer
  • When might be the best time to start saving for retirement?
    5·2 answers
  • It is important to verify internet source because-------- choose that apply. A.the source should be written by real author. B.an
    6·2 answers
  • Ted has $55.00 in his pocket. Which purchase will he be able to pay for with cash?
    9·2 answers
  • Making sure that your business has something special and distinct to offer is known as?
    12·1 answer
  • The Open Systems Interconnection (OSI) is a conceptual model whose purpose is to make networks more manageable. Its objectives i
    15·1 answer
  • Miriam Is a network administrator. A few employees want to access sensitive Information stored on a backup device. She wants to
    13·1 answer
  • Do you think communities or countries can survive without the internet?why or why not?​
    11·1 answer
  • What are you win your good at tech
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!