Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Program Write a program to analyze a log file to get the 50 percentile of the E values when the field is_safe equals to

image text in transcribedJava Program

Write a program to analyze a log file to get the 50 percentile of the "E" values when the field "is_safe" equals to 1. The following are two example records from the log: batch O||is_safe:0,E=100;is_safe:1,E=101;&&batch 2||is_safe:0,E=100;is_safe:1,E=102;is_safe:1, E=12; - - The records are separated by && - Please infer other formatting rules from these two example records The first record is_safe equals to O so the record should be ignored in calculation. The second record has is_safe=1, so the E value 102 should be included in calculation. For this particular example, there are 3 E values with is_safe=1 (12,101,102), so the final output should be 101. If the number of observations is even, then the 50 percentile is the simple average of the middle two numbers. Please note: There might be malformed lines, you should discard the entire line if you detect any errors (for example extra spaces thats different from the example above)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions

Question

What is Rule 203 of the Code of Professional Conduct?

Answered: 1 week ago

Question

How do you add two harmonic motions having different frequencies?

Answered: 1 week ago

Question

10-9 How have social technologies changed e-commerce?

Answered: 1 week ago