Calculate and displays the cost of computing infrastructure

Assignment Help JAVA Programming
Reference no: EM131134733

Objectives

This assessment item is designed to test your understanding of objects, classes, types, operators, standard input/output, loops, if statements and methods.

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. 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 $20000

*********Receipt for Total Cost, Lowest Cost and Average Cost********* Total Cost is $32200
Lowest Cost is $1000 Average Cost is $8050

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
}
}

Reference no: EM131134733

Questions Cloud

Determine the chromosome constitution and phenotypic ratios : In Drosophila melanogaster, eyeless (ey) is a recessive trait in which the eyes are tiny or absent. Assuming random segregation of chromosomes into gametes, determine the chromosome constitution and phenotypic ratios in the offspring
Which modeling assumptions may be violated for this data : Which modeling assumptions may be violated for this data? Describe and apply techniques presented in class to alleviate the modeling violations that you found. Justify all modeling steps.
Was groupon wise to turn down six billion dollar from google : Was Groupon wise to turn down $6 billion from Google? Could it really be worth $25 billion? Why do consumers love Groupon so much? Are Groupon campaigns good for merchants?
What is a possible genotype for this plant : A series of experiments shows that oil content in a diploid grain is influenced by five genes (a through e) with additive alleles. The highest producing strain is 20% oil content; the lowest has close to 0%. A plant of unknown genotype has an oil ..
Calculate and displays the cost of computing infrastructure : 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.
Demonstrate the ability to clearly communicate ideas : The paper should demonstrate the ability to clearly communicate ideas about financial management in a professional manner and tone.
What is the frequency of crosses : Consider a population under Hardy-Weinberg equilibrium, where the frequency of the Rh-negative allele, d, is 0.3. What is the frequency of crosses that could potentially produce children with erythroblastosis fetalis
What is the maximum you are willing to pay as a finders fee : How would your answer to part (b) change if only 1 out of 10 used cars was a plum?
How can older rock be found atop younger rock : Find Martinsburg, WV, in the extreme northwest corner. Now locate Martinsburg, MD, which is just to the to the east of Harrison Island and Mason Island along a bend in the Potomac in the south central area of the map. Which is surrounded by the ol..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Calculates the average test scores

You are given a list of students' names and their test scores. Design an algorithm that does the following: a. Calculates the average test scores.

  Structure named dog with a string field

Create a Structure named dog with a string field for the Dog's name. Create a Structure named Cat with a string field for the Cat's name. Write a program that declares one Dog and one Cat, and assign names to them. Write two overloaded functions n..

  Computes and prints the total cost of the three items

A program is required which prompts the user to enter the individual price of three different items and computes and prints the total cost of the three items as well as the average cost. Remember to add sales tax (5% or 0.05) to the total cost.

  Write a class array that encapsulates an array

Write a class Array that encapsulates an array and provides bounds-checked access. The private instance variables should be int index and inarray[10]. The public members should be a default constructor and methods (signatures shown below) to provide ..

  Chat monitoring system

The name of the project is chat monitoring system. in the file you will see the screenshot diagram 2A are my design, You need to upgrade, to look professional like the diagram 2B. Java, netbeans and GUI.

  Using a linked implementation of graph write a method that

using a linked implementation of graph write a method that takes two nodes as input and returns true if joining an edge

  Problem 1write a java class called problem1 implement the

problem 1write a java class called problem1. implement the following method in your classpublic static int

  Implement one class called parking meter

Implement one class called parking meter, that is a simple model of a coin operated parking meter

  Describe how an eavesdropped can gain access

Describe how an eavesdropped can gain access to the remote server with a relatively modest number of guesses ( Hint:  The eavesdropped starts guessing after the original user has typed all but one character of the password.

  Write a method in java that uses a switch statement

Write a method in JAVA that uses a switch statement and takes a person's age using an integer parameter , then checks if the age is valid (0-110), and then RETURNS a string based on the age

  Java servlet uses doget to return markup document

Write down Java servlet which uses doGet to return markup document which provides your name, e-mail address, and mailing address along with a brief autobiography.

  Write a program in java that reads a file

Write a program in Java that reads a file of numbers of type int and outputs all the numbers to another file, but without there being any duplicate numbers.

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