You have a file called (Trapezium.txt). The file contains three lines. Each line contains 3 sides value represent the width, length and height of rectangle. Write a Java program that read all the records from file and print the area result for each trapezium line in output screen according to the following rules. Area = % * (width + length) X height Sample files: Input file (Trapezium.txt) 229 24 12 1227 The output screen contains information about the trapezium. 18 36 49
Q: We don't know enough about operating systems to be able to talk about how they work. What does the…
A: Operating System: Any operating system is a software program that links the computer's user and…
Q: What does it take to be a successful manager?
A: Intro: In any sector, one of the most often discussed topics is how to become a better boss. This is…
Q: What Are the Characteristics of a Computer System?
A: Computer System: A computer system is a collection of interconnected devices that process, store,…
Q: Compile a summary of JAD and RAD. Describe how they vary from typical fact-gathering techniques.…
A: JAD and RAD: The characteristics and intended aims of the target project are described in system…
Q: 1. Determine |A|, where: _a. A = {z} _d. A = {z, {z}, {z, {z}}} _e. A = P({z}) f. A = P({Ø, z}) b. A…
A: Here, we are going to determine the |A| which means cardinality of set A. Cardinality means number…
Q: Provide a list of products for securing and tracking hardware, as well as an explanation of how each…
A: Many different devices are now available for protecting and tracking hardware. The primary goal of…
Q: The command x followed by p, given in vim, places the cursor on the first letter of the word.…
A: Given: The:x command is described as follows in the Vim help files: Like ":wq," but only write when…
Q: ΡΥTHOΝ Determine a function T(n) that relates input size n to number of runtime steps and the Big-O…
A: Please refer below for your reference: Now your function is: def f1(n): print(1)…
Q: Search or create at least (2) programming applications/projects that great to use with pointers.…
A: Pointers in C++ Pointers are the variables in C and C++ which holds or store the address of another…
Q: You are requested to write a very simple calculator. Your calculator should be able to handle the…
A: Program: #include<bits/stdc++.h> using namespace std; int main() { double var1,var2;…
Q: f(x) = |x| %3D AREA absolute, CODE EXPORT main ALIGN ENTRY main PROC
A: AREA absolute, CODE EXPORT _main ALIGN ENTRY _main PROC LDR r0, =0xF00FFABC ; input for which…
Q: Question 4 Chapter 1: Review of packet-switching and circuit-switching networks Question 4: Consider…
A:
Q: How many Matlab seat licenses are required for there to be a ~1% steady state probability
A: The answer is
Q: d) If the propagation time were less than the transmission delay, where is the first bit of the…
A: The answer is
Q: вb 55 2с 52 55 34 56, X[K] %3D 34 5с 2E
A: The steps are shown below as,
Q: Alice and Bob use the ElGamal scheme with a common prime q = 131 and a primitive root a = 6. Let…
A: The answer is
Q: . ROM comparison?
A: Random-access memory is a type of PC memory that can be perused and changed in any request, normally…
Q: with python write a user defined function format_sentence to read a sentence, and return the…
A: def format_sentence(line): # make first letter upper newLine = line[0].upper() # loop from 1 to n…
Q: Programming Exercise 11 in Chapter 8 explains how to add large integers using arrays. However, in…
A: #include <iostream>#include<string>#include<conio.h> using namespace std;class…
Q: Q2- Write a program to read a number (n). Then print all numbers from 0 to n that are not equal to 1…
A: I give code in Matlab as well as in python along with output and code screenshot
Q: Test data, an integrated test facility, and parallel simulation are compared and contrasted.…
A: Start: It is a version of the test data approach to have an integrated test facility. The most…
Q: The command x followed by p, given in vim, places the cursor on the first letter of the word.…
A: Start: The following explanation of thanx command may be found in the Vim help files: In the same…
Q: For example, if you were to create a media company and needed graphic designers and media producers,…
A: A backup storage device replicates data in use. A backup storage device replicates data in use.…
Q: 1. Describe an iterative algorithm that takes as input a list of n distinct integers and counts how…
A: As per our policy I have given answer to only first question.
Q: Java program to evaluate the given post-fix expression in O( n) time and with O(n) space complexity.…
A: We will create SolvePostFixExpr Class and in main method we will define our logic. We can use stack…
Q: The command x followed by p, given in vim, places the cursor on the first letter of the word.…
A:
Q: What are the best methods for administering firewalls? Explain.
A: Firewall: Best Firewall Practices and How to Put Them in Place Every time a firewall rule is…
Q: A mainframe is quite different from a laptop when it comes to operating systems. How can we compare…
A: Operating System: The operating system is the software that runs the computer. An operating system…
Q: What are the advantages of utilizing virtual memory?
A: Introduction of the Virtual Memory: Virtual memory is a portion of the computer's secondary memory…
Q: A) Give a one sentence description of the primary purpose of the Transport layer. B) Give a one…
A:
Q: A number of standard utilities and tools are available to help manage and discover network issues.…
A: The first step is to have an understanding of how a router works. A router serves four critical…
Q: What does the term "operating system" refer to? What are the two primary roles of the operating…
A: Operating System: The operating system is the most critical application that runs on a computer. It…
Q: Describe the diversity programme designed by the Google corporation, as well as the challenges they…
A: Describe the diversity programme designed by the Google corporation, as well as the challenges…
Q: Determine three protocols that are weak or prone to attack, assuming that the organization's users…
A: The three principles are as follows: File Transfer Protocol/Secure(FT / S) Secure Hypertext Transfer…
Q: Provide code to run the calcShipping() function when the value of the state field in the…
A: Answer
Q: Code a private method called gradeScale that takes in a parameter mark as a String. The mark should…
A: PROGRAM import java.util.Scanner;public class grade_cal{private static String gradeScale(String…
Q: If a single individual is in charge of organising a distributed denial of service assault, what…
A: A distributed denial of service assault(DDoS) is typically carried out by a network of remotely…
Q: Marking Scheme 1. 3 Functions in a separate module file [6 A marks] a. Parameters / arguments used…
A: As the programming language is not mentioned as per our policy i am solving using the python…
Q: 5. Additional Credits - List all control signals for executing MAR + X, including P0 ~~ P5, MR AND…
A:
Q: se to preview a pie
A: Here we are expected to make sense of what text qualities a reader might utilize to get a sneak look…
Q: It is possible for a single person to initiate a distributed denial of service (DDoS) assault.
A: DDoS: DDoS attacks try to knock down a web server or online system by overloading it with data. Due…
Q: Detailed explanations are provided on the function of a firewall, as well as how it may be…
A: What is a firewall? A firewall is a security device — either hardware or software — that helps…
Q: def combi(gut): if len(gut) < 1: return [""] [] tin for isa in range(len(gut)): for jas in…
A: A recurrence relation is a mathematical expression that represents a specific aspect of the problem…
Q: Write a user defined function my_max3 to get the maximum value among 3 numbers, and return the…
A: The function (with comments) in python is as follows: '''write a user defined function to get the…
Q: Calculate the propagation delay in miliseconds (ms) for the link between Dijbouti and Israel under…
A: The answer is
Q: What are the advantages of a firewall?
A: The advantages of a firewall are described in the next step.
Q: describe the general business environment for the case study organization.
A: The retail store has hired you to assist in resolving the recent networking problems that have been…
Q: Java is an object-oriented programming language. Objects are known to exist in the real world. As a…
A: The OOp is also known as object-oriented programming language.
Q: Consider the below integer array which is already sorted { 1, 2, 3, 4, 4, 6, 6, 6 } program in Java…
A: import java.util.*;class GFG { // function to find repeating elements static void…
Q: If the organization's users depend heavily on the network for their day-to-day activities, what are…
A: Network Protocols are a collection of recognized rules regulating and managing data exchange safely,…
Step by step
Solved in 2 steps with 1 images
- The Springfork Amateur Golf Club has a tournament every weekend. The club president has asked you to write a program that will read each player's name and score as keyboard input, and then save these as records in a file named golf.txt . First, the program should ask the user for the number of players. Then, it should ask the user for each name and score individually. The file golf.txt should be structured so that there is a line with the player's name, followed by their score on the next line. Here is an example: Emily 30 Mike 20 Jonathan 23 Look carefully at the following sample run of the program. In particular, notice the wording of the messages and the placement of spaces and colons. Your program's output must match this. Sample Run (User input shown in bold) Enter number of players :4↵ Enter name of player number 1 : Jimmy↵ Enter score of player number 1 : 30↵ Enter name of player number 2 : Carly↵ Enter score…Create a text file of names, (3 names per line, 5 lines in total) followed by an age for each name. Go through the file and sum the ages. Create an output file with each persons name followed by age and then a line at the end of the output file that says “sum of all ages is: x”. Simple Java programming. Should include things like bufferedReader, fileReader, printWriter, fileWriter, file close, try-with-resources, Scanner, catch/try, etc. Include Java file and txt file. Thank you.Write a program that reads the contents of the two files into two separate lists. The user should be able to enter a boy’s name, a girl’s name, or both, and the application will display messages indicating whether the names were among the most popular. your program should read the files into separate lists for boys and girls names the program should accept either a girl name or a boy name or both, entry of a NULL i.e. just pressing the "enter key" results in no search for that entry the program must continue to run until told to stop by the person running the program using any method of your choice report on the success or not of each attempt to locate a name in the popular names files
- JAVA PPROGRAM Write a program that prompts the user to enter a file name, then opens the file in text mode and reads names. The file contains one name on each line. The program then compares each name with the name that is at the end of the file in a symmetrical position. For example if the file contains 10 names, the name #1 is compared with name #10, name #2 is compared with name #9, and so on. If you find matches you should print the name and the line numbers where the match was found. While entering the file name, the program should allow the user to type quit to exit the program. If the file with a given name does not exist, then display a message and allow the user to re-enter the file name. The file may contain up to 100 names. You can use an array or ArrayList object of your choosing, however you can only have one array or ArrayList. Input validation: a) If the file does not exist, then you should display a message "File 'somefile.txt' is not found." and allow the…In Python Language do the following:The Springfork Amateur Golf Club has a tournament every weekend. The club president hasasked you to write two programs:1. A program that will read each player’s name and golf score as keyboard input, then savethese as records in a file named golf.txt. (Each record will have a field for the player’sname and a field for the player’s score.)2. A program that reads the records from the golf.txt file and displays them.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…
- In Java Oleae nust read a file 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. Ex: If the input of the program is: ParkPhotos.txt and the contents of ParkPhotos.txt are: Acadia2003_photo.jpg AmericanSamoa1989_photo.jpg BlackCanyonoftheGunnison1983_photo.jpg CarlsbadCaverns2010_photo.jpg CraterLake1996_photo.jpg GrandCanyon1996_photo.jpg IndianaDunes1987_photo.jpg LakeClark2009_photo.jpg…in java 8.8 LAB: Course Grade 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…The Springfork Amateur Golf Club has a tournament every weekend. The club president hasasked you to write two programs:1. A program that will read each player’s name and golf score as keyboard input, then savethese as records in a file named golf.txt. (Each record will have a field for the player’sname and a field for the player’s score.)2. A program that reads the records from the golf.txt file and displays them.
- 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")IN JAVA ONLY PLEASE. POSITIVE REVIEW WILL BE LEFT FOR CORRECT LANGUAGE ONLY AND NOT COPY PASTE FROM INCORRECT ANSWER 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. Ex: If the input of the program is: ParkPhotos.txt and the contents of ParkPhotos.txt are: Acadia2003_photo.jpg AmericanSamoa1989_photo.jpg BlackCanyonoftheGunnison1983_photo.jpg CarlsbadCaverns2010_photo.jpg CraterLake1996_photo.jpg…In Python Write a program that reads movie data from a CSV (comma separated values) file and output the data in a formatted table. The program first reads the name of the CSV file from the user. The program then reads the CSV file and outputs the contents according to the following requirements: Each row contains the title, rating, and all showtimes of a unique movie. A space is placed before and after each vertical separator ('|') in each row. Column 1 displays the movie titles and is left justified with a minimum of 44 characters. If the movie title has more than 44 characters, output the first 44 characters only. Column 2 displays the movie ratings and is right justified with a minimum of 5 characters. Column 3 displays all the showtimes of the same movie, separated by a space. Each row of the CSV file contains the showtime, title, and rating of a movie. Assume data of the same movie are grouped in consecutive rows. Ex: If the input of the program is: movies.csv and the contents…