Hello I need help fixing lines 16 and line 41. I'm not sure how to fix an UnsupportedOperation error. Here are the instructions: You must have a function that accepts three test scores and returns the float average You will calculate the average for an unknown number of students, by reading the data from a file named scores.txt. You must print the students’ average scores to the screen as shown above You must write the specified output to a file named grades.txt You may not use any global variables
Q: e 2D transf lation.
A: Solution - In the given question, we have to write 2D transformation matrices of translation.
Q: Please in java and use the source code that is given. I cant get the output for t Write a…
A: Solution: Given, Write a program that opens the salesdat.txt file and processes it contents. The…
Q: Please in java , I cant get the output for t totalsalesforweek // b. avgsalesforweek // c.…
A: Solution: Given, Implement the below following tasks- a. totalsalesforweek b. avgsalesforweek c.…
Q: Take a look at the five offered examples and talk about how you may put fuzzy logic to use in…
A: Introduction: Fuzzy logic is used in a variety of domains, including the management of environments,…
Q: Algorithm for Testing semiregularity Input : a set S of generators of a nontransitive group G acting…
A: iven data Input : a set S of generators of a nontransitive group G acting on f~;Output : whether G…
Q: Explain the program thoroughly each line.
A: Comments are added to each line of the code explaining what is the meaning of that particular line…
Q: Write a bash script using for loop to get the list of cars as shown int he screenshot
A: The answer to the following question is given below:
Q: 3. Write a C++ program that calculates and displays the sum of two input body heights. Utilize…
A: Algorithm for the code: 1. Start 2. Take two integers as input from the user for feet and inches. 3.…
Q: How exactly does one go about obtaining approval for a network update within the context of a major…
A: Network Update:- The network diagram has to be updated based on how the activities are going and the…
Q: The most popular models for deploying cloud services are listed below. Describe each of them with an…
A: Cloud computing is a disruptive technology with the potential to radically alter the way…
Q: Discuss About Colour CRT Monitors.
A:
Q: This project needs you to do research and develop a list of common anti-patterns that occur, as well…
A: Introduction: If a "anti-pattern" is merely the antithesis of a "pattern," which is just a…
Q: How can we give the computer directions?
A: Program is a collection of instructions that performs a single operation. Software is numerous…
Q: Use the ArrayList class Add and remove objects from an ArrayList Protect from index errors when…
A: Solution: Given, The constructor takes a string, passed to the parameter n, which is the name of…
Q: Exists a list of the many types of malware and what each one does?
A: Malware:- Malware, which includes spyware, ransomware, and other harmful software, is a general word…
Q: Create a list of all customer numbers along with text indicating whether the customer has been…
A: The question has been answered in step2
Q: Question 1) Design PDAs to recognize the following languages. (Note: The question asks for PDAs not…
A: PDAs:- PDAs, usually referred to as portable computers, are a type of mobile device that serve as…
Q: Simple peer-to-peer networks consist of only two computers communicating with each other via an open…
A: The solution is given in the next steps for your need
Q: Arduino Programming Assignment The left (red) LED will start flashing at approximately 1hz. The LED…
A: Solution: Given, The left (red) LED will start flashing at approximately 1hz. The LED will…
Q: Explain Polygon Fill With Seed Fill Algorithm.
A: The answer to the question is given below:
Q: Q4 Draw a NFA for the regular expression 1. (a+b)c*cbb* 2. ab(abc)*ab
A: According to the information given:- We have to draw a NFA for the mentioned regular expression.
Q: ew virtual machines run the Server Core small footprint installation option of Windows Server 2022.…
A: Dear Student, A sample email for the IT manager is provided below -
Q: If data were not encrypted or hashed, what security strategy would be in place to prevent…
A: Given: What security policy would be in place if data was not encrypted or hashed to prevent…
Q: 5) The circuit below is NOT a clock circuit we've seen before. Show the alternate clock patterns at…
A: Given question: 5). The circuit below is NOT a clock circuit we've seen before. Show the alternate…
Q: For what reason is it necessary for the symbol or name used in the C++ inclusion guard on a library…
A: The symbol or the name used in the c++ inclusion guard in a library interface file is unique because…
Q: Discuss the trade-off between fairness and throughput of operations in the readers-writers problem.…
A: Given: In the readers-writers problem, discuss the trade-off between fairness and throughput of…
Q: Explain Polygon Fill With Seed Fill Algorithm.
A:
Q: 11) Write bash script using select statement with P3 and the outputis ashown her scripts…
A: Solution: Given,
Q: Define a recursive function createIntList for constructing a flat list of integers from a nested…
A: Answers:- def createIntList(lst): # the Display input list print("\n\tInput List :…
Q: How are BIOS/UEFI passwords circumvented on certain systems?
A: BIOS : In complementary metal-oxide semiconductor (CMOS) memory, the BIOS password is kept. In…
Q: Question 2. Convert the following CFG to an equivalent CFG in Chomsky normal form. Show all your…
A: Given, S --> ABA --> aAA | εB --> bBB | ε
Q: Submit only the answers.
A:
Q: Implement a function slice_link that slices a given link. slice_link should slice the link starting…
A: We need to write a function in Python for the required scenario.
Q: What does it mean when we say that a function's argument is the "base address of an array," and how…
A: Base Address of an array: Arguments in C functions are always supplied by value. The base…
Q: elucidate the role that information technology (IT) plays in a new functional area that the firm has…
A: Introduction: Information systems aid all corporate functions (5 major business function…
Q: Write a program in C++ that repeatedly prompts the user to enter a capital for a state. Upon…
A: Algorithms: Step 1. START Step 2. const int states = 6;Step 3. string stateCapitals[states][2] = {…
Q: Calculate the pixel using the DDA algorithm. and B = (4, 6). coordinates of line AB Where, A = (0,…
A: Here is the approach and the explanation . For the solution we first need the length . First…
Q: List and explain the four categories of sql commands
A: The four categories of SQL commands is well explained in the below step
Q: The running time of Counting Sort is pseudo-polynomial in input size n for a given array A[1..n] of…
A: The answer is given below step.
Q: Explain Polygon Fill With Seed Fill Algorithm.
A: These question answer is as follows,
Q: Why does Pinterest see Google as its greatest competitor? Why does Pinterest give the smartphone…
A: The solution to the given question is: Pinterest's original purpose of sharing information was…
Q: Software Requirements 1. Prompt the user for the number of times to print a message. 2. Read the…
A: As language is not given, doing it in C++
Q: Give some real-world examples of the four types of network security issues that might compromise…
A: Introduction: Internet-to-Think (IoT)IoT devices include sensors, software to monitor and operate…
Q: How many different kinds of digital forensics resources are there? Describe the benefits and…
A: The numerous types of digital forensics tools include:- Operating Device Based Forensics 1. Based on…
Q: prove For every edge u, v of G, node v is completely handled before u.
A: Think about some G's edge u and v. It must be placed on the stack foundNotHandled before u is fully…
Q: partition function in an activity diagram can help model interactions between agents. Use a…
A: The answer is given below.
Q: Define a Turing machine that decides L((0 (0 1)* 1)). Define a Turing machine that decides {0¹1³ | 0…
A: All Turing Machine drawn below:
Q: Can dynamic scoping be improved upon, and when is it appropriate to use it?
A: Let's see the answer:
Q: REQUIREMENTS: Using Python, you will write a program called singly-linked-list-arrays.py that…
A: Algorithm : The algorithm for the below code is as follows: 1. start 2. Initialize Data, Link,…
Q: Pipelining fails under the Princeton computing model. Give an explanation of the situation and offer…
A: Princeton Computing Model: PC engineering is based on John von Neumann's 1945 depiction of the von…
Hello I need help fixing lines 16 and line 41. I'm not sure how to fix an UnsupportedOperation error.
Here are the instructions:
- You must have a function that accepts three test scores and returns the float average
- You will calculate the average for an unknown number of students, by reading the data from a file named scores.txt.
- You must print the students’ average scores to the screen as shown above
- You must write the specified output to a file named grades.txt
- You may not use any global variables
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Hello i can see the output in the terminal but nothing appears in grades.txt
- PYTHON: 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 StudentInfo.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: A: 90 =< x B: 80 =< x < 90 C: 70 =< x < 80 D: 60 =< x < 70 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…The names and student numbers of students are save in a text file called stnumbers.txt. Example of the content of the text file: Peterson 20570856 Johnson 12345678 Suku 87654321 Westley 12345678 Venter 87654321 Mokoena 79012400 Makubela 29813360 Botha 30489059 Bradley 30350069 Manana 30530679 Shabalala 28863496 Smith 87873909 Nilsson 30989698 Makwela 30256607 Govender 30048117 Ntumba 30598303 Ramsamy 29952239 Skosana 29982995 Jameson 30228484 Xulu 29092248 Wasserman 27469352 Bester 28615425 Babane 27154033 Maboya 29897890 Mahlangu 30031338 Majavu 30165970 Myene 30954177 Motaung 30907276 Ramaroka 30804507 Radebe 30007674 Sekake 30017416 Zwane 30038227 Shuro 30238072 Viljoen 28881389 Sithole 45688555 Write a function called displayData() to receive the array and number of elements as parameters and display the names and student numbers of the students with a heading and neatly spaced. Write a function, isValid(), which receives a number as parameter and determines whether the number…Program a python program that demonstrates reading and comparing Create a python program that demonstrates reading and comparing multiple files, processes the input files based on the business rules, and produces an output file. Needed Files 1. The timeclock.txt Download timeclock.txtfile contains the hours worked data for every employee as well as the shift they worked. The layout for the file is as follows: EMPLOYEE_NUMBER, HOURS_WORKED, SHIFTTimeclock.txt 22476, 45, 3 24987, 30, 148283, 50, 285437, 25, 3 2. The personnel.txt Download personnel.txtfile contains the names of all employees and their hourly pay rates. The layout for the file is as follows: EMPLOYEE_NUMBER, EMPLOYEE_NAME, PAY_RATEPersonnel.txt 11235, Bob Smith, 10.50 22476, John Roberts, 12.3524987, Mary Johnson, 15.9032743, Brad Carson, 11.2548283, Alice Martin, 14.2085437, Aaron James,15.15 Note: Both the timeclock.txt and payroll.txt files are pre-sorted by EMPLOYEE_NUMBER in ascending order. Business…
- Using C++ Language Create a file called input9B.txt and type (or copy) the following text exactly as it appears below into that file. You may cut and paste the following 7 blue lines (including the blank line between the two paragraphs) into that file: C++ is a cross-platform language that can be used to create high-performance applications. C++ was developed by Bjarne Stroustrup, as an extension to the C language. C++ gives programmers a high level of control over system resources and memory. C++ is one of the world's most popular programming languages. C++ can be found in today's operating systems, Graphical User Interfaces, and embedded systems. C++ is an object-oriented programming language which gives a clear structure to programs and allows code to be reused, lowering development costs. Compile and run the program, using the input9B.txt file as the input file. Did this program produce the same exact output as shown above? What do you think the problem is? The problem is…A Personal Fitness Tracker is a wearable device that tracks your physical activity, calories burned, heart rate, sleeping patterns, and so on. One common physical activity that most of these devices track is the number of steps you take each day. The steps.txt file contains the number of steps a person has taken each day for a year. There are 365 lines in the file, and each line contains the number of steps taken during a day. (The first line is the number of steps taken on January 1st, the second line is the number of steps taken on January 2nd, and so forth.) Write a program that reads the file, then displays the average number of steps taken for each month. (The data is from a year that was not a leap year, so February has 28 days.) You don't need to see the file , Just write a code using the "file" like this def main(): with open("steps.txt", "r") as file:PYTHONPLEASE ALSO SHARE CODE THROUGH LINK: online-python(dot)comAlso screenshot code with correct indentation Create a python program that reads the student information from a tab separated values (tsv) file. The python program then must creates a text file that will records the course grades of the students. Each row of the tsv file contains the Last Name, First Name, Midtrm1 score, Midtrm2 score, and the Final score of a student. A sample of the student information is provided in StudentInfoScore.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: A: 90 =< x B: 80 =< x < 90 C: 70 =< x < 80 D: 60 =< x < 70 F: x < 60 Compute the average of each exam. Output the…
- The Springfork Amateur Golf Club has a tournament every weekend. The club president has asked you to design two programs. (1) A program that will ask the user how many golfers will be entered, read each player's name and golf score as keyboard input, and then save these records in a file named golf.txt. (Each record will have a field for the player's name and field for the player's score.) (2) A program that reads the records from the golf.txt file and displays them. Please submit three things: 1.) Flowchart for both programs (can be in one document or in two separate documents) 2.) Pseudocode for both programs (this can be on the same document as your flowcharts) 3.) Python source code files - one for each program (.py file) PYTHON pleaseA temperature file consists of five records, each containing a temperature in degrees Fahrenheit. A program is to be written that will read the input temperature, convert it from degrees Fahrenheit to degrees Celsius and print both temperatures in two columns on a report. Column headings, which read ‘Degrees F’ and ‘Degrees C’, are to be printed at the top of the page. What ist he best solution algorithm to successfully implement the above question?Using C# Programming Language Please display all code and steps for the following program. Store the data of (Customer#, Order#, OrderQty, UnitPrice) has shown below int a text file named Order.txt to be processed. Customer# Order# OrderQty UnitPrice 0155 76533 3 10.95 0140 75446 12 8.50 0150 75550 1 89.95 0145 75648 25 2.50 0130 76360 5 17.90 Create a form, ProcessOrder, that reads each order record, computes the extended cost, and displays Cust#, Order#, OrderQty, UnitPrice and ExtendedCost in a ListBox, with the columns aligned. An extended cost is the unit price multiplied by the order quantity Use a button, named btnDisplayOrders, to display orders (i.e., the records in the data file, Order.txt) – use Resize() method (in case the data file is large) Use another button, named btnDisplayExtendedCosts, to display the extended cost of each order (including the original 4 data items) Use 4 TextBoxes to allow the user to enter a new order…
- Code should be in Python. 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 StudentInfo.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: A: 90 =< x B: 80 =< x < 90 C: 70 =< x < 80 D: 60 =< x < 70 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…Code should be in Python. 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. (Examples in image)Create a file in your project named employees.txt with the following data (you can simply create the file by hand rather than with Python code): 123 Bob Smith345 Anne Jones256 Carol Lee845 Steve Robert Anderson132 Jill Thompson From your program's main function, give the user the following options: lookup a name based on ID number, lookup an ID number based on name, and quit the program. OPTION 1: The user chooses to lookup a name based on ID number: Use a try/except and ask the user to enter an integer. If they don't enter an integer, print an error message. If they do enter an integer, call a function named lookup_employee which takes the id as a parameter. If an employee with the given id number is found, return the name. Otherwise, return the string “Employee not found” Back in main, print the return result. OPTION 2: The user chooses to lookup an ID based on name: Ask the user to enter the first and last name (don't ask for the middle name). Call a function named…