Write a java program that read unknown number of records from the file attached below named "Employee.txt" and print on screen the name of the employee followed by his gross amount paid according to the following table. Working hours weekly <-40 Gross Gross working hours rate >40 Gross 40 rate + (working hours-40 )" 1.5 *rate Note: the file "Employee.txt" that contain unknown number of records, each record contains the name of the employee followed by working hours (int) and the rate(double). Employee.txt ALI 45 2.3 HUDA 36 2.5 JASSIM 60 3.5 JAFFER 50 3 FATIMA 42 3.5 MAHMOOD 32 2.8
Q: Write a Java program that prompts the user to enter a grade for a student. The program displays…
A: Program import java.util.Scanner; public class Main{ public static void main(String args[]) {…
Q: Write a program that reads students’ names followed by their test scores. The program should output…
A:
Q: Write a java program that read unknown number of records from the file shown below named “…
A: Required: Write a java program that read unknown number of records from the file shown below named “…
Q: Type the data below in Excel and save the file as CSv. A В C D 1 Daphne Bridgerton 84 85 100 2 Simon…
A: Code: import java.io.*;import java.util.Scanner;publicclass Demo{public static void main(String[]…
Q: Write a simple java program that accepts as input: a student’s name, ID number, Major, GPA, and…
A: Input from User: Student’s name ID number Major GPA Bi-weekly paycheck Output to Console: All the…
Q: Create a java program that calculates the average test scores. Given the student’s name and five…
A: I have given an answer in step 2.
Q: PROBLEM: You are to write a program in Java that takes in as input a string message and an integer.…
A: File name: “TestClass.java” import java.util.Scanner; public class TestClass { public static void…
Q: Modify java code for Hw5 (stock,each csv file has headings: Date,Open,High,Low,Close, Adj…
A: import java.util.*; import java.io.*; public class StockData {…
Q: Add to the below Java program so that the line "John, 25" appears on the screen before any input…
A: Create a package "classProg". Within this package, create the classes "Client", and "Main" in its…
Q: Write a java program called ImperialMetric that displays a conversion table for feet and inches to…
A: Program: //import Scannerimport java.util.Scanner;//created class ImperialMetricpublic class…
Q: For Java Write an application that prompts the user for a password that contains at least two…
A: Java Program: /* // Java Program to check the validity of a Password */import java.util.Scanner;…
Q: e for an unknown number of Cars. The file uses a comma-separated file format, as the sample below.…
A: CarList.txt…
Q: Write a java program: Using a single print() method [i.e., System.out.print()], create output of…
A: public class Main{ public static void main(String[] args) { System.out.print("The Irish Colonel"+…
Q: The Body Mass Index is the body mass in kilogram divided by the square of body height in meters.…
A: import java.io.BufferedReader;import java.io.File;import java.io.FileReader;import…
Q: Write a complete Java program with comments in main and in each method. Create your own names for…
A: import java.lang.*;import java.io.*; class main{ static ArrayList<String> exam = new…
Q: debug my program? it's in Java. At line 108, I get the error “The field Person.age is not visible”.…
A: Error found while executing your program: - Explanation: - After executing the given program the…
Q: In java, create a program that uses printf to format currency in the proper form. The value in…
A: According to the information given:- We have to define the program that uses printf to format…
Q: Test Case 1 Enter length: \n 5 ENTER Enter width: \n 10 ENTER You entered: 5.0, 10.0, and 50.0 \n…
A: Here I have created all the functions that were given in the question. In the method getLength() and…
Q: Make a file named Rectangle.java, in that file create a following methods: // Ask the user for the…
A:
Q: Create a Java program that allows the user to add up any number of non-zero fractions. The program…
A: Program: //Main.java import java.util.Scanner; public class Main { public static void…
Q: I have been stuck with the given lab below. Please help me to solve it in JAVA. 10.24 LAB: Car value…
A: Below I have provided Java Programming. Also, I have attached the screenshot of the code and output…
Q: Write a program in Java that reads a stream of integers from a file and prints to the screen the…
A: Please find the answer below :
Q: Write a Java program to read an external file like feedback.txt, parse the victim(ex.…
A: import java.io.*;import java.io.BufferedReader;import java.io.FileReader;import java.io.IOException;…
Q: Write a Java program in a file called Box.java that outputs a box of stars (*) on the screen.…
A: import java.util.Scanner;class Test147 { public static void main(String args[]) { Scanner sc = new…
Q: Write a program to print the sum of two linear equations by creating a class named as…
A: The linear equations are calculated by using class. The default constructor is defined as empty. The…
Q: Write a java program that read from a file ("Students.txt") unknown number of student information.…
A: Algorithm : Step 1 : declare and initialize variables. Step 2 : open the file and store in…
Q: The Body Mass Index is the body mass in kilogram divided by the square of body height in meters.…
A: import java.io.File;import java.io.FileNotFoundException;import java.util.Scanner; public class…
Q: Write a program that reads students’ names followed by their test scores. The program should output…
A: Required: Write a program that reads students’ names followed by their test scores. The program…
Q: Create a file named Validate.java , in that file create a method with the following signature:…
A: Java Code for above : import java.util.Scanner; public class Validate { //required function…
Q: Question 2: Write a java program that prompt the user for a string telephone number of the form…
A: According to the Question below the solution: Output:
Q: every line and it splits the line by comm
A: To split the string by space or comma, pass a following regular expression to the split() method -…
Q: Write a java program called ImperialMetric that displays a conversion table for feet and inches to…
A: import java.util.Scanner; public class ImperialMetric{ public static void main(String args[]){…
Q: Write a Java program correctly that generates a report of proof of vaccination against COVID-19 for…
A: We need to write Java program for given specifications.
Q: Write a java program that asks the user to enter the number of laps that they have run around a…
A: Answer: Java Source Code: import java.util.Scanner; public class Main{ public static double…
Q: Write a method which can read and parse a file containing information about weekly feedback from…
A: Actually, program is a executable software that runs on a computer.
Q: An English teacher wants to find assessment mark of all the students in his course. Write a java…
A: As mentioned all the classes are written inside StudentAbstract class only and you can save this…
Q: Write a complete Java program with comments in main and in each method. Create your own names for…
A: import java.util.*;import java.lang.*;import java.io.*; class main{ static ArrayList<String>…
Q: Given main(), complete the Car class (in file Car.java) with methods to set and get the purchase…
A: According to given problem,private variables need to be declared which only can be accessed within…
Q: write a python code complete questions 3 and 4 from the photo using the following code:
A: Required Python code provided(part 3 and part 4) with screenshot of sample output
Q: (B) Write Java Application to generate a digital signature for "Your Name in English followed by…
A: Digital Signature DefinitionDigital Signature is a technique for ensuring: Integrity: the message…
Q: Write a program that reads students’ names followed by their test scores. The program should output…
A: The program will take input number to take that amount of student’s information. Then we have…
Q: Write a java program that generates five questions where two numbers were subtracted and, after a…
A: import java.util.Scanner;import java.util.Random;public class SubtractionLoop{ public static void…
Q: Write a Java program to generate the two single digit random numbers (0 to 9), and then request the…
A: Math.random() returns a double type pseudo-random number, greater than or equal to zero and less…
Q: I need to write a JAVA program that will allow me to insert "movies.csv" and output "Wonders of the…
A: Java Programming code for the given problem is given in step 2
Q: Write a java program called ImperialMetric that displays a conversion table for feet and inches to…
A: PROGRAM: //Head file import java.util.*; //Defining the class public class ImperialMetric{…
Q: Given main(), complete the car class (in file Car.java) with methods to set and get the purchase…
A: 1.Start 2.In Car.java file declare variables modelYear,purchasePrice,currentValue. 3.Define methods…
Q: Program 2Write a Java program that prompts the user to enter a password that matches a specific…
A: The following is the Java Source Code according to the requirements mentioned in the question.…
Q: A store owner keeps a record of daily cash transactions in a text file. Each line contains three…
A: Given
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
- 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):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…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 javas coding please Write a program that opens the salesdat.txt file and processes it contents. The program should display the following per store: The total sales for each week. (Should print 5 values - one for each week). The average daily sales for each week. (Should print 5 values - one for each week). The total sales for all the weeks. (Should print 1 value) The average weekly sales. (Should print 1 value) The week with the highest amount in sales. (Should print 1 week #) The week with the lowest amount in sales. (Should print 1 week #) All Values (Total Sales, Average Daily Sales for Each Week, Total Sales for all Weeks, Average Weekly Sales, Highest Amount in Sales, Lowest Amount in Sales) The file contains the dollars amount of sales that a retail store made each day for a number of weeks. Each line in the file contains thirty five numbers, which are sales numbers for five weeks. The number are separated by space. Each line in the file represents a separate store.…
- 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…Write a C# program and name it FindPatientRecords that prompts the user for an Patient ID # (p#), reads records from Patients.txt, and displays data in the p#, PATIENT_NAME and BALANCE data records for the specified Patient ID # record. The Patients.txt file has the following three data recorded for each patient: p#, PATIENT_NAME, BALANCE. If the record does not exist, display the following error message: No records found for p# using System;using static System.Console;using System.IO;class FindPatientRecords{ static void Main() { // code here }}Trainers at Tom's Athletic Club are encouraged to enroll new members. Write an application that extracts the names of Trainers and groups them based on the number of new members each trainer has enrolled this year. Output is the number of trainers who have enrolled 0 to 5 members, 6 to 12 members, 13 to 20 members, and more than 20 members. Give their names as well as the number of members they have enrolled. Use this list of trainers: {"Jake Butt", "Ziggy Hood", "Hroniss Grasu", "Vontaze Burfict", "Jaquiski Tartt","Ndamukong Suh", "Thurston Armbrister", "Captain Munnerlyn", "Barkevious Mingo", "Ha Ha Clinton-Dix","Mister Alexander", "BenJarvus Green-Ellis", "Richie Incognito", "Champ Bailey", "Captain Munnerlyn","Mike Kafka", "Ras-I Dowling", "Bryan Anger", "D'Brickashaw Ferguson", "Rex Hadnot","Sage Rosenfels", "Robert Griffin III", "Sav Rocca", "Chad Ochocinco", "Brett Rypien"} Use this list of the number of members each trainer has enrolled: {3, 9, 13, 26, 23,19, 15, 13, 17,…
- Create a program that will enter five student records with three quizzes. The program will generate an output that will display all the student records with their grades and remarks. Grades = Average grade of the three quizzes! 75 is the passing mark. Enter 5Student(s) Record Student 1 ID: 101 Name : Juan De la Cruz Enter 3 quizeIN C++ VISUAL STUDIO Create two classes one to read data from file, and the other to write data into a file. The data can be about employees having information about employee name, id and designation. You must create a class for employee. There is a total of 3 classes in your program. In the second class, which is about file writing, you have to write data about 10 employees in file. You can get data from user. In reading class, you have to read information about a specific employee whose id is given by user. Finally write a function to show data about employees whose designation is “manager”.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…SEE MORE QUESTIONS