Program Name: DataCenterCostAnalysis.java Virtual Cloud Unlimited (VCU) is a cloud computing startup that manages data centers to sell to other companies. VCU has created a text file of their data center cost data that we looked at in Project 2. You will write a program that will accept at the command line two filenames: one is a text file containing the data center cost data and the other is an output filename. The data in the first text file consists of information about the data centers that VCU manages. The data contains many lines of data, one for each data center. Each line of data contains information about a data center: The construction firm building the data center The construction cost of the data center (in millions of dollars) The IT load of the data center (in megawatts) The operating cost of the data center (in millions of dollars) A sample text file is below: nginx Copy Edit Turner 442.2 168.4 19.0 Holder 584.8 307.2 26.4 HITT 420.7 21.8 11.1 DPR 726.5 271.0 24.5 Fortis 574.1 50.5 12.7 Mortenson 717.0 117.7 16.2 JEDunn 763.4 199.6 20.7 Clune 527.9 289.1 25.5 DataCenter Before implementing DataCenterCostAnalysis.java, we will create an object to encapsulate the data values associated with a data center. Here are the specifications for the DataCenter.java class: You will have 4 instance variables: constructionFirm: String, constructionCost: double, ITLoad: double, operatingCost: double You will have a default constructor that sets all string values to an empty String and numeric values to 0.0. You will have a parameterized constructor that passes in a constructionFirm, constructionCost, ITLoad, and operatingCost to set to the instance variables You will have getters and setters for each instance variable You will have a toString() method that will return the constructionFirm, constructionCost, ITLoad, and operatingCost separated by a space. Each double value will be rounded to two decimal places using String.format().
Question:
Program Name: DataCenterCostAnalysis.java Virtual Cloud Unlimited (VCU) is a cloud computing startup that manages data centers to sell to other companies. VCU has created a text file of their data center cost data that we looked at in Project 2. You will write a program that will accept at the command line two filenames: one is a text file containing the data center cost data and the other is an output filename. The data in the first text file consists of information about the data centers that VCU manages. The data contains many lines of data, one for each data center. Each line of data contains information about a data center: The construction firm building the data center The construction cost of the data center (in millions of dollars) The IT load of the data center (in megawatts) The operating cost of the data center (in millions of dollars) A sample text file is below: nginx Copy Edit Turner 442.2 168.4 19.0 Holder 584.8 307.2 26.4 HITT 420.7 21.8 11.1 DPR 726.5 271.0 24.5 Fortis 574.1 50.5 12.7 Mortenson 717.0 117.7 16.2 JEDunn 763.4 199.6 20.7 Clune 527.9 289.1 25.5 DataCenter Before implementing DataCenterCostAnalysis.java, we will create an object to encapsulate the data values associated with a data center. Here are the specifications for the DataCenter.java class: You will have 4 instance variables: constructionFirm: String, constructionCost: double, ITLoad: double, operatingCost: double You will have a default constructor that sets all string values to an empty String and numeric values to 0.0. You will have a parameterized constructor that passes in a constructionFirm, constructionCost, ITLoad, and operatingCost to set to the instance variables You will have getters and setters for each instance variable You will have a toString() method that will return the constructionFirm, constructionCost, ITLoad, and operatingCost separated by a space. Each double value will be rounded to two decimal places using String.format().
Asked by: Test User 100118
Created at: 2025-05-01 08:26:23
Final Answer:
📢 Instructions:
- Ask anything relatd to above question only.
- For new Question goto :
VIPSolutions