3. Write a program called alice_words.py that creates a text file named alice_words.txt containing an alphabetical listing of all the words, and the number of times each occurs, in the text version of Alice's Adventures in Wonderland. (You can obtain a free plain text version of the book, along with many others, from http://www.gutenberg.org.) The first 10 lines of your output file should look something like this: Word Count a 631 а -piece abide 1 1 t.net/thinkcs/python/english3e/dictionaries.html[1/4/2012 9:38:26 PM] v to Think Like a Computer Scientist: Learning with Python 3 able 1 about 94 above 3 absence 1 absurd 2
Q: programme counter
A: In step 2, I have provided answer.
Q: A trigger's execution might result in the execution of another action. The depth of nesting in most ...
A: A trigger's execution might result in the execution of another action. The depth of nesting in most...
Q: How would you go about resolving the issue of false sharing that can occur?
A: Basics: In frameworks with convenient, lucid stores at the smallest asset block controlled by the re...
Q: What is regression testing?
A: Solution - We have to tell what is regression testing.
Q: Give examples of five general responsibilities of a database administrator.
A: A DBA is frequently involved in the initial setup of a modern Oracle, SQL Server, or other database....
Q: Explain what distributed databases and distributed processes are and give at least one example of ea...
A: Introduction: A distributed database is a collection of linked databases that are geographically dis...
Q: Employees of a university have to follow a specific procedure to get reimbursed for travel they the ...
A: Activity diagram is used to depict the complete process structure in form of a pictorial diagram rep...
Q: For what reason is it a good idea to hash a password that is saved in a file rather than encrypting ...
A: It a good idea to hash a password that is saved in a file rather than encrypting that password. We w...
Q: What is the minimum possible weight of a spanning tree T 3 3 5 2 O 26 O 21 18 13 17 2.
A: The solution to the given problem is below. ***Note: According to Bartleby policy we are not allow...
Q: 1 kinclude 2 3E int main() { 4 int n,h,i,s=0; int low=e,rough=e,rugged=e,high=e,DIDNOTQUALIFY=@; pr...
A: answer is
Q: Write a java program that will take a text as input and convert the first letter of each word into ...
A: Java is a high-level, class-based, object-oriented programming language that is designed to have as ...
Q: Design N – bit add-sub unit using behavioral VHDL model
A: The behavioural model in VHDL describes how the circuit behaves. This behavioural model is the highe...
Q: Which form of process scheduling may be shown to be provably optimal?
A: The solution to the given problem is below.
Q: Define the number of CPU clock cycles.
A: CPU clock cycles define below :
Q: List and justify the three design objectives for relational databases.
A: Each table entry in a relational database is a document called the essential item, which has a uniqu...
Q: How did early operating systems differ from the goals of today's operating systems in terms of their...
A: How did early operating systems differ from the goals of today's operating systems in terms of their...
Q: Consider the graph in Figure 1. Unless otherwise indicated, always visit adjacent nodes in alphabeti...
A:
Q: Search online to identify the five fastest supercomputers currently in operation. Who sponsors these...
A: Lets see the solution in the next steps
Q: ow would you use the system development life cycle (SDLC) method to solve: Suppose you are an ana...
A: Given :- Suppose you are an analyst developing a new executive information system intended to provid...
Q: ssume you receive real-estate data for 1000 samples as input and each sample has 25 different featur...
A: SUMMARY: - Hence, we discussed all the points.
Q: what value would be returned based on the formula in cell A94
A: Ans is option 4 46npbb The value that would be returned based on the formula [=COUNTIF(A43:A47,...
Q: Develop a context diagram and a level-0 diagram for the contracting system described in the followin...
A:
Q: 1.Define a JavaScript function that takes a parameter and prints the datatype of that parameter in t...
A: Define a JavaScript function that takes a parameter and prints the datatype of that parameter in the...
Q: a relational datab
A: given - Why would we pick a non-BCNF architecture for a relational database?
Q: How do you determine which form of process scheduling is the most effective in a timesharing environ...
A: Environment for timesharing: The round robin process scheduling mechanism is employed when working i...
Q: The Google search engine has a capability that allows web sites to show Google adverts. The advertis...
A: Google ads are nothing more than adverts on web pages; if a user visits a website that has Google ad...
Q: Why is it necessary for the maximum packet lifetime to be large enough to ensure that not only the p...
A: To explain the statement "Why is it necessary for the maximum packet lifetime to be large enough to ...
Q: Write a java program to check if a list of integers contains only odd number. Please do it using par...
A: Required:- Write a java program to check if a list of integers contains only odd numbers. Please do ...
Q: Create a definition for the Java virtual machine.
A: The answer of this question is as follows:
Q: te an EBNF description for a Java class definition header statement te a BNF description of the Bool...
A: 1.A Java class definition header statement <class_head> ® {<modifier>} class <id>...
Q: Lab Goal : The lab was designed to teach you how to use arrays to simplify solving more complex prob...
A: Here is the answer:-
Q: Describe the two opposing viewpoints on the construction of the kernel of an operating system
A: Given The answer is given below
Q: MCQS OF SOFTWARE QUALITY ASSURANCE 1.Testing the application as a whole for the modification in any ...
A: Note: Since the question is multipart we are advised to do only first three parts. Kindly post other...
Q: Which of the following is the solution using the Master Theorem for the recurrence relation T(n)=4T(...
A: Consider the given Data:
Q: Personal computer should be defined.
A: Answer:
Q: Write buffer should be defined.
A: Introduction: A write buffer is a particular type of data buffer used in certain CPU cache architect...
Q: In what ways does a binary tree resemble a linked list?
A: Introduction: A tree has branches—-each node refers to one or more descendant nodes. A binary tree i...
Q: implement a search algorithm to apply to a particular problem they are facing. The problem has the f...
A: The problem has the following characteristics:● The graph representing the problem has a very high f...
Q: What are the advantages of ICT? What is the signifincance of ICT?
A: ICT: ICT stands for Information and Communication Technologies ICT refers to technologies that provi...
Q: What is regression testing?
A: Below is then answer of regression testing. I hope this will behelpful.
Q: 10. Insert the following records to BOOKS table: BookID Category Title Price Writer 1 IT SQL 50 Khal...
A: Solution : Here, in BOOKS table there 5 columns. The books details are shown in table. In above qu...
Q: The several methods of file access are listed here. I'm wondering about the benefits and drawbacks o...
A: Introduction: The most basic file access method is: File organization is nothing more than gathering...
Q: nsider a singly linked list of the form Y create a new node as shown below; ew node(); a=100; h is t...
A: SUMMARY: - Hence, we discussed all the points.
Q: how Linux may be used in several elements of rocket technology
A: Linux is an open source operating system that is highly secured.
Q: Consider the following function in answering the questions below. int a, int b, int c; int temp; if ...
A: There are two parts in this question, In first part we are asked to develop test input to cover 100%...
Q: Project Name: Phone Call Detector 1. Flowchart 2. Introduction/Rationale
A: Cell phones are widely used in the world. While people have to be connected to one another, there ar...
Q: Explain why each of the three design objectives for relational databases is beneficial.
A: Let's see the solution in the next steps
Q: What are the applications of Subneting?
A: According to the question the subnet allows to the community to carry out speedy and makes the commu...
Q: Identify the similarities and differences of Media Literacy, Information Literacy, and Digital/Techn...
A: Media Literacy: The capacity to critically assess and evaluate media information is referred to as ...
Q: Use a one-dimensional array to solve the following problem. Read in 20 numbers, each of which is bet...
A: The answer is
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
Keeps saying FileNotFoundError: [Errno 2] No such file or directory: 'alice.txt'
I have downloaded the book as a text file from Gutenberg like the question recommended. What should I do?
- 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 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…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")
- Using a text editor, create a file that contains a list of at least 15 six-digit account numbers. Read in each account number and display whether it is valid. An account number is valid only if the last digit is equal to the remainder when the sum of the first five digits is divided by 10. For example, the number 223355 is valid because the sum of the first five digits is 15, the remainder when 15 is divided by 10 is 5, and the last digit is 5. Write only valid account numbers to an output file, each on its own line.*Note that the contents of the file AcctNumsIn.txt will change when the test is run to test the program against different input. AcctNumsIn.txt 345619789400871208901156984334723422172257100000273699237485761200555500936716763542999995 import java.nio.file.*;import java.io.*;import java.nio.channels.FileChannel;import java.nio.ByteBuffer;import static java.nio.file.StandardOpenOption.*;public class ValidateCheckDigits {public static void main(String[] args) {Path…Using a text editor, create a file that contains a list of at least 15 six-digit account numbers. Read in each account number and display whether it is valid. An account number is valid only if the last digit is equal to the remainder when the sum of the first five digits is divided by 10. For example, the number 223355 is valid because the sum of the first five digits is 15, the remainder when 15 is divided by 10 is 5, and the last digit is 5. Write only valid account numbers to an output file, each on its own line.*Note that the contents of the file AcctNumsIn.txt will change when the test is run to test the program against different input. AcctNumsIn.txt345619789400871208901156984334723422172257100000273699237485761200555500936716763542999995 ValidateCheckDigits.javaimport java.nio.file.*;import java.io.*;import java.nio.channels.FileChannel;import java.nio.ByteBuffer;import static java.nio.file.StandardOpenOption.*;public class ValidateCheckDigits {public static void…Using a text editor, create a file that contains a list of at least 15 six-digit account numbers. Read in each account number and display whether it is valid. An account number is valid only if the last digit is equal to the remainder when the sum of the first five digits is divided by 10. For example, the number 223355 is valid because the sum of the first five digits is 15, the remainder when 15 is divided by 10 is 5, and the last digit is 5. Write only valid account numbers to an output file, each on its own line. Note that the contents of the file AcctNumsIn.txt will change when the test is run to test the program against different input.
- 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…The teacher at a school needs help grading an exam with a number of True/False questions. The students’ IDs and test answers are stored in a file. The first entry of the file contains the answer to the test in the form: TTFTFTTTFTFTFFTTFTTF Every other entry in the file is the student’s ID, followed by a blank, followed by the students’ response. For instance, the entry: ABC54102 T FTFTFTTTFTTFTTF TF The student’s ID is ABC54102, answer to question 1 is True, the answer to question 3 is False. Also, the student did not answer question 2 and question 18. The exam has 20 questions. Here is the grading policy: each correct answer is awarded two points, each wrong answer get -1 point, and no answer gets 0 point. Write a program that processes the test data. The output should be the student’s ID, followed by the answers, followed by the test score (total points), followed by the test grade. Assume the following grade scale will be used: 90%-100%, A; 80%-89.99%, B; 70%-79.99%, C; 60%-69.99%,…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.
- IN JAVA ONLY PLEASE. POSITIVE REVIEW WILL BE LEFT FOR CORRECT LANGUAGE ONLY AND NOT COPY PASTE FROM INCORRECT ANSWER A photographer is organizing a photo collection about the national parks in the US and would like to annotate the information about each of the photos into a separate set of files. Write a program that reads the name of a text file containing a list of photo file names. The program then reads the photo file names from the text file, replaces the "_photo.jpg" portion of the file names with "_info.txt", and outputs the modified file names. Assume the unchanged portion of the photo file names contains only letters and numbers, and the text file stores one photo file name per line. If the text file is empty, the program produces no output. Ex: If the input of the program is: ParkPhotos.txt and the contents of ParkPhotos.txt are: Acadia2003_photo.jpg AmericanSamoa1989_photo.jpg BlackCanyonoftheGunnison1983_photo.jpg CarlsbadCaverns2010_photo.jpg CraterLake1996_photo.jpg…Write a program that reads the student information from a tab separated values (tsv) file. The program then creates a text file that records the course grades of the students. Each row of the tsv file contains the Last Name, First Name, Midterm1 score, Midterm2 score, and the Final score of a student. A sample of the student information is provided in Studentlnfo.tsv. 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 tsv file from the user. • Open the tsv file and read the student information. • 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: o A: 90 =< x o B: 80 =< x < 90 o C: 70 =< x < 80 o D: 60 =< x < 70 o F:x< 60 Compute the average of each exam. • Output the last names, first names, exam scores, and letter grades of the students into a text file named report.txt. Output one student per row and separate the…Using JAVA Your client owns a bookstore, and they need to process an input file containing the titles of all their books to remove duplicates. Write a program that reads all of the titles from an input file called SamsBookstore.txt and writes them to an output file called SamsDuplicates.txt. When complete, the output file should contain all duplicated titles found in the input file. Create a text file using the following books: And Then It's Spring Baby Bear Sees Blue Beach Feet Jimmy the Greatest! Boot & Shoe Boy & Bot Cat Tale Creepy Carrots! Jimmy the Greatest! Dog in Charge Eggs 1 2 3 Extra Yarn Ganesha's Sweet Tooth Green Happy Like Soccer H.O.R.S.E.: A Game of Basketball and Imagination The Insomniacs Boy & Bot It's a Tiger! Jimmy the Greatest! King Arthur's Very Great Grandson Me and Momma and Big John The Quiet Place Robin Hood Step Gently Out Up, Tall and High Z Is for Moose The Elephant's Friend and Other Tales from Ancient India.…