6. Write a Python program that reads a text file called student.txt. The input text file contains student_ID, student_name, Quiz_grade as well as Test_grade for each student. Your program should read each student details from the file Then calculate the average of Quizzes and Tests marks Display the students' details: Total number of students, total average, the total highest and lowest marks. The program should output the report into a file called output.txt. A sample of output text file is given below.
Q: (a) Suppose we create a binary search tree by inserting the following values in the given order:…
A: The binary Tree will be like this :
Q: 1.
A: The unified process is an iterative process The answer is True Explanation The Unified Process is…
Q: The hardware used to replicate Pep/9 has 64K memory. But what is its purpose? So far, just 0x0030 of…
A: Pep/9 equipment: The three parts that make up the Pep/9 hardware are the disc, the CPU, and the main…
Q: Write in Java (Data Structures). Write a program that implements a selection sort of an array of…
A: Java:- Java is a widespread programming language that was created specifically for use in the global…
Q: What does the central processing unit (CPU) signify and how does it work? Describe your viewpoint!
A: C.P.U:- CPU refers to the central processing unit or operating system. The brain of the computer…
Q: Q .3 Computer Science Telnet into www.google.com and send a multiline request message. Include in…
A: Introduction: It is a command that is used in Windows and Linux to connect to the web server. It…
Q: How does single-user multitasking operate? What is it? Explain using instances from ordinary life…
A: Introduction: An operating system known as a single user multi tasking operating system enables a…
Q: Describe the Domain Name System, including its many forms, purposes, uses, and problem
A: The Domain Name System, or DNS, helps to resolve the host name to an IP address. It helps to map the…
Q: The need for a Hadoop ecosystem and its components should be discussed.
A: HADOOP: Hadoop ecosystem helps solve large data concerns. It has parts and services. The services…
Q: Give an explanation of the connections between the Isa and Hasa classes. How would you go about…
A: Introduction: Therefore, since a specialised class "is" another class a, it also has the ISA link…
Q: What functions do engineers and computer scientists perform?
A: Computer scientists and computer engineer overlap in certain area but computer science is a…
Q: What is TCP/IP protocol model?
A: Let's discuss the TCP/IP protocol model with each layer in detail:- TCP/IP protocol model TCP/IP…
Q: What advantages does this file system have over a sequential one?
A: All the advantage of sequential file system over file system is below:
Q: 4. Create an empty list called numbers. a) Add 2 and 4 into the list. b) Print the list. c) Add 0, 1…
A: Program Screenshot:
Q: What is Hadoop, and what has been the development of Hadoop's history up to this point? What…
A: Hadoop: a distributed file system that is open-source that provides clustered servers with common…
Q: What are the tasks involved in keyboard Interface?
A: We need to discuss the tasks involved in keyboard interface.
Q: You need to be able to name four design models used in system design.
A: 1.Design the environment 2. Design the application software 3. Design the database
Q: In no more than 20 words, describe when two search algorithms are comparable. Exists a search…
A: Introduction: The search methods described in this part do not contain any extra information about…
Q: According to you, when a business should utilise PaaS and when they should think about IaaS? Why?
A: PaaS: Platform as a Service (PaaS) is a model that enables software programmed to make use of…
Q: Give a description of what parametric polymorphism is and how it functions,
A: Introduction: Give an example of the usage of parametric polymorphism in a subprogram and describe…
Q: What methods and tools are available to deal with issues before and after a release?
A: Introduction: Error in calculations. This may be due to a novice coder. If the programmer is…
Q: How can a computer multitask while operating as a single machine? explanation utilising a real-world…
A: Introduction: Multitasking: An operating system handles many tasks at once, such as running an…
Q: In a few phrases, contrast and compare APIPA and DHCP.
A: Introduction: DHCP allocates IPs to clients automatically. The DHCP server or router holds client…
Q: Describe the effects on a DBA's workload of pairing each of the eight cost estimation algorithms…
A: Estimating Strategies: To examine the reasonableness of solutions, students must apply estimate…
Q: Software developers must assist customers in effectively gathering requirements. Your client must…
A: Introduction: Employees, i.e. software engineers, should offer the most effective methods of…
Q: What distinguishes centralised version control software from distributed version control software?…
A:
Q: The need for a Hadoop ecosystem and its components should be discussed.
A: Hadoop ecosystem is a platform or a suite which provides various services to solve the big data…
Q: Spam is the term for unsolicited commercial mass emailing systems. According to some detractors, the…
A: Five features of spam emails. 2. Don't have authorization to email subscribers. 3. Your IP is spam…
Q: uery expression uses the correct syntax and will select the element(s) listed? a.…
A: Lets see the solution.
Q: What are five examples of software applications that the government and business consider to be…
A: What it mean legal and illegal software applications : Software platforms created especially to…
Q: 10.List the advantages of multiprocessor systems.
A:
Q: A computer is an electrical device that can store, retrieve, and analyse both qualitative and…
A: Explanation: An electrical device used to manage data or information is a computer. Data may be…
Q: What impact does "Race Condition" have on the operating system of a computer?
A: A race situation occurs when a computer or system attempts to execute two or more processes…
Q: Live backups of physical hard drives can be produced by setting up a RAID array, although doing so…
A: RAID is a data virtualization storage solution that combines several physical disc drive components…
Q: Making sure that only approved packets enter the network is the responsibility of a router,…
A: Answer: Among computer networks, a router is a networking device that forwards data packets. On the…
Q: A small manufacturing firm grows by opening additional locations around the nation. Right now, each…
A: The above question is solved in step 2 :-
Q: Ask the user for an account balance. Show, in descending order, all the accounts that have a balance…
A: BELOW ? COMPLETE PROGRAM INCLUDED WITH COMMENTS AND SCREENSHOT OF OUTPUT :
Q: In cases when a student does not declare a major, the value "Undecided" is often entered in the…
A: Introduction: When a student hasn't picked a major, the university enters "Undecided" for the field.…
Q: What’s the value of the $SHELL environment variable in the playground machine? List 5 shell commands…
A: Introduction A variable is indeed a box with a predetermined value. It can alter its value, which…
Q: What role does documentation play in a successful criminal investigation? Make a list of all the…
A: The Value of Documenting Criminal Investigation ProceduresEverything that happens while a crime…
Q: What exactly is OWASP Zed Attack Proxy (ZAP), also known as WebScarab? Its place in security testing…
A: Zed Attack Proxy by OWASP: One of the most well-known security tools in the world is the OWASP (Open…
Q: Assume you are in charge of creating a university's examination system. Which documents are…
A: It's important to call out the files we need to use for the testing platform, as well as the…
Q: Explain why each input port on a high-speed router has a shadow copy of the forwarding table.
A: The Process of Routing in Networks: The process of moving data packets via a network from their…
Q: Is it possible to lock yourself out during a transaction? Could you please tell me when this…
A: Introduction: Transaction locks.Locking uses lock modes, lock granularity, and transaction isolation…
Q: Discuss five characteristics of of Decisions Support Systems
A: A decision support system is an internal business element that provides owners, executives, and…
Q: Can we decide the schedulability of a system of independent and preemptable tasks by the RM…
A: Lets see the solution.
Q: Use an illustration to compare organised vs unstructured data.
A: Introduction: Unstructured data is, more or less, any data that isn't set up in a certain way. Even…
Q: Create a factor vector from the values currently in vector x below x <-c("Low","Medium","High") X <-…
A: X <- factor(x,order=c("Low","Medium","High"))
Q: A. Exactly what does an antiviral regimen entail? B. As a user, you may have run upon…
A: Antivirus: An antivirus is a piece of software, or group of applications, created expressly to find,…
Q: Which two aspects of network security are the most crucial?
A: Introduction: Multiple layers of network and edge defenses are combined to form network security.…
urgent plz
Step by step
Solved in 2 steps with 2 images
- 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 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 asks any number of students to enter their final grade and enables you to store these grades into a grades.txt plain text file. Then it reads the grades from the grades.txt file, and displays the individual grades and their count and average.
- 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, 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.Create a program that calculates the average test scores. Given the student’s name and five test scores, calculate the test scores. The student’s name, five test scores and the average test score is stored in the file testaverage.txt. The data is input from the file test.txt. Sample Run Input file (Contents of the file test.txt) Andrew Miller 87.50 89 65.75 37 98.5 Output file (Contents of the testaverage.txt) Student Name: Andrew Miller Test Scores: 87.50 89.00 65.75 37.00 98.50 Average test score: 75.75
- Write a Python program that reads from the user the name of two files (an input file and an output file). The program will then read each line of the input file and save it in the output file preceded with the line number and removing any of the following punctuations (. , ! ? ; :) found at the end of the line. For example, if the input file is:Mary had a little lamb;Whose fleece was white as snow; And everywhere that Mary went; The lamb was sure to go!Then the output file the content of the input file and saves it in the produced output file will beLine 1: Mary had a little lambLine 2: Whose fleece was white as snow Line 3: And everywhere that MaryLine 4: The lamb was sure to goWrite a program that will read in a file of student academic credit data and create a list of students on academic warning. The list of students on warning will be written to a file. Each line of the input file will contain the student name (a single String with no spaces), the number of semester hours earned (an integer), the total quality points earned (a double). The following shows part of a typical data file: Smith 27 83.7 Jones 21 28.35 Walker 96 182.4 Doe 60 150 The program should compute the GPA (grade point or quality point average) for each student (the total quality points divided by the number of semester hours) then write the student information to the output file if that student should be put on academic warning. A student will be on warning if he/she has a GPA less than 1.5 for students with fewer than 30 semester hours credit, 1.75 for students with fewer than 60 semester hours credit, and 2.0 for all other students. The file Warning.java contains a skeleton of the…Write a program that will read in a file of student academic credit data and create a list of students on academic warning. The list of students on warning will be written to a file. Each line of the input file will contain the student name (a single String with no spaces), the number of semester hours earned (an integer), the total quality points earned (a double). The following shows part of a typical data file: Smith 27 83.7 Jones 21 28.35 Walker 96 182.4 Doe 60 150 The program should compute the GPA (grade point or quality point average) for each student (the total quality points divided by the number of semester hours) then write the student information to the output file if that student should be put on academic warning. A student will be on warning if he/she has a GPA less than 1.5 for students with fewer than 30 semester hours credit, 1.75 for students with fewer than 60 semester hours credit, and 2.0 for all other students. The file Warning.java contains a skeleton of the…
- Write 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.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 which reads the content of a file given as input and counts the number of thewords in the file. It is assumed the words are separated by one or multiple of the followingcharacters: ’ ’ ’,’ ’?’ ’!’ ’.’ ’\t’ ’\r’ ’\n’. input: words.txt output: The file contains 17 words. Please write in C programming language.