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=
Q: Calculate the Kinetic energy of a gram molecule of argon at 127deg C. Progamming language: JAVA
A: Required:- Calculate the Kinetic energy of a gram molecule of argon at 127deg C. Progamming language...
Q: onstruct a subprogram that solves the differential equation set dy = g(y,t)dt dt rith the fourth-ord...
A: SUMMARY: - Hence, we discussed all the points. of
Q: Write code that outputs variable numExams as follows. End with a newline. Ex: If the input is: 3 ...
A: Your python code is given below with an output.
Q: Among the different communication platform you are using (or tried using), select one that you recom...
A: Introduction: Your inquiry concerns a different communication medium. Let's talk about it.
Q: C++ programming Question. Try to find the most probable speed from the velocities of ten particles(i...
A: Required:- C++ programming Question.Try to find the most probable speed...
Q: QI Write program in fortran to find the maximum number of (x,y,z)?
A: program mainimplicit none integer :: x,y,z !initialization of valuesprint*, "Enter values of x,y,z"...
Q: Complete the below function in Java String method(String str, String x, int y ){ lladds the x string...
A: Hi there, please find your solution below, I hope you would find my solution useful and helpful. Tha...
Q: Some open source forensic tools include (choose all that apply): EnCase. Autopsy. ...
A: 7) EnCase Encase is an application that helps you recover evidence from hard drives. allows you to d...
Q: Give the hardware implementation along with explanation for the general register organization of CPU...
A: A bunch of flip-flops shapes a register. A register is a one of a kind fast stockpiling region in th...
Q: ng Netflix as an info
A: Amazon web services helps in handling following things- Amazon web services handles database managem...
Q: Draw the logical diagram of a 2-line to 4 - line decoder using NOR gates only.
A: NOR gate in the digital electronics is the gate which is a NOT-OR gate, It is a logic gate which hel...
Q: QI Write program in fortran to find the maximum number of (x,y,z)?
A: Fortran is suited for numeric computation and scientific computing. It was originally developed by I...
Q: 6. An undirected graph G =(V, E) is shown in the figure below. Find the (i) number of vertices, (ii)...
A: Below is the complete explanation about various graph properties like Vertices Edges Degree of vert...
Q: 2a) Briefly describe corporate espionage. 2b) Differentiate between a forensic image and a logical ...
A: 2 a) Corporate Espionage: corporate espionage is the practice of stealing and unauthorized revealing...
Q: Vhy do we utilise MATLAB to solve difficulties in Computational Geometry?
A: Answer will be in next step
Q: a. List all symbols and their probabilities b. Find the Huffman tree and codeword for e c. List the ...
A:
Q: The function f(n)= n4.3+ n° log n + 10 is a. O(log n) O b.O(n5) O. o(n5 log n) O d. 0(n2.5) e. O(n l...
A: Here in this question we have given a function and we have asked to find complexity in term of big o...
Q: 1. Consider the following P = {P1, P2, P3, P4, P5) R = (R1, R2, R3, R4) E = (P3>R1, P2→R2, R4 P4, R2...
A: the answer is given below:-
Q: What are the advantages of using a compiled language over an interpreted language? In which circumst...
A: Compilers translate compiled languages into machine code that can be executed by the processor. As a...
Q: w an example of the Authorization action to review the Field and Also write s reate a new Authorizat...
A: The answer as follows
Q: Design and implement a Java program that prompts the user to enter 2 numbers of type int then displa...
A: ANSWER--- import java.util.*;public class Main{ public static void main(String[] args) { Scanner...
Q: Write a program that will prompt the user to enter a sentence (string data), read that entire senten...
A: Since the programming language is not mentioned I have used the C++ programming language. Requiremen...
Q: Digital evidence of a criminal conspiracy could be found (choose all that apply): Within an ap...
A: Answer: The correct option is (b) => On social media
Q: "Simon Says" is a memory game where "Simon" outputs a sequence of 10 characters (R, G, B, Y) and the...
A: Simon Says is a memory game where Simon outputs a sequence of 10 characters (R, G, B, Y) and the use...
Q: What is the bare minimum in terms of processors and RAM necessary for the ATA Gateway to function pr...
A: Microsoft Advanced Threat Analytics (ATA) is an application to protect the organization against diff...
Q: What are the advantages and disadvantages of the interview elicitation approach?
A: The approaches that are used for producing or generating a reaction from the other person are termed...
Q: in c++. Write a function that returns the sum of all the elements in a specified column in a mat...
A: Here is the Program:
Q: Q2:Write a MIPS assembly program that computes an employee's monthly salary. The program should take...
A: Given, Write a MIPS assembly program that computes an employee's monthly salary. The program should...
Q: Using MIPS assembly language, please code the following: Please use if statements in the code -pri...
A: Here is the Code .data inputA: .asciiz "Input value of variable a\n" inputB: .ascii...
Q: Write a method that calculates and prints both the maximum humidity and maximum temperature values f...
A: the answer is given below:-
Q: plain why you think ion should return "i
A: The python description is shown as,
Q: Try to find the most probable speed from the velocities of ten particles(in m/s) which are entered b...
A: #include<bits/stdc++.h> using namespace std; int main() { float speeds[10]; float most_probabl...
Q: 2. A singer voice is sampled for 4 second by an 8-bit ADC at a sampling frequency of 10 kHz. The sam...
A: The highest frequency range possible: Unesco Audio Mandate To promote recommended 48 kHz as with mos...
Q: How many comparisons would be made for each of the following 3 algorithms if the input is an unsorte...
A: Your answer is given below.
Q: Consider the following AND/OR graph to describe a simple automobile diagnostic system using IF-THEN ...
A:
Q: Assume that a computer system is having 4 page frames for holding process pages in the main memory. ...
A: In FIFO algorithm, frame which has been occupied first will be first choosen for replacement. In op...
Q: design an 8 bit common bus based circuit that supports addition of two 8 bit values. There are two d...
A: The outputs of all the registers except the OUTR (output register) are connected to the common bus. ...
Q: C++ programming Question. Try to find the average speed from the velocities of ten particles(in m/s)...
A: Try to find the average speed from the velocities of ten particles(in m/s) which are taken from the ...
Q: Is Public Outrage Fueling the Big Data Market? What are the two advantages and two disadvantages of ...
A: The solution to the given problem is below.
Q: Write a Java program to calculate the RMS velocity of oxygen molecule at 27deg C.
A: Required:- Write a Java program to calculate the RMS velocity of an oxygen molecule at 27deg C. Appr...
Q: Define a struct menuItemType with two components: menuItem of type string and menuPrice of type doub...
A: The answer is given below:-
Q: Create a java program that generates elements (randomly from 10 – 75) of a 2-dimen (5x5) using the R...
A:
Q: occurrences
A: I will let you know it in some time
Q: With each program provide its code and output by using Mars4_5 (MIPS): 1. Printing a Text/String(e.g...
A: According to company guidelines we are restricted to answer first 3 parts of an interlinked question...
Q: Exercise-4: S- BAB | AВА| В |€ B→ 00 | ɛ
A: Converted from context-free grammar to Chomsky's normal form
Q: Please covert the below output int python program
A: MATLAB CODE: function [nbrnod, nodes] = readNodes() nbrnod = input('Enter number of nodes: '); ...
Q: create a table name flovors with columns itemcode (Int), ItemDesc (varchar), and Price (float)
A: We need to write a SQL query to create a table named "flovors" with columns as follows- itemCode (...
Q: What are the various data types that are utilised in C?
A: Ans: The various data types that are utilised in C is : char: It is used to store the single charact...
Q: PLEASE READ THE FULL QUESTION. This exercise uses your programming environment to enhance the Web ...
A: PLEASE READ THE FULL QUESTION. This exercise uses your programming environment to enhance the Web s...
Q: In which gateways do port mirroring and deep packet inspection are used?
A: The ATA Gateway is constructed on a dedicated server that monitors traffic from domain controllers t...
In Java please,
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images
- 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 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 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. Assume also the last names and first names do not contain whitespaces. 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…
- 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 the-zen-of-python.txt and writes each line to UpdatedZen.txt, a new text file. It capitalizes the first character of each line and adds a period to the end of each line before writing it back to updatedzen.txt. the-zen-of-python.txt file contents: beautiful is better than ugly explicit is better than implicit simple is better than complex complex is better than complicated flat is better than nested sparse is better than dense readability counts special cases aren't special enough to break the rules although practicality beats purity errors should never pass silently unless explicitly silenced in the face of ambiguity, refuse the temptation to guess there should be one-- and preferably only one --obvious way to do it although that way may not be obvious at first unless you're Dutch now is better than never although never is often better than *right* now if the implementation is hard to explain, it's a bad idea if the implementation is easy to explain, it…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.
- consider a program that reads data from a text file called: "klingon-english.txt" (shown below). How would one construct such a program with the following conditions: 1. Ask the user to choose a Klingon consonant they want to practice with. Ask again if the user’s answer is not a valid Klingon consonant, until the user enters a valid consonant. 2. Find a Klingon word that starts with the chosen consonant (the text file contains only one word that starts with any given consonant, so you don’t need to use the random library) 3. Ask the user to translate the chosen word into Klingon 4. Print "Correct" if the user’s answer is correct 5. Print "Sorry, you’re wrong!" if the user’s answer is wrong 6. Print The correct answer is ... if all three user’s answers are wrong You will also factor in this version: 7. If the answer is incorrect, show the first hint: the first and last characters of the correct Klingon word. When showing a hint, replace all other characters with a star (*) 8. If the…After every word on a line is spellchecked, it should be written to an output file called checked.txt. The arrangement of words on lines should be the same in the document and in checked.txt. The difference between the document and checked.txt is that in checked.txt each word is in lowercase and there is no punctuation. Also, some words might be changed by the spellcheck process. For example, suppose the document contains the following: The Hunter Moon waxed round in the night sky, and put to flight all the lesser stars. But low in the South one star shone red. Then checked.txt will contain: the hunter moon waxed round in the night sky and put to flight all the lesser stars but low in the south one star shone red (In a real spellchecker, the output will be in the same case as the original, and all punctuation will be retained. For simplicity, we will not worry about case and punctuation.) How to Process Words Which Are Not in the Dictionary The spellcheck method also needs to handle…Write a program that receives a filename as user input. The file is structured as multiple lines containing numbers separated by a single space.For example, this would be an acceptable file: 1 2 3 4 5 6 7 2 Your program should open this file and: print all its contents; write the median of all numbers to a new file called result.txt. IMPORTANT NOTES: the median is the element in the middle when you sort the values; the median of values (2, 1, 3) is 2, because when you sort them, you get 1, 2, 3, and 2 is the value in the middle. you can assume there will be no empty lines; there might be any arbitrary number lines in the file; there might be any arbitrary number of elements in a single line; you can assume there will always be an odd number of elements. Example 1: If input is: file1.txt and the contents of file1.txt are: 1 2 2 you should first print the content, and then write 2 to result.txt. Example 2: If input is: file2.txt and the contents of file2.txt are: 1 2 3 4 5 1 7 you…
- Suppose you have a file Monster.txt that lists the Monster Energy Drinks the company offers, on one line and the price for a case of 24, with the customer ratings on a scale of 1-5 on the second line. The following shows the first few lines of the file: Monster Energy Nitro Super Dry Maximum Strength Drink 39.99 4.5 Monster Energy Ultra Red, Sugar Free Energy Drink 39.99 5 Red Bull Energy Drink, Zero 92.23 4.5 Red Bull Energy Drink, Coconut Berry 41.18 5 Monster Energy Juice, Pipeline Punch 34.98 5 Red Bull Energy Drink, Coconut Berry 41.18 5 The first line means the drink name is: Monster Energy Nitro Super Dry Maximum Strength and the second line means that a case of 24 cost $39.99 and it was rated 4.5/5. NOTE: WE DO NOT KNOW HOW MANY LINES THERE ARE IN THE FILE. Write the C++ program (with comments) that reads the data from the file, lists only those drinks rated 5 stars, and indicates if the five star drink comes with a free six pack or not.The customer gets a free six…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…