Question

In: Computer Science

As a programmer in a java project, you have been asked by your project manager to...

As a programmer in a java project, you have been asked by your project manager to describe the most efficient way to store the following assigned numbers 10,20,30,1000,200,350 for an operation which involves on calculation such as sum and average.

Solutions

Expert Solution

The most efficient way to store the following assigned numbers 10,20,30,1000,200,350 for an operation which involves on calculation such as sum and average is an array.

The efficient way to store numbers is an array. It provides indexing and fast access of array elements. As we are required to perform calculations such as sum and average, the elements should be accessed faster. The fast accessing of element can be done by using array. So, I would prefer array to store the above numbers.


Related Solutions

The project description: As a programmer, you have been asked to write a Java application, using...
The project description: As a programmer, you have been asked to write a Java application, using OOP concepts, for a Hospital with the following requirements: • The Hospital has several employees and each one of them has an ID (int), name (string), address (string), mobile phone number (string), email (string) and salary (double) with suitable data types. • The employees are divided into: o Administration staff: who have in addition to the previous information their position (string). o Doctor: who...
As a programmer, you have been asked to write a Java application, using OOP concepts, for...
As a programmer, you have been asked to write a Java application, using OOP concepts, for a Hospital with the following requirements: • The Hospital has several employees and each one of them has an ID (int), name (string), address (string), mobile phone number (string), email (string) and salary (double) with suitable data types. • The employees are divided into: o Administration staff: who have in addition to the previous information their position (string). o Doctor: who have also a...
You have been hired as a programmer by a major bank. Your first project is a...
You have been hired as a programmer by a major bank. Your first project is a small banking transaction system. Each account consists of a number and a balance. The user of the program (the teller) can create a new account, as well as perform deposits, withdrawals, balance inquiries, close accounts, etc.. Initially, the account information of existing customers is to be read into an array of BankAccount objects. The private data members of the BankAccount Class will include: first...
You have been asked to replace the project manager who was heading up your firm’s new...
You have been asked to replace the project manager who was heading up your firm’s new compensation and benefits system. One of the reasons the project manager is being replaced is because the project schedule had the wrong resources assigned (e.g., resources who do not fully understand compensation and benefits). You have been asked to solve this problem quickly by either replacing the resources or getting the resources up-to-speed on compensation and benefits. Present your recommendation for solving this critical...
For your portfolio project, you have been asked to prepare a portfolio of materials for your...
For your portfolio project, you have been asked to prepare a portfolio of materials for your boss relating to a controversial topic in your current field of study, the topic of which you chose in the Topic Discussion. My topic is why getting vaccinated is important For this assignment, you will prepare a Letter of Transmittal that will be included in your final portfolio. Use the information from this lesson to help you format this letter, which should be one...
You have been appointed as the Project Manager for a New Product Launch Project by your...
You have been appointed as the Project Manager for a New Product Launch Project by your company. You must prepare a set of documents for the project kick-off meeting coming up next month. Task 1: Prepare a Project Charter for the New Product Launch Project (according to the choice of your product as explained above). Please use the Project Charter template given below Name of the Project Background [Why is the project being undertaken? Describe an opportunity or problem that...
You have been asked to make a short presentation to the manager of your local community...
You have been asked to make a short presentation to the manager of your local community mental health centre about the value in adopting a MedTEAM or an Illness Management and Recovery (IMR) approach to working with people with psychiatric disabilities. Pick ONE aspect of MedTEAM or IMR that you'd like to promote. state: how that aspect will benefit client outcomes and at least one point of evidence (with reference) supporting your claim. also discuss the psychiatric rehabilitation guiding principle/s...
You have been asked to present your recommendation to the mayor and city manager with respect...
You have been asked to present your recommendation to the mayor and city manager with respect to management of the arena. You must outline a minimum of three primary reasons why the city should continue with public management and you must also demonstrate why private.
You have been asked by the CFO of your company to evaluate the proposed expansion project....
You have been asked by the CFO of your company to evaluate the proposed expansion project. You collected the following data: Investment outlays: $200,000 ($25,000 for nondepreciable land, $175,000 for equipment) Life of the project: 5 years Depreciation for equipment: Your firm uses an accelerated depreciation method, and the equipment is MACRS (modified accelerated cost recovery system) 3-year property with depreciation rates of 33.33% in Year 1, 44.45% in Year 2, 14.81% in Year 3, and 7.41% in Year 4....
You have been asked by the president of your company to evaluate proposed project involving a...
You have been asked by the president of your company to evaluate proposed project involving a spectrometer. The equipment's base price is $140,000, and it would cost another $30,000 to modify it for special use by your firm. The spectrometer, which falls into the MACRS 3-year class, would be sold after 3 years for $60,000. The applicable depreciation rates are 33 percent, 45 percent, 15 percent, and 7 percent. Use of the equipment would require an increase in net operating...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT