Write a Python program that opens a file called words.txt, processes it, and copies all of the lines that include the word "Coding" in it to a file called coding.txt The words.txt file contains the following: Coding is cool. I hate coding. Coding helps me. This is Python. This is a program. Coding helps the time go by. The coding.txt file contains these lines: Coding is cool. Coding helps me. Coding helps the time go by. The program should also print out each line in the file being read. Sample Run: Coding is cool. Coding helps me. Coding helps the time go by. Process finished with exit code 0
Q: How should models of software-intensive systems be built, and from what perspectives?
A: Depending on the model's goal and the stakeholders concerned, models of software-intensive systems…
Q: How does a cloud storage service compare to a traditional client storage program, and what are the…
A: Cloud storage services and traditional client storage programs both have their unique benefits and…
Q: What are some of the advantages that come along with using a programming method that is…
A: A sort of parallel computer programming known as asynchronous programming allows a process to…
Q: r edge-weighted digraph to generate edge-weighted digraphs with a high percentage of negative…
A: To generate an edge-weighted digraph, we can use Python's NetworkX library. We will randomly…
Q: How precisely will authentication aid us in achieving what it is that we have set out to do? In this…
A: Authentication is the process of verifying the identity of a user or device attempting to access a…
Q: In what ways does a firewall provide a necessary function? When it comes to packet filtering, what…
A: In this answer, we will explore the ways in which a firewall provides a necessary function and best…
Q: Is there a link between Python strings and the installation and management of hardware and systems?…
A: The answer is given below step.
Q: A computer programmer is defined as.
A: A computer programmer is an individual who specializes in writing, testing, and maintaining the code…
Q: What are the upsides of using an object-oriented strategy in system development? Explain the…
A: Object-oriented strategy in system development:*Object-oriented databases will reduces the…
Q: Which processes, in your opinion, are necessary to protect data security during both transmission…
A: In general opinion, to protect data security during both transmission and storage, several processes…
Q: Horspool’s Algorithm (2’) How many character comparisons will be made by Horspool’s algorithm in…
A: Horspool's algorithm is a string searching algorithm that operates on the principle of the shift…
Q: sign of operating sys
A: The operating system is the only thing that allows your bare metal (desktop, tablet, phone, etc.) to…
Q: DNS records by kind. Explain each with instances and rationales. Can a web and internal mail server…
A: DNS (Domain Name System) records can be broadly categorized into the following types: A (Address)…
Q: Scripts and Stored Procedures—the what's difference? How can stored procedures benefit databases?
A: Scripts and stored procedures are both processes used in managing databases. However, there are key…
Q: Both the Path-Goal Theory and the Leader-Member Exchange (LMX) Theory are available for your…
A: In this question we have to understand and provide explanation of the Path-Goal Theory and the…
Q: In computer animation, a "jiffy" is commonly defined as 1/100th of a second. Define a function named…
A: Define a function JiffiesToSeconds that takes a double as parameter, representing the number of…
Q: Provide some distance between the verification process and the validation step. Provide some…
A: Verification and validation are integral steps in software development, responsible for ensuring…
Q: What's crucial? Connect records.
A: The answer is given below step.
Q: Provide a brief explanation for each component of the kernel, then list all of the components in…
A: The kernel is the core component of an operating system that manages the system's resources and…
Q: roximately how big is (n) compared to n?
A: The answer is
Q: The concept of a "store-and-forward network" is no longer used in general communications, and there…
A: Messages or data are first kept at intermediate nodes or devices before being forwarded to the…
Q: How does dynamic memory allocation differ from its static counterpart?
A: Static memory allocation: A program can have a predetermined amount of memory allotted to it during…
Q: How do cryptography and encryption techniques work to secure data in computer systems, and what are…
A: Cryptography and encryption techniques are critical tools for securing data in computer systems.…
Q: Provide a condensed description of the reasons why conventional software development approaches…
A: The answer is given below step.
Q: Using computers might be good for business generally. How does it affect the economy and how? This…
A: Efficiency benefits: Computers automate repetitive and mundane tasks, freeing people to focus on…
Q: How do cohesion and coupling relate to software design and development?
A: Coupling: The phrase "coupling in programming configuration" describes the closeness of the…
Q: Problems 1- Determine the CP by using CPM of the following projects a- Activities A B C D E F G b-…
A: We need to find the critical path and its maximum weight. so we will see in the more details with…
Q: The following is a list of the many different levels of encryption that may be used on a database.
A: The practice of using an algorithm to turn database data into "cipher text," which cannot be…
Q: Help me understand the following procedures by referring to the von Neumann model: 1. a) the…
A: a) The fundamental atomic building block in the von Neumann model refers to the basic unit of data…
Q: An in-depth and comprehensive study and explanation of the major principles that are central to…
A: The process of detecting, evaluating, and reducing security threats for a company or organization is…
Q: Please enumerate and briefly detail any ten distinct hardware characteristics that may be included…
A: In today's digital world, technology plays a vital role in the day-to-day operations of any…
Q: from on-premises servers to IaaS architecture governance
A: Moving from on-premises servers to Infrastructure as a Service (IaaS) architecture can be a…
Q: Why isn't semiconductor memory utilized for secondary storage if it's so trustworthy?
A: Solid-state memory, also referred to as semiconductor memory, is a form of memory that stores and…
Q: Type-sort DNS records. Explain their use using examples. Can web and mail servers share a hostname…
A: DNS (Domain Name System) is a crucial component of the Internet infrastructure that translates…
Q: What types of impacts do the various forms of media have on our society as well as our culture?
A: The impact of media on society and culture can be complex and multifaceted. Here are some of the key…
Q: What exactly is the function of MVC within the context of the wider picture that is web application…
A: Over the years, software development has undergone significant advancements. One of the most…
Q: Program Name prime Num Description The program will indicate which numbers between the values given…
A: Note : You have not mention the language of the program so your Code in C language is given below.…
Q: king up a typical web app
A: Introduction: When we discuss a web application's components, we refer to two things:Dashboards,…
Q: What is a hash collison?
A: A hash collision is when two different pieces of information, or inputs, create the same hash output…
Q: How did a software designed to operate on the web grow to consist of such a large number of…
A: The advancement of web technologies has led to the rapid development of complex and feature-rich web…
Q: How did a software designed to operate on the web grow to consist of such a large number of…
A: There are several reasons why software created on the web has developed into a huge number of…
Q: What challenges must AR and VR overcome before widespread adoption?
A: In this question we need to explain the challenges which AR (augmented reality) and VR (virtual…
Q: Flowcharts might be logical or physical. MetaData is the most crucial aspect of a data warehouse.
A: In the realm of system design and data management, it is crucial to have a comprehensive…
Q: Stored procedures vs scripts? Stored procedures' advantages?
A: Stored Procedure A Stored Procedure is a prepared SQL statement that is stored on the database…
Q: In the realm of computer science, how can an online store maintain tabs on its customers' purchases…
A: A database system is a piece of software that enables the structured and orderly production,…
Q: Create a new project named lab9_1 . You will need to implement a Course class. Here is its UML…
A: C++ is a general-purpose programming language that was developed by Bjarne Stroustrup as an…
Q: Create a C# program named ConferencesDemo for a hotel that hosts business conferences. Allows a user…
A: Given, using System; using static System.Console; class ConferencesDemo { static void Main()…
Q: Is it better to use a cloud storage service or a regular client storage software, and why?
A: The advent of cloud technology has brought about significant changes in the way we store and access…
Q: How many distinct methods of addressing are used within the context of a computer network
A: Addressing is used to Uniquely identify a computer/Machine.
Q: What are some of the ways in which column-oriented storage might benefit a database system that is…
A: Column-oriented storage can bring several benefits to a database system that supports a data…
Write a Python program that opens a file called words.txt, processes it, and copies all of the lines that include the word "Coding" in it to a file called coding.txt
The words.txt file contains the following:
Coding is cool.
I hate coding.
Coding helps me.
This is Python.
This is a program.
Coding helps the time go by.
The coding.txt file contains these lines:
Coding is cool.
Coding helps me.
Coding helps the time go by.
The program should also print out each line in the file being read.
Sample Run:
Coding is cool.
Coding helps me.
Coding helps the time go by.
Process finished with exit code 0
Step by step
Solved in 4 steps with 3 images
- Write a program that opens a text file called quiz.txt for reading. This file contains a single linewith a student’s first name then one space, then the student’s last name, then one space, then somenumber of quiz scores that, if they exists, are separated by one space. The student will have betweenzero and ten scores (inclusive), and each score is an integer between 0 and 100 (inclusive). The filemay or may not end with a new line character. Your program will read the data from this file andwrite its output to a second file. The data in the output file (named average.txt) will contain thestudent’s quiz scores followed by the average of the student’s quiz scores.The output file must be formatted as described below.1. Each quiz score should be listed in a right-justified column that is 4 characters wide. Notethat if a student has fewer than 10 scores (they have missed one or more of the quizzes), yourprogram will need to display the missing score(s) using 0 for each one.2. The average…Write a program that reads student data from a file, compute their GPA and writes the results to a different file. 1. The user should have the option to either enter their text file that contains the student grades or use the provided text file that contains theinformation. The data in "indata.txt" should look similar to this, Lara_Croft75 70 91 69 89Chris_Redfield68 88 79 85 94Johnny_Cochran69 98 95 77 80Wanda_Maximoff84 86 98 95 92Luke_Skywalker74 96 80 98 97William_Kurt89 52 99 81 58Samuel_Jackson50 96 50 64 95END_OF_FILE This is supposed to be in python. This is what I have so far. I have no experience I apologise. I am trying to finish the GPA calculating program currently but am having trouble finishing it. grade = input("enter grades")points = 0 if grade is 90-99:total_points = 4.0if grade is 80-89:total_points = 3.0if grade is 70-79:total_points = 2.0if grade is 60-69:total_points = 1.0if grade is 50-59:total_points = 0.0gpa = total_points/len(grade)print(gpa,"is gpa")Write a program that reads a text file named as “input.txt” and performs the following operations:1. Write each word in the text file in reverse order to the file named as“output.txt” . (Example: If the text file contains ”Hello World!”, then itshould write to the output file ”olleH dlroW!”)2. Print the number of words.3. Print the number of words starting with a capital letter.4. Print the number of words that contain no characters other than Englishletters.In this challenge you are supposed to:1. Comment every function with a description explaining what it does andhow it does it.2. Research and learn how to read and write into text files by using properlibrary functions in C.In your program, you can assume that1. Both the input file (input.txt) and the output file (output.txt) will beplaced on the same folder as your program’s executable (.exe).2. In the input file, the length of the words will be at most 100.
- Write a program that reads student information from a text file, then creates a text file that records the course grades of the students and a final grade. Each row of the .txt file contains the Last Name, First Name, Midterm1 score, Midterm2 score, and the Final score of a student, each separated by a space. A sample of the student information is provided in StudentInfo.txt below. Assume the number of students is at least 1 and at most 20. The program performs the following tasks: • Read the file name of the .txt file from the user. • Open the .txt file and read the student information using readline() or readlines(). • Compute the average exam score of each student. • Assign a letter grade to each student based on the average exam score in the following scale: ◦ A: 90 =< x ◦ B: 80 =< x < 90 ◦ C: 70 =< x < 80 ◦ D: 60 =< x < 70 ◦ F: x < 60 • Output the first names, last names, exam scores, and letter…Create a text file of names, (3 names per line, 5 lines in total) followed by an age for each name. Go through the file and sum the ages. Create an output file with each persons name followed by age and then a line at the end of the output file that says “sum of all ages is: x”. Simple Java programming. Should include things like bufferedReader, fileReader, printWriter, fileWriter, file close, try-with-resources, Scanner, catch/try, etc. Include Java file and txt file. Thank you.Write a program in Python that reads student information from a text file, then creates a text file that records the course grades of the students and a final grade. Each row of the .txt file contains the Last Name, First Name, Midterm1 score, Midterm2 score, and the Final score of a student, each separated by a space. A sample of the student information is provided in StudentInfo.txt below. Assume the number of students is at least 1 and at most 20. The program performs the following tasks: • Read the file name of the .txt file from the user. • Open the .txt file and read the student information using readline() or readlines(). • Compute the average exam score of each student. • Assign a letter grade to each student based on the average exam score in the following scale: ◦ A: 90 =< x ◦ B: 80 =< x < 90 ◦ C: 70 =< x < 80 ◦ D: 60 =< x < 70 ◦ F: x < 60 • Output the first names, last names, exam scores, and letter grades of the students into a text file named…
- Write a C/C++ language program on Linux that creates an array of 10,000 random unsigned integers in the range 1 to 1,000,000. These integers are then stored in a text file called numbers.txt Part 2: Write a C/C++ language program on Linux that reads the file numbers.txt and checks each number for being a prime number. Only the prime numbers from these are then written to a text file prime.txt. Part 3: Modify the program of part 2 so that it takes an input argument num_jobs with a value between 1 and 8. E.g. if num_jobs is 3, it splits into 3 parallel processes using fork() function and each process then calculates prime numbers from a subset of the input data. Together these 3 jobs find prime numbers from all the 10,000 input integers. The overall parent process then combines the results from its children into a single file prime.txt Part 4: Calculate the times taken by running the program of part 3, and make a table where the time taken for calculation is given for each value of…Python: Here is a list of colors. Write a program to read from the file and count the number of each color listed. Print the totals for each color to a new file called colorcount by listing the color and its count on separate lines. pink pink blue orange green red black green green green orange orange red pink yellow yellow orange red green blue blue pink red red orange purple orange green yellow black green red blue red blue orange purple blue orange black yellow green pink green yellow black green blue red green pink purple orange purple orange orange black purple red yellow black blue black purple yellow red orange red purple green orange green pink green orange yellow red green green green green green black blue bronwn purple green green green red blue green green green blue purple green blue redWrite a program countfile.c that calculates and prints on screen the number of bytes or number of lines in a file. To print the number of lines in the file myfile.txt, the program is run from the command line with two arguments as follows countfile.exe -l myfile.txt or, to print the number of bytes in the file myfile.txt, it would be run as countfile.exe -b myfile.txt EXAMPLE: Suppose the file myfile.txt contains the following samantha jacob 58 91 Then running countfile.exe -l myfile.txt would print 4 on the screen. And running countfile.exe -b myfile.txt would print 15 on the screen. If as a switch anything other than -l or -b is used, the program should give an error message and exit with code 1. If the file is not found, then it should give a message saying no such file exists, and exit with code 2. If everything runs correctly the program should return 0.
- Write a program that receives a coded message file(Lab3ExtraCreditCT.txt) from your local espionage agent and decodes it into a file using standard English. The problem is your agent forgot to tell you the key used to decode the message. Fortunately, this is a simple substitution code consistently using 1 alphanumeric character to represent another, this is case sensitive. All other characters are not substituted, so a space will always be a space, a – will always be a –, a @ will always be a @, etcetera. You may use the following table to help you, it contains the most common letters used in the English language in descending order. E A R I O T N S L C U D P M H G B F Y W K V X Z J Q 0 5 3 2 4 6 8 1 9 7 Using the following key to convert plaintext to coded text: Plaintext = Now is the time for all good men to come to the aid of their country. Key = THEQUICKBROWNFXJMPSVLAZYDG The file your program outputs should look like this: Coded Text = Fxz bs vku vbnu ixp tww…In Python Prompt the user for a text file that contains a list of student names, one on each line. Also prompt the user for a CSV file that contains scores for the students in the following order: homework1, homework2, midterm exam, final exam. Each line in the CSV has four scores, delimited by a comma. Each name in the text file has the corresponding scores in the CSV file. You will need to calculate the weighted final grade for each student as follows: 5% homework1 5% homework2 40% midterm exam 50% final exam Homework is scored out of 10 points and exams are scored out of 100 points. You need to create a program that will read the scores from the CSV file, calculate the weighted final grade, and display the resulting final grade, along with the student's name. Sample input files are attached. You can assume that the same number of lines will be in the input files, and that the order of the names and corresponding grades is the same in the two files. Display the name and final grade…Write a program, and store it in a file called Travel Expenses.xlsm, that does the following: (a) It asks for a person’s first name and stores it in firstName; (b) it asks for a person’s last name and stores it in lastName; (c) it asks for the number of miles the person traveled on a recent trip and stores it in nMiles; (d) it asks for the average miles per gallon the person got on the trip and stores it in milesPer- Gallon; (e) it asks for the average price per gallon paid for gas on the trip and stores it in avgPrice; (f) it calculates the cost of the trip and stores it in tripCost; and (g) it displays a message such as "Bob Jones traveled 800 miles, got 31.3 miles per gallon on average, paid $3.49 per gallon on average, and paid a total of $89.20 for gas." Make sure there is an Option Explicit line at the top of the module and that you declare all of your variables appropriately.