Write a program that plots a bar chart for comparing mtbfs

Assignment Help JAVA Programming
Reference no: EM13865229

Program (graphics)

Write a program that plots a bar chart for comparing the MTBFs of different elevator models.

The data to be displayed is prepared in a file:

• Each line consists of the model's letter and the MTBF that has been measured for that file.

• There will always be at least one line of data in the file.

• There will always be at least one MTBF that is greater than zero.

• Don't assume the letters denoting the models are consec- utive.

file: bar.txt

A

0.66

B

0.50

C

0.72

E

0.43

G

1.55

H

2.00

I

0.67

J

0.54

The data is to be read into the program using the input redirection method used in the previous two problems. For example:

$ java Bar < bar.txt

Sample output is shown in figure1. Your output may be more elaborate or attractive, but it must convey the same data, including the numerical values and the units (years), as a bar chart.

Reference no: EM13865229

Questions Cloud

Demand & supply in the baby boomer generationcollapse : After World War II, the United States experienced a "baby boom" as birthrates rose dramatically between 1946-1964. Lower birthrates after 1965 mean that the now aging baby boom generation is larger than the generations before and after it. What effec..
Design a one-way slab : Problem 1: Design a ONE-WAY slab for the condition below: Slab Design
The russiandominated soviet union : The Russiandominated Soviet Union was the world's largest centrally planned economy until the collapse of the Soviet Union in 1991. What were the key economic factors behind that collapse?
Test lying about your age to purchase a cheaper ticket : Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 ..
Write a program that plots a bar chart for comparing mtbfs : Write a program that plots a bar chart for comparing the MTBFs of different elevator models. The data to be displayed is prepared in a file: Each line consists of the model's letter and the MTBF that has been measured for that file.
Short term treasury securities : 1.A bank has $1 million in vault cash, $5 million in short term Treasury securities and $20 million in deposits at a Federal Reserve Bank.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Explain where the following method invocations

Explain where the following method invocations are most likely to be found in a program for dealing with census data organized using the Model, View, Controller (MVC) design pattern. Choices are zero or more of Model, View, and Controller. Be sure to..

  Java application that reads a date in numeric form

Designand write a java application that reads a date in numeric form from a set of three fields and displays it in English within a label. Use appropriate buttons. For Example:

  Writing a program that parses

The programming project involves writing a program that parses, using recursive descent, a GUI definition language defined in an input file and generates the GUI that it defines.

  Create a program in java that displays hello world

Create a program in Java that displays "Hello world!", No Design Section is required for this assignment, Copy and Paste your code into the Source Programs section and a screen shot of the results in the Output section.

  Build the gui layout of the game

Build the Build the GUI layout of the game in java.

  Design and implement your own simple class to represent

Design and implement your own simple class to represent any household item of your choice (toaster, fan, hair dryer, piano ...) Your class should have a constructor, one additional method and at least one member variable (e.g. boolean isOn to turn th..

  Outline a test plan for a substantial real-life system

Describe how you would approach the design and testing process to ensure success and quality in the result and where are the risks? How are you going to address them?

  Describe the project requirements and other assumptions

Summarize the project requirements and other assumptions (i.e., budget, human resources, workload, environmental dependencies, etc.). Define a work breakdown structure and describe the methodology behind constructing one

  Write a program that simulates a simple calculator

Write a program that simulates a simple calculator. It reads two integers and a character. If the character is a +, the sum is printed; if it is a -, the difference is printed; if it is a *, the product is printed; if it is a /, the quotient is pr..

  Write a program that asks user how many students to process

Write a program that asks the user how many students to process (must be at least 1, but no more than 20) and then reads in the scores for three items, an exam average score (double number), lab average score (double number) and homework average s..

  Create an overloaded constructor that provides values

Create a class named BloodData that includes fields that hold a blood type (the four blood types are O, A, B, and AB) and an Rh factor (the factors are + and -).

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd