Question: Written in Java Write a program to help farmers estimate the weight of corn stored in cylindrical silos. Each silo's dimensions are measured in radius

 Written in Java Write a program to help farmers estimate theweight of corn stored in cylindrical silos. Each silo's dimensions are measuredin radius r and height h in meters. For the purposes ofthis exercise, you can assume silos are perfect cylinders whose volume (cubic

Written in Java

Write a program to help farmers estimate the weight of corn stored in cylindrical silos. Each silo's dimensions are measured in radius r and height h in meters. For the purposes of this exercise, you can assume silos are perfect cylinders whose volume (cubic meters, m3 ) is computed as hr2 The amount of corn stored in a silo is reported as a percentage p of the silo's capacity (0% to 100% on the scale of [0,1]). The total weight of corn can be computed using the estimate of 720.83kg/m3 For example, a silo that has a measure of radius r=5 meters, height h=20 meters and is 35% (.35) full would have (5)220.35=549.778714378 cubic meters of corn which would have a total weight of 396296.990685kg. Write a program that reads in the above measures ( r,h, and p; radius height and percentage respectively) as command line arguments and outputs both the total number of cubic meters of corn as well as the total weight estimate. For example, if we ran your program with 5 200.35 as arguments, it would produce output that looks something like: Radius: 5m Height: 20m Percentage: 35.00% Total Volume: 549.778714m3 Total Weight: 396296.990685kg Exericse 2: Husker/Maverick Cheer (25 points) Write a program to solve the following variation on the classic "fizz buzz" problem. Your program will implement a series of functions/methods that take a list of integers and process each integer as if it were a "score". It will award it to either the huskers team or the mavericks team according to the following rules: - if it is divisible by 3 it should be awarded to the huskers - if it is divisible by 5 it should be awarded to the mavericks - if it is divisible by both 3 and 5 it should be awarded to both "teams" - otherwise ignore it (it is not given to either team) For the Java version, we have provided a starter file with specific instructions written in the documentation. We have also provided a junit starter file that has several test cases already written. In addition to implementing all methods as specified, you will be required to add additional test cases to the junit testing suite. Specifically, you need to add at least 3 valid test cases for each method you need to implement. For the Python version, we have provided a starter file with specific instructions written in the documentation. We have also provided a unittest starter file that has several test cases already written. In addition to implementing all methods as specified, you will be required to add additional test cases to the unittest testing suite. Specifically, you need to add at least 5 valid test cases for each method you need to implement. Two weather stations periodically take temperature data samples. Each data point consists of a date-time stamp as an ISO 8601 formatted string (example: 2016-11-03T12:01) and a temperature (example: 76.2 ). Data from the two weather stations is stored in two data files with the following format: the first line is an integer indicating the total number of data samples in the file. Each subsequent line is the datetime stamp and a temperature value separated by a space. An example: 52017-01-01T02:00-24.922017-01-01T04:00-26.702017-01-01T00:0032.782017-01-01T03:00-25.402017-01-01T01:0018.97 The data is not necessarily in any order in the data files. Your program will read in data from two files (we'll refer to them as data set A and data set B) whose pathames are provided as command line arguments and generates the following reports: 1. For the data in data set A, report the minimum, maximum and mean temperatures. Temperature Reports (dataset A) Minimum: 43.170000 Mean: 1.686596 Maximum: 46.520000 2. For the data in data set A, report the earliest available (by date) data point and the most recent data point. Your report should look something like the following. Date Reports (dataset A) 3. Inconsistent/Missing Data Reports. The final report will compare the two data sets and report any inconsistencies or missing data. In particular: - Report any data point in data set A that is missing in data set B (a data point is missing if the date/time stamp record is in A but is not in B). - Report any data point in data set A whose corresponding data point (by date) in set B has a temperature that is off by more than 0.001 degrees. Your output should look something like the following. Inconsistent/Missing Data Reports Inconsistent Data: 32.78 vs 32.90(20170101T00:00) Missing Data: 14.43(20170101T08:00) An test case example has been provided in this repository. The actual data may consist of millions of data points. You will NOT be able to solve this problem with a brute-force approach (comparing all possible pairs of data). You will need to use efficient searching and sorting echniques

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!