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

  The bookstore wants you to make an object-oriented model

student bookstore at pleasant creek community college situation the bookstore staff at pleasant creek community college

  Application that inputs ten numbers from the user

Write an application that inputs ten numbers from the user, each number can be between 10 and 100, inclusive. As each number is read in determine if it is a number already entered.

  Explain tostring methods in java

Add an instance variable, named department, of type String. Supply a method toString that prints the manager's name,department, and salary. Make a class Executive inherit from Manager.

  Write a program to simulate the behavior of the philosophers

Write a program to simulate the behavior of the philosophers, where each philosopher is a thread and the chopsticks are shared objects.

  Accepts a binary number from the user

Write a Java test program that accepts a binary number from the user. You should store the binary number in a String. Your program should then use afor loop to sequence through every character in the String, counting the number of ones, zeros, and..

  What is abstract class and how it differ from regular class

What is an abstract class and how does it differ from a regular class? Why are abstract class constructors defined as protected

  Create a login form

In this week's lab, we will create a login form, validate a user based on their login name and password, and allow them to access the system or not

  Create a time design

Create a time design. The requirements are as follows: Clock system must be self-contained object that can be instantiated, and given start, pause, fast forward, and slow down settings

  Advance programming hi i want two copies of the assignment

hi ltbrgti want two copies of the assignment me and my friend are doing same assignment. ltbrgtwe need both the

  Implementation of tru file system

Design and implement TFS. It is a file system that can be used on a standalone machine. There are several simplifying assumptions such as a single application is accessing the file system at any given time.

  Explain the process of initializing an object

Which method is invoked in a particular class when a method definition is overridden in several classes that are part of an inheritance hierarchy

  Compute the daily wage of an employee

Write a JAVA program that will input Employee Name, Rate per hour, No. of hours worked and will compute the daily wage of an employee. If the number of hours worked exceeds eight hours add 30% to each excess hours as overtime rate.

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