need to write a Java program that reads data from a text file, converts the data into three arrays. One for month, another for Windspeed and the third for rainfall. Program should use a try catch block to handle file reading. I need to calculate average windspeed as well as average rainfall. Text file is called input.txt column 1 is the month, column 2 the windspeed, column 3 the rainfall 1 8.3 0.3 2 9.2 0.3 3 10.2 0.2 4 10.9 0.2 5 10.1 0.3 6 8.7 0.5 7 7.5 1.3 8 6.9 1.5 9 7.6 1.1 10 8 0.6 11 8.2 0.4 12 8.1 0.5
Q: How are computers being used in the scientific community as a tool for research? Use specific…
A: Introduction of scientific computers: Scientific computers are computers designed specifically for…
Q: You are given an array of integers and an index x. Without sorting Re-arrange the array as below:…
A: I have provided JAVA CODE along with CODE SCREENSHOT and OUTPUT SCREENSHOT-----------------
Q: It is possible to avoid using shared memory for storing data utilized by several processes by…
A: Shared memory One sort of memory that is utilised by numerous programmes is shared memory. It is…
Q: Which of these two terms best describes the distinction between an argument and a parameter variable…
A: Given:- When it comes to programming, what precisely is the key distinction between a parameter…
Q: When planning a reliable network, it's important to think about things like budget, timeliness,…
A: In recent years, there has been increasing awareness of the impact of technology on the environment,…
Q: The following tables form part of a Library database held in an RDBMS: Book (ISBN, title, edition,…
A: Here are all the queries:
Q: Which companies are the best candidates to gain from cloud computing? Why?
A: Answer: Companies that are best suited to benefit from cloud computing are typically those that have…
Q: Can a BGP router reliably choose the shortest, most direct ASpath route? Argue why your option is…
A: Border Gateway Protocol (BGP): BGP is an Inter-AS routing protocol that gets subnet reachability…
Q: For what purpose does the tracert command exist? Is there any helpful data that can be retrieved…
A: Traceroute is a diagnostic tool for IP networks that reports the IP addresses of the routers a…
Q: The term "communication network" may also refer to WSNs. Wireless sensor networks relay information…
A: WSNs employ sensor nodes to convey data. among each other and a base station. Sensor nodes have…
Q: Microsoft Word 2016 comes with many improvements and new features. Your vote counts: which one of…
A: Microsoft Word 2016 adds several features. Word 2016's best feature? Explain the benefits. One-drive…
Q: Why is it more typical to do many tasks at once, which is also known as multithreading, rather to…
A: Introduction: Within a single process, many threads may develop that operate independently while…
Q: Having access to a data warehouse opens up a broad range of possibilities for your business.
A: A data warehouse is a type of data management system that is designed to enable and support business…
Q: ow does one define virtual memory, and how does it differ from physical memor
A: Virtual memory is a technology that allows a computer to use more memory than it physically has by…
Q: Write a Turing machine that converts its input from binary to unary. In other words, if the input is…
A: Given that, Input string x ∈ {$, 0, 1}∗ The Turing machine must convert the Binary number into Unary…
Q: The readers and writers dilemma may be posed in many different ways depending on which set of…
A: The Readers-Writers dilemma is a synchronisation issue when some processes (readers) are reading the…
Q: a question on the framework of the software. When does load balancing not work?
A: Load balancing may not work effectively in certain situations such as: When the load balancer is…
Q: Describe the many taxonomies that have been used to access control approaches. Describe the many…
A: Access management: Access control is a security approach that regulates the entry of employees into…
Q: What are the various digital forensics tools that may be used? Kinds of this and that, please
A: GUI(Graphical User Interface): GUI stands for Graphical User Interface and is a type of user…
Q: When Creating Requirements, What Function Does the User Play?
A: Software development life cycle, or SDLC It is a method of identifying the many steps necessary for…
Q: Discuss the impact on mobile devices of the current trend toward device convergence.
A: Introduction : Device convergence is the process of combining multiple devices into a single device.…
Q: In the context of application frameworks, please define the word "inversion of control." Explain how…
A: frameworks:- A framework is a set of predefined libraries, classes, and modules that provide a…
Q: What is the most crucial consideration when erasing data in rows, columns, and whole tables?
A: Data: Data in computer science is information that is stored, processed, and transmitted in…
Q: The question is, "Which encoding technique is the most effective?" What is the current high-speed…
A: The optimal encoding technique with a high data rate must be identified in this problem. Encoding is…
Q: In this paper, we will examine Disney World's utilization of MagicBands and how they fit into an…
A: Disney World is capitalizing on information and communications technology by using magic wands as…
Q: There are essentially three steps that must be taken before a piece of software may really utilise a…
A: Introduction : A collection of computer programs and related data that provide instructions for…
Q: Analyze the parallels and differences between cloud computing and mobile devices. Why do mobile…
A: Mobile cloud computing utilises cloud computing to offer mobile apps. Remotely deploy these mobile…
Q: In your own words, please explain what it means to "fetch" an order.
A: The Internet of Things (IoT) refers to a computer environment that is used in the process of linking…
Q: scriptions provided in each methods. Then, in your newly created controller create Ferent methods,…
A: This code creates a class named "PrintSequence" which contains a single method "MarioFlagPole" that…
Q: What are the three data irregularities that are brought on by data redundancy? Solution to the…
A: Database:- A database is a structured collection of data stored in a computer system. It is…
Q: Determine the purpose of at least five of these sites: Commerce on the Internet, Portals, Content…
A: Commerce on the Internet refers to the buying and selling of goods and services over the internet.…
Q: Explain what you mean by "functional" and "non-functional" requirements and provide two
A: Basics: Following elicitation, requirement analysis is a crucial and basic step. To create…
Q: Briefly describe Donald Norman's phases of engagement.
A: Donald Norman, a cognitive scientist and user experience expert, proposed a model of user engagement…
Q: Implement a stack S using two queues Q1 and Q2 so that operations PUSH (S, X) and POP(S, Y), where S…
A: One way to implement a stack using two queues is to use one queue (Q1) for inserting elements, and…
Q: I don't understand how you managed to zip it.
A: Zipping This query is about the operating system. The process of compressing a collection of data…
Q: Understand when it is acceptable to apply supertype/subtype connections in data modeling.
A: Data modelling is the process of developing a data model for the information that will be kept in a…
Q: Defend traffic engineering's place as a potential solution to the issue of network congestion and…
A: Introduction: Traffic engineering, or the process of separating, anticipating, and directing the…
Q: Where can I find out more information on CPUs?
A: Your answer is given below.
Q: However, there is still the question of clarifying exactly what we are talking to when we mention 4G…
A: Introduction : 4G networks are the fourth generation of wireless mobile telecommunications…
Q: Q4 Convert the following NFA to DFA. ४
A: We need too convert the given DFA to NFA.
Q: When it comes to allocating resources, how does dynamic memory allocation really function? Can the…
A: Your answer is given below.
Q: Under which scenario of graph traversal can Dijkstra algorithm fail? Answer Choices: a) Undirected…
A: a) Undirected graph traversal: Dijkstra's algorithm is designed for directed or weighted graphs and…
Q: In other words, port definitions.
A: I assume you mean communication or networking ports. I've defined communication ports below. The…
Q: Having access to a data warehouse opens up a broad range of possibilities for your business.
A: In order to provide meaningful insights for businesses, a process known as data warehousing (DW) is…
Q: You should identify two external and two internal obstacles to attentive listening.
A: Successful listening: Effective listening involves understanding the speaker's emotions effectively…
Q: Which web service architecture, SOAP or RESTful, would you select if you had to develop one and why?
A: "The local inventory database needs supplier inventory data. Suppliers provide online services. Can…
Q: The central processing unit (CPU) of a Nehalem processor is soldered onto the North or South bridge…
A: The above question is solved in step 2 :-
Q: SELECT X.A FROM X,Y,Z WHERE X.A=Y.A OR X.A=Z.A Answer the next two questions (Questions 8 and 9)…
A:
Q: Which type of HTML element can have multiple values selected when the multiple="multiple" attribute…
A: Please refer to the following step for the complete solution to the problem above.
Q: In what ways does one benefit from a collision domain?
A: collision domain:- A collision domain refers to a network segment where data packets may collide…
I need to write a Java program that reads data from a text file, converts the data into three arrays. One for month, another for Windspeed and the third for rainfall. Program should use a try catch block to handle file reading. I need to calculate average windspeed as well as average rainfall.
Text file is called input.txt
column 1 is the month, column 2 the windspeed, column 3 the rainfall
1 8.3 0.3
2 9.2 0.3
3 10.2 0.2
4 10.9 0.2
5 10.1 0.3
6 8.7 0.5
7 7.5 1.3
8 6.9 1.5
9 7.6 1.1
10 8 0.6
11 8.2 0.4
12 8.1 0.5
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 3 images
- write a program in python Write a program that will allow a student to enter their name and then ask them to solve 10 mathematical equations. The program should display two random numbers that are to be added, such as: 247 + 129 The program should allow the student to enter the answer. The program should then display whether their answer was right or wrong, and accumulate the right values. After the 10 questions are asked, calculate the average that was correct. Then display the student name, the number correct, and the average correct in both decimal and percentage format. In addition to any system functions you may use, you might consider the following functions: A function that allows the student to enter their name. A function that gets two random numbers, anywhere from 1 to 500. A function that displays the equation and asks the user to enter their answer. A function that checks to see if the answer is correct and accumulates the number correct. A function that calculates the…A company hired 10 temporary workers who are paid hourly and you are given a data file that contains the last name of the employees, the number of hours each employee worked in a week, and the hourly pay rate of each employee. You are asked to write a program that computes each employee’s weekly pay and the average salary of all employees. The program then outputs the weekly pay of each employee, the average weekly pay, and the names of all the employees whose pay is greater than or equal to the average pay. If the number of hours worked in a week is more than 40, then the pay rate for the hours over 40 is 1.5 times the regular hourly rate. Use two parallel arrays: a one-dimensional array to store the names of all the employees (Name) a two-dimensional array of 10 rows and 3 columns to store the number of hours an employee worked in a week (Hrs Worked), the hourly pay rate (Pay Rate), and the weekly pay (Salary). Your program must contain at least the following functions: a function…You have been asked to develop the new system. You are to write an application to assign seats in an airline. Assume a small airplane with 28 seats (7 rows 4 wide) as follows: 1 A B C D 2 A B C D 3 A B C D 4 A B C D 5 A B C D 6 A B C D 7 A B CD The program should display the seat pattern, with an X marking the seats already assigned. 1 X B C D 2 A X C D 3 A B C D 4 A B X D 5 A B C D 6 A B C D 7 A B C D The program then requests a choice of seat. If the seat if available,then the seating display is updated. Otherwise, the program requests another choice of seat. If the user types in a seat that is already assigned, the program should say that that seat is occupied and ask for another choice. This continues until all seats are filled or until the user says that the program should end.
- The manager of a football stadium wants you to write a program that calculates the total ticket sales after each game. There are four types of tickets—box, sideline, premium, and general admission. After each game, data is stored in a file in the following form: ticketPrice numberOfTicketsSold … Sample data are shown below: 250.75 5750 100.50 28000 50.25 35750 25.00 18750 The first value indicates that the ticket price is Php 250.75 and that 5750 tickets were sold at that price. Output the total number of tickets sold and the total sale amount using c++ compiler. Format your output with two decimal places.OBJECT ORIENTED PROGRAMMING LESSON LABORATORY EXERCISE-1 Problem: Write a program that takes position and current salary value from the user and calculate the new salary and shows it on the console according to the following table. Position Manager Salesman Human Resources Technician Headman Example: Enter your position: Manager Enter your current salary: 10000 New salary: 11000 Raise Percentage %10 %20 %15 %25 %23 Write your program using Java and copy your codes to a text file which has your name and surname. Then load it into UZEM under the provided link.PLEASE COMMENT CODE In a python program, create a new file and call it “ tracking”. Write to it four lines each contains information about an order like this: 1-00654-021 Dell charger Toronto-WEST 99-49-ZAD011-76540-022 ASUS battery Milton-EAST 34-56-CBH561-09239-026 HP HD Scarborough-NORTH 12-98-AZC451-12349-029 Mac FD North York-LAWRENCE 34-49-ZWL01Add the file two more lines: 1-34567-055 Lenovo SSD Milton-ON 34-09-MT04 1-90432-091 Lenovo battery Oakville-ON 78-KL98 Define a function that searches for a brand (e.g. Dell, ASUS, etc.). Test the function in your program.
- For My Java class, this being my first programming class, I have been asked to complete the following to learn Loops. Next is arrays but I was hoping to get help understanding this first. Thanks 1-Design a program that asks the user to enter a series of positive numbers. The user should enter a negative number to signal the end of the series. After all the positive numbers have been entered, the program should display their sum. 2-The distance a vehicle travels can be calculated as follows: Distance = Speed x Time Design a program that asks a user for the speed of a vehicle in miles per hour and how many hours it has travelled (Assume the two values are integers). Your program should then use a loop to display the distance the vehicle has traveled for each hour of that time period. (For example, entering 50 mph and 4 hours should produce output like: Hour 1: 50 miles, Hour 2: 100 miles, Hour 3: 150 miles, Hour 4: 200 miles. ) 3-Design a program that uses nested loops to display a…A company hired 10 temporary workers who are paid hourly and you are given a data file that contains the last name of the employees, the number of hours each employee worked in a week, and the hourly pay rate of each employee. You are asked to write a program that computes each employee's weekly pay and the average salary of all the workers. The program then outputs the weekly pay of each employee, the average weekly pay, and the names of all the employees whose pay is greater than or equal to the average pay. If the number of hours worked in a week is more than 40 hours, then the pay rate for the hours over 40 is 1.5 times the regular hourly rate. Use two parallel arrays: a one-dimensional array to store the names of all the employees, and a two-dimensional array of 10 rows and 3 columns to store the number of hours an employee worked in a week, the hourly pay rate, and the weekly pay. Your program must contain at least the following functions—a function to read the data from the file…Use C++ In a student file, there are names and scores. Find the max score and print out the names of the students with the max score. • You must get a filename as standard input. See two sample outputs on the next page. • The number of students in the file is at most 50. • You need to make two arrays (see the next page). 1. Create a string array with size 50. The array will store the names of the students. 2. Create an integer array with a size of 50. The array will store the scores of the students.
- Java write a program that prompt user to insert his/her Salaries for the past three months and print "in a text file" there Salaries, and the average. The output should be appeard as shown : Enter your salaries for the three past monthes: 1000 2000 3000 and the txt file look like this : month 1 salary is 1000 month 2 salary is 2000 month 3 salary is 3000 the average of your salary for is = 2000Java Your program must read a file called personin.txt. Each line of the file will be a person's name, the time they arrived at the professor's office, and the amount of time they want to meet with the professor. These entries will be sorted by the time the person arrived. Your program must then print out a schedule for the day, printing each person's arrival, and printing when each person goes in to meet with the professor. You need to print the events in order of the time they happen. In other words, your output will be sorted by the arrival times and the times the person goes into the professor's office. In your output you need to print out a schedule. In the schedule, new students go to the end of the line. Whenever the professor is free, the professor will either meet with the first person in line, or meet with the first person in line if nobody is waiting. Assume no two people arrive at the same time. You should solve this problem using a stack and a queue. You can only…Many applications possess a word search facility that will parse a text file to identify the presence of a given word. You are required to write a Java application using Netbeans that will open a text file of prose and search for a target word input by the user. The Search functionality would be done int two ways: 1. Search for the number of occurrences of the word. For example, if the user types ‘the’, the program should print out the number of times the word the appears in the text.2. A wildcard search.A wildcard could be used to represent one or more multiple characters at the beginning or end of a word, and/or as a direct replacement for a single character. For example, if the text contained the words ‘shape’, ‘tape’ and ‘hate’, then queried string ‘*ape’ would return ‘shape’ and ‘tape’, whilst ‘s*ape’ could only return ‘shape’. Perhaps leading, trailing and single letter substitution wildcards can be made allowable within the same single word search. A text file is…