dent data that consists of a Student number, First name, Surname, and average assignment mark. Depending on whether the student’s average assignment mark is at least 50, output each record either to a file of students who passed (call it pass.txt) or studen
Q: Write a program that allows the user to create and maintain a list of contacts in a file named…
A: Answer: I have done code in C++ . and also I have attached code as well as code screenshot.
Q: Write a java program that will read a text file that displays a list of the largest US Cities and…
A: import java.io.*; import java.util.*; public class Tester{ public static void main(String[] args)…
Q: Write a program that allows the user to create and maintain a list of contacts in a file contact…
A: Code: #include <iostream>#include <fstream> using namespace std; void printList() {…
Q: Write a program that allows the user to create and maintain a list of contacts in a file named…
A: Actually, program is an executable software that runs on a computer.
Q: Once the modelling has been run, the user should have the option to rerun it. Each time it is run,…
A: One activates some authority: Unless there are connections, I've learned that this just —until…
Q: Write a program that replaces each line of a file with its reverse. For example, if you run java…
A: Program description: The main objective of the Reverse.java file is to read a java file,…
Q: Create a program that calculates the average test scores. Given the student’s name and five test…
A: Problem Statement: Create a program that calculates the average test scores. The data is input from…
Q: In a file called MarchSundays.java, write a program satisfying these specs: The program asks the…
A: Program code #1:
Q: how to write a program in java called FileMaker.java that creates a small text file. in BlueJ…
A: import java.io.*;import java.util.*;class FileMaker { public static void main(String args[]) throws…
Q: Write a program to read and store four student’s car number and their distances, sort them into an…
A: Answer: For this problem, a class Student with instance variables id, car number and distance is…
Q: Consider the following dataset that shows total runs of a set of players in different cricket…
A: Algorithm: Start Initialize the names of cricket players in a 1d array named 'names' Initialize…
Q: Write a program that enters data of 10 bank accounts and write on a file Account.txt file. Account…
A: CODE : #include<stdio.h> #include<string.h> //Structure for Bank Account struct…
Q: Write a java application that allows a user to input customer records (ID number, first & last…
A: Input the number of customers Then use a loop to iterate for the input and use FileWriter for…
Q: Write a program that will read the file text.txt which is provided and the encrypted message in…
A: Program code: //import the required packages import java.util.*; import java.io.*; //define a…
Q: 3. Write a java program that will parse the 13th digits Student ID only from a file. Student ID…
A: Below is the complete solution with sample Program and Output Images in detail for the given…
Q: You have a file called (Trapezium.txt). The file contains three lines. Each line contains 3 sides…
A: Java code: import java.io.File; import java.util.Scanner; public class Main { public static void…
Q: Assume that you will be given a *.txt file, which in the same format of RandSource.txt(attached).…
A: A C++ program to generate random numbers between given range is provided below;//Declare necessary…
Q: Write a program that reads the contents of a file named text.txt and determines the following The…
A: #include <iostream> #include <fstream> using namespace std; int main() { ifstream…
Q: You have to create a file having name Math.cpp and implement functions of the following prototypes…
A: Math.cpp #include<iostream> using namespace std; void sum(int a, int b) { cout<<"Sum…
Q: to input names of two persons (preferably of different genders) and output their resulting…
A: The task here includes various operations such as arithmetic operation, logical operation, etc.…
Q: /* * Force each of the follow error types to occur * and catch them. Log a message describing…
A: console.log('PROGRAM START'); try { JSON.parse(`{name: 'John', age: 18}`); } catch(error) {…
Q: Suppose you are given a text file named "Results.txt", in which each line contains a course code,…
A: import java.util.Scanner;import java.io.*; public class Student123{ public static void main(String…
Q: Create a program that reads a text file containing a 15 x 15 grid which represents a block of human…
A: Java Source Code: import java.util.ArrayList;import java.io.FileReader;import…
Q: Write a program that reads in two hexadecimal numbers from a file, hex.txt, and prints out the sum…
A: #include<iostream>#include <fstream>using namespace std;bool…
Q: I have a text file that have a list of employee's Id and name correspond to it. All the IDs are…
A: According to the asked question, the solution is given below with a proper explanation.
Q: In a file called RemoveVowels.java, write a program that: Asks the user to enter a word of text.…
A: A java program to print the word with all vowels removed is given below;Program:File name:…
Q: Write a program that reads a text file containing synonyms for a word and outputs synonyms that…
A: Answer :
Q: Write a program, BytePe1.java, that reads a binary file ClassList.dat, calculating the grades and…
A: Solution:-- 1)The given question has required for the solution to be provided in the Java…
Q: Write a program to calculate the average (format to 2 decimal points) of a set of data, also find…
A: Program description : The java class, Exercise.java prompts the user to enter the name of the input…
Q: Write a program that reads a file consisting of students' test scores in the range 0-200. It should…
A: Store the given scores in a text file and open a file in reading mode using the ifstream object.…
Q: Your client owns a bookstore, and they need to process an input file containing the titles of all…
A: please read the bold lines and comments in code carefully. change the path according to your…
Q: Hey, this is my code below and I cannot seem to get the import.java.io.*; to create and save…
A: I have checked the code and run it accordingly. The code for StaffManager.java is as follows:…
Q: Computer Science For each of the code snippet given below, identify the error and then write code…
A: Errors in the snippet: * in the code they haven't specified the buff_size * they haven't used the…
Q: Write a program for the following problem. You're given a file that contains a collection of IDs and…
A: ANSWER:-
Q: Write a program that allows the user to create and maintain a list of contacts in a file named…
A: Actually, program is an executable software that runs on a computer.
Q: In this assignment, you will create a Java program to read a text file and count the frequency of…
A:
Q: The name should be able to be sorted last name first. Profession should be able to be sorted…
A: q: The name should be able to be sorted last name first. Profession should be able to be sorted…
Q: Write a program that reads in two hexadecimal numbers from a file, hex.txt, and prints out the sum…
A:
Q: Write a program that prompts for a file name, then opens that file and reads through the file…
A: We have to program a prompt file name, open that file, read through the file. Python Program def…
Q: Write a program that reads in from a file a starting month name, an ending month name, and then the…
A: GIVEN:
Q: For an e-Shop, there is a Customer whose data is stored in a file ‘Customers.txt’, where ID, Name,…
A: Program approach:- Function to pay. Accessing each row. Checking for required customer-id. Checking…
Q: Write a program that receives a filename as user input. The file is structured as multiple lines…
A: Note: - As the programming language is not mentioned to write the program so I am using python to…
Q: Write a program in a single file that: Main: Creates 10 random doubles, all between 1 and 11, Calls…
A: Create an object for a file. Declare an array to store the random numbers of type double. Take a…
Q: Suppose you have a file Monster.txt that lists the Monster Energy Drinks the company offers, on one…
A: Code: #include <iostream>#include <fstream>#include <string.h>#include…
Q: Write a program that replaces each line of a file with its reverse. For example, if you run java…
A: JAVA program that replaces each line of file with its reverse import java.util.*;import…
Q: Write a C++ program for a company that owns several orchards, data is provided in a text file called…
A: The C++ program and necessary comments are provided in the program Input text file: Sample output…
Write a Java application that allows a user to enter student data that consists of a Student number, First name, Surname, and average assignment mark. Depending on whether the student’s average assignment mark is at least 50, output each record either to a file of students who passed (call it pass.txt) or students qualifying for supplementary (call it supp.txt).
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Write a JAVA 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 java program that read unknown number of records from the file shown below named “ people.txt ” and print on screen the name of the person followed by his weight class according to the following table .The history teacher at your school needs help in grading a True/False test. The students’ IDs and test answers are stored in a file. The first entry in the file contains answers to the test in the form:TFFTFFTTTTFFTFTFTFTTEvery other entry in the file is the student ID, followed by a blank, followed by the student’s responses. For example, the entry:ABC54301 TFTFTFTT TFTFTFFTTFTindicates that the student ID is ABC54301 and the answer to question 1 is True, the answer to question 2 is False, and so on. This student did not answer question 9. The exam has 20 questions, and the class has more than 150 students. Each correct answer is awarded two points, each wrong answer gets one point deducted, and no answer gets zero points. 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, followed by the test grade. Assume the following grade scale:90%–100%, A; 80%–89.99%, B; 70%–79.99%, C; 60%–69.99%, D; and…
- Create a program to input names of two persons (preferably of different genders) and output their resulting relationship based on the FLAMES method: F – Friends L – Lovers A – Adversaries M – Married E – Enemies S – Sweethearts The FLAMES Method: Compare the two input names and count the letters in the first input name that matches in the second name and vice versa. Determine the corresponding letter of the resulting number in the word FLAMES. Add the resulting number from both names and follow step 2. Filename: flames.cWrite a java program in a single file that: Main: Creates 10 random doubles, all between 1 and 11, Calls a method that writes 10 random doubles to a text file, one number per line. Calls a method that reads the text file and displays all the doubles and their sum accurate to two decimal places.Create a simple java program that reads all the content in a .txt file, the user will enter the filename to be opened. In this case, the file will contain multiple lines of student details with each line containing a single student detail. Your task is to then create a student class that models the firstname, lastname, year of birth and gender of every student. The student class should further be able to assign every student created with a student number using a class variable[format is 2022000X, X is a number such as 1,2..] and be able to calculate the age of each student. Within the driver class add all the students read from file into an ArrayList and then print the first and last student in the list. You are additionally expected to deal with most common exceptions
- Ask the user for a filename. Display the oldest car for every manufacturer from that file. If two cars have the same year, compare based on the VIN. i am having trouble getting my code to work this is my code: import java.util.*;import java.io.*;class Car {String manufacturer;String model;int year;String vin;public Car(String manufacturer, String model, int year, String vin) {super();this.manufacturer = manufacturer;this.model = model;this.year = year;this.vin = vin;}public String getManufacturer() {return manufacturer;}public void setManufacturer(String manufacturer) {this.manufacturer = manufacturer;}public String getModel() {return model;}public void setModel(String model) {this.model = model;}public int getYear() {return year;}public void setYear(int year) {this.year = year;}public String getVin() {return vin;}public void setVin(String vin) {this.vin = vin;}}class CarComparator implements Comparator < Car > {@Overridepublic int compare(Car car1, Car car2) {int yearCompare =…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"), you will be writing a paython program for a company to load saved sales data from a file and view certain information about each customer. First, create a file in your project named sales.txt and add the following data: Steve123 11/23/21 50.41 Customer1 11/23/21 500 JanetG 1/2/22 25.37 Customer1 2/15/22 250 Steve123 3/17/22 18.75 UserName 4/12/22 2.50 FrankF 5/17/22 30 FrankF 6/10/22 42.50 JanetG 12/15/22 25 FrankF 1/23/23 50.15 Each line contains information about a single sale: The username of the customer, the date of the sale, and the amount of the sale. Aside from main, your program should include the following two functions: load_data: Creates a dictionary in which every key is a customer name, and every value is a list containing the amount of each of their sales. Returns the dictionary. print_customer_info: Accepts the dictionary and a customer name as parameters. Prints out the following information about the given customer in a nicely formatted way: the number of sales they…
- Implement a program that identifies a person based on their DNA. $ python3 dna.py databases/large.csv sequences/5.txt Lavender [https://drive.google.com/drive/folders/1uEjrE0VNWG5HZYcmsMD8ZJUWgeW2whK6?usp=sharing]Download the file that you're going to use for this problem. Extract this file and you will see a directory of sample databases and a directory of sample sequences. Specification In a file called dna.py, implement a program that identifies to whom a sequence of DNA belongs. The program should require as its command-line argument that name of a CSV file containing the STR counts for a list of individuals and should require as its second command-line argument the name of a text file containing the DNA sequence to identify. If your program is executed with the incorrect number of command-line arguments, your program should print an error message of your choice. If the correct number of arguments are provided, you may assume that the first argument is indeed a filename of a…In JAVA, write a program in a single file that: Main: Creates 10 random doubles, all between 1 and 11, Calls a method that writes 10 random doubles to a text file, one number per line. Calls a method that reads the text file and displays all the doubles and their sum accurate to two decimal places. SAMPLE OUTPUT 10.62691196041722.7377903389094555.4279257388651281.37420580654725091.18587002624988364.1803912764852284.9109699989306755.7108582343439587.7908570073730523.1806714736219543 The total is 47.13Create a program that reads a text file containing a 15 x 15 grid which represents a block of human cells and find the number of blobs of cancerous cells in the grid. The cells are depicted with a plus sign + if they are healthy, and a minus sign - if they are cancerous. Use the Flood Fill algorithm to determine the number of blobs. The program must be in Java language.