Calculates and displays cost of computing infrastructure

Assignment Help JAVA Programming
Reference no: EM131175323

Assessment task

Write a java console application that calculates and displays the cost of computing infrastructure setup for N banks. N should be declared as a constant and it should be equal to the largest digit of your student ID number (e.g. if your ID number is S547221 then N should be equal to 7 and you can declare it as final int N=7). The cost is based on number of computers to be installed as shown below in Table 1.

Table 1. Number of Computers and Cost

Number of Computers

Cost

2 or less

$1000

Over 2 but not more than 20

$1000 + $400 per computer Over 2

Over 20 but not more than 100

$1000 + $300 per computer Over 2

Over 100

$200 per computer

The application should ask the user to enter the number of computers for each bank (total N banks) and calculate the cost. The application should display the cost for each bank as shown in the example below. At the end of the Nth bank's cost, a receipt with total cost, lowest cost and average cost should be displayed. The total cost is calculated by adding the setup cost for all banks. The lowest cost is calculated by finding the lowest amount from costs for N banks. The average cost is calculated by dividing the total cost with the total number of banks. The format for your input and output must be same as given in example below.

Example for N=4 (Note that a loop should be used for reading the input and displaying the output) Your welcome message should be here

Enter the number of computers for Bank number 1: 1
The cost to setup the computing infrastructure for Bank number 1 is $1000

Enter the number of computers for Bank number 2: 10
The cost to setup the computing infrastructure for Bank number 2 is $4200

Enter the number of computers for Bank number 3: 22
The cost to setup the computing infrastructure for Bank number 3 is $7000

Enter the number of computers for Bank number 4: 100
The cost to setup the computing infrastructure for Bank number 4 is $30400

*********Receipt for Total Cost, Lowest Cost and Average Cost********* Total Cost is $42600
Lowest Cost is $1000 Average Cost is $10650

Your exit/end message containing your ID number must be here.

The application should be user-friendly by displaying appropriate welcome message at the beginning and an exit message at the end.

The application should use the following classes and methods.

public class Bank
{
//declare constants
//declare fields/variables
//declare constructor
//declare and define all methods including get and set methods
}

public class BankTest
{
public static void main(String[] args)
{
//create object
//read and store quantity of computers using a set method
//get the quantity of computers using a get method and calculate the cost
//print the output as shown in the example
}
}

Verified Expert

The bank machines allocation java project is about calculation of different costs that the banks need to spend while purchasing the computers for them. It takes into consideration the number of banks, the machines that need to assigned to each of them, the set of rules that dictate the cost associated with the machines and returns the total cost, average cost and the least cost for the purchase

Reference no: EM131175323

Questions Cloud

What immediate treatments are likely to most benefit the man : A 66-year-old obese man with a diagnosis of ischemic heart disease has been diagnosed with heart failure that his care team has characterized as attributable to systolic dysfunction. Which of the following assessment findings is inconsistent with ..
Review and reflect on the knowledge : What were the most compelling topics learned in this course - How did participating in discussions help your understanding of the subject matter?
What is the current in each wire : When the wires carry identical currents in opposite directions, the angel between the strings holding the two wires is 15 degrees. What is the current in each wire?
What is the acceleration of the system : how far will it move in 2.00 s? Assume the system starts from rest and that there are no friction forces opposing the motion.
Calculates and displays cost of computing infrastructure : Calculates and displays the cost of computing infrastructure setup - The application should ask the user to enter the number of computers for each bank (total N banks) and calculate the cost.
Prepare a cash budget for the first quarter of the next year : Prepare a cash budget for the first quarter of the next year. Prepare a budgeted balance sheet as of the end of the first quarter of the next year.
Identify two or more wellness nursing diagnoses based : Identify two or more wellness nursing diagnoses based on your family assessment. Wellness and family nursing diagnoses are different than standard nursing diagnoses. A list of wellness and family nursing diagnoses, from J. R. Weber's Nurses Handbo..
Calculate the mass in grams of the cylinder : A copper cylinder, 12.0 cm in radius, is 44.0 cm long. If the density of copper is 8.90 g/cm3, calculate the mass in grams of the cylinder. (assume pi=3.14)
How will this affect the presentation : What do you know about these cultures-specifically their economic, political, educational, and social systems-that could help you in getting them together?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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