Create three arrays of int with the same size

Assignment Help Basic Computer Science
Reference no: EM131010290

Short answer (You must type your answers)

1) Given double[ ] abc = new double[N], where N is an integer number. Identify:

a) array type

b) array name

c) the index of the first element

d) the name of the first element

e) the index of the last element

f) the name of the last element

g) the index of the 5th element

h) the number of elements in the array


1. Create three arrays of int with the same size (you choose the size). Input two of them from keyboard and addthe two arrays (element by element) and store the array of sums to the third array and output it to the console.
For example: {1, 2, 3} + {4, 5, 6} will result in the array of {5, 7, 9}

2. Generate an array of 10,000 random numbers (GPAs) from zero to four. Report the percentage of each of the numbers (0, 1, 2, 3, and 4) in the array.

3. A company has 10 stores. Input the annual sales for each store. Find the store with the maximum sales, the one with the minimum sales, and find the average annual sales for the 10 stores. Print the maximum, minimum sales and their store index, and average sales.


• Your answers to the "Short answer" questions. Your answers must follow the questions.

• Source code for the Programming questions

• Screenshots of program running page.

Reference no: EM131010290

Research this incident using quality and reputable resources

Determine whether the software issue, which caused inaccurate evidence in the trial, would've affected your perception of the prosecution's case if you were a juror in this

Explaining use of information technologies to act ethically

When it comes to use of information technologies, it is frequently difficult to find out how to act ethically. Consider some of your own use of information technologies.

Administrator of the contoso corporation

You are administrator of the Contoso Corporation. You installed a cluster of computers that need to use the same service account for the Widget application/services. What solu

Innovative uses of wireless networks

In your own words, explain how wireless networking technologies, combined with sensors, are used to create the virtual fence product. Your response should be 150+ words and

Compare and contrast between make-to-stock and make-to-order

Write your own personal statement or comment with the essay below with each question.1. Compare and contrast between make-to-stock and make-to-order systems. In your compariso

Which of the following can be valid host id

Your router has the following IP address on Ethernet0: Which of the following can be valid host IDs on the LAN interface attached to the router? 1

Agent based e-learning solution

Q. Do a datailed study of the Case Study - Chapter 10 "Agent Based E-Learning Solution" and prepare a group report considering the groups created during lecture. Submit your

List the average fare permonth for each business traveler

Suppose we want to compute a data cube where the condition is that the minimumnumber of records is 10 and the average fare is over $500. Outline an efficient cubecomputation


Write a Review

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