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
- Binus’s Used Cars, Inc. employs several salespeople. Mr. Robert, the owner of the company, has provided a file that contains sales records for each salesperson for the past month. Each record in the file contains the following two fields: The salesperson’s ID number, as an integer The amount of a sale, as a real number The records are already sorted by salesperson ID. Brewster wants you to design a program that prints a sales report. The report should show each salesperson’s sales and the total sales for that salesperson. The report should also show the total sales for all salespeople for the month. Here is an example of how the sales report should appear:Java Programing Joyce Farrell 13-8 Create an application named StudentsStanding.java that allows you to enter student data that consists of an ID number, first name, last name, and grade point average. Have the program accept input until ZZZ is entered for the ID number. Depending on whether the student’s grade point average is at least 2.0, output each record either to a file of students in good standing (StudentsGoodStanding.txt) or those on academic probation (StudentsAcademicProbation.txt). Create an application named StudentsStanding2.java that displays each record in the two files created in the StudentsStanding application. Display a heading to introduce the list produced from each file. For each record, display the ID number, first name, last name, grade point average, and the amount by which the grade point average exceeds or falls short of the 2.0 cutoff. For example, the output should be formatted as follows (note that the student info may vary): Probationary Standing…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…
- 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…A MyPetStore sells many pets and their accessories. As new pets are added to the MyPetStore, theirinformation is entered into a flat text file. Each month, the manager requests a listing of all pets sorted bytheir price. You must write a program to produce a report of MyPetStore and their types sorted by their pricesfrom the data in the flat text file. Below is a description of the information on the text file:• The first entry is the number of animals on the file (numeric) •The fields below repeat for each animal:o Pet name (String)o Birthdate (java.time.LocalDate)o Price (numeric)o Species Type (String)o Special feature (boolean or String)The animals sold by the MyPetStore are of six types: Dogs & Cats, Reptiles, Birds, Rabbits & SmallAnimals.For Dogs & Cats, the special feature field on the flat file is the breed of the animal (String).For Reptiles, the special feature field is the blood type (warm vs cold-blooded, String).For Birds, the special feature field is the…Sometimes data is not always in the format we need it to be in. In this hypothetical situation, you are writing a program to load phone numbers into a database from user entered survey data. The 10 digit phone number will be stored in the database as an integer (e.g. 1234567890), however the user may enter the phone number in any format (e.g. 123-456-7890). You will write a program that creates a new string from the user entered number consisting of only the digits so it should have the same structure as word_quiz.py in the Unit 5 lecture slides. Below are two examples of how your program should run with different inputs: Enter phone number: (530) 555-1212 Numbers: 5305551212 Enter phone number: 916-123-4567 Numbers: 9161234567 The last line of your program should be: print("Numbers:", phoneNum)
- A Company wants to produce a product orders report from its product orders file. Each record on the file contains the product number of the item ordered, the product description, the number of units ordered, the retail price per unit, the freight charges per unit, and the packaging costs per unit. Your algorithm is to read the product orders file, calculate the total amount due for each product ordered and print these details on the product orders report. The amount due for each product is calculated as the product of the number of units ordered and the retail price of the unit. A discount of 10% is allowed on the amount due for all orders over GHC100.00. The freight charges and packaging costs per unit must be added to this resulting value to determine the total amount due. Answer should be in pseudo codeString data type is not allowed you can make use of CString instead (char arrays with null termination). Q1. Create an Input File with the following information regarding to inventory: Item_Id Price Quantity Availability Add atleast 10 records in input file. Where item_id will be of type int , price will be of type double , quantity will be of type int and Availability will be of type char representing the status y for yes the product is available and n for not available. Write a menu driven C++ program to perform the following four tasks in a single file, if user press option 1 the task 1 get solved and so on: 1. Display the Item_Id of the products which are not available in stock on screen. 2. Copy all the available products data in a separate file. 3. Read the original input file and update the price of each item by 10 percent increase in the original price and save the complete information in separate file. 4. Try to save the information processed in part 3 in the original…java program that Creates an INDEXCEPTION value of the unique vowels and unique consonants that the name that was given to you can create.Input: A string of the name that was GIVEN TO YOU. CASE SENSITIVE.Process1: For every unique vowel of a name, you need to get the first index of that vowel from the original string. 2: For each vowel index you get from step 1, you will get the unique consonant from that position. if the index is out of scope of the consonant array, ignore that vowel index. 3: For each unique consonant that you get from step 2, you need to get the first index of that consonant from the original string. 4: Get the value of indexception by adding all index you get from step 3.OutputTO BE DISPLAYED- 2 lists that consists of unique vowels and unique consonants- The vowel, the vowel index, the consonant, the consonant indexFINAL OUTPUT- The total indexception value of the name that was given to you.
- In Java Write a program that reads the student information from a tab separated values (tsv) file and creates a text file that contains student information together with 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: A: 90 =< x B: 80 =< x < 90 C: 70 =< x < 80 D: 60 =< x < 70 F: x < 60 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 values with a tab character. Ex: If the input of the program is: StudentInfo.tsv and the contents of StudentInfo.tsv are: Barrett Edan 70 45 59 Bradshaw Reagan 96 97 88 Charlton Caius 73 94 80 Mayo Tyrese 88 61 36 Stern Brenda 90 86 45…DescriptionWrite a program to compute average grades for a course. The course records are in a single file and are organized according to the following format: each line contains a student's first name, then one space, then the student's last name, then one space, then some number of quiz scores that, if they exist, are separated by one space. Each student will have zero to ten scores, and each score is an integer not greater than 100. Your program will read data from this file and write its output to a second file. The date in the output file will be nearly the same as the data in the input file except that you will print the names as last-name, first-name; each quiz score, and there will be one additional number at the end of each line:the average of the student's ten quiz scores.Both files are parameters. You can access the name of the input file with argv[1]. and the name of the output file with argv[2].The output file must be formatted as described below: 1. First and last names…Assume that you have a file that contains the weekly average prices for a gallon of gas in the United States for the past 3 years. The data is stored in the file as records. Each record contains the average price of a gallon of gas on a specific date. Each record contains the following fields: The month, stored as an integer. January = 1, February = 2, etc. The day of the month, stored as an integer. The year, stored as an integer. The average price of a gallon of gas on the specified date, stored as a real number, rounded to 3 decimal places. Design a program that reads the file and displays the lowest and highest gas prices, as well as the dates for those prices.