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

  Write a program called gf2java to implement the finite

write a program called gf2.java to implement the finite field gfpn where p is a prime number and n is a positive

  Carry out additions and subtraction

You are to design a Java application to carry out additions and subtractions for numbers of any length. A number is represented as an object which includes a sign and two strings for the whole and decimal parts of the number.

  Create the look for two gui applications

Create the look for two GUI applications. You WILL NOT be getting the applications to do anything. We are only interested in seeing how well you can arrange the GUI components onto the window

  Implement the application using a singly linked list

Implement the following application using a singly linked list. This application accepts from console and stores a list of 10 names of your friends in the singly linked list

  Method that accepts a string object

Word Counter Write a method that accepts a String object as an argument and returns the number of words it contains. For instance, if the argument is "Four score and seven years ago" the method should return the number

  Leadership position in a hospital emergency room

Identify in a leadership position in a hospital emergency room. Evaluate how  organization handles patient and employee education, and whether that organization participates in any research (if so, find out what types and whether it is mostly qualita..

  Write a method to save a linked list to a text file

Write a method to save a Linked List to a text file called file.txt. It must save the Linked List to the file with each node on a different line.

  How many parameters are supposed to be passed

How many parameters are supposed to be passed to the constructor or how big to create the array - Method Union comparing two different objects?

  Implement a distributed banking application

In the first part, you will implement a distributed banking application. The distributed bank has multiple branches. Every branch knows about all other branches.

  Writing a program to have it generate random words

How would I go about writing a program to have it generate random words with a letter missing for a child to guess? Maybe it would have three letters, then four, next five, and so on until maybe 10 letters. Please keep in mind that I'd like it to wor..

  Create floating point arrays

Create floating point arrays each with three elements - Ask the user to give input for the two arrays.

  Count the occurrences of words in a songs lyrics

Count the Occurrences of words in a song's lyrics, State the approach you will use if you get a hard copy of a song's lyrics.

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