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

Programming

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.

Submission:

• 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

Questions Cloud

Suppose no new common stock was issued or retired : ABC Inc.’s December 31, 201 0 balance sheet showed total common equity of $4,000,000 and 200,000 shares of stock outstanding. During 2011, the firm had $450,000 of net income, and it paid out $1 5 0,000 as dividends. Suppose no new common stock was i..
Who is coming in to consult with her about a divorce : Your supervising attorney runs late in court and asks you to meet with a potential client who is coming in to consult with her about a divorce. The client Jane arrives with her parents Sue and Bob, and tells you the following story. Jane and Jim have..
Quantitative assessment of glenohumeral translation : The paper "Quantitative Assessment of Glenohumeral Translation in Baseball Players" (TheAmerican Journal of Sports Medicine [2004]: 1711-1715) considered various aspects of shoulder motion for a sample of pitchers and another sample of position playe..
Why you think that the researchers included a control group : Why would it be important to determine if the researchers assigned the women participating in the study at random to one of the two groups? Explain why you think that the researchers included a control group in this study.
Create three arrays of int with the same size : 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..
A local bank has two saving options : A local bank has two saving options. One offers 6% interest compound on a daily bases while the other offers 6.5% compounded quarterly.  Which saving option would you choose?
Determine where the power station should be located : Determine where the power station should be located if the sum of the squares of the distances from each community to the site is minimized.
What is the future value-retirement goal is to accumulate : What is the future value of $4000 in 5 years if it is invested at an interest rate of 6.00%? Suppose your retirement goal is to accumulate $400 in 2.5 years. How much do you need to deposit in the bank today to meet your goal if the bank offers an in..
Investigating the effect of a drug : Suppose that you were interested in investigating the effect of a drug that is to be used in the treatment of patients who have glaucoma in both eyes. A comparison between the mean reduction in eye pressure for this drug and for a standard treatme..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Using wireshark note the ip address and tcp port number

Using wireshark note the IP address and TCP port number used by your client computer (source) to transfer the file to any FTP server?

  Facilitate data exchange functionality in a cloud service en

Database solutions today must be able to adapt and integrate among various computing applications. Determine at least three forms of database connectivity methods that can be used as an interface between applications. For each method you have ..

  One of the benefits of integration

One of the benefits of integration is that it lets developers leverage existing programs to develop new, value-added applications (called mashups). Instead of needing to re-develop services that already exist, a developer can use middleware to ..

  Enhance your site

Write a two- to four-page paper describing how you would change or enhance your site if you "knew then what you know now". Be sure to include interaction with Spry Validation Text Field, Spry Collapsible Panel widget, and Adobe widgets in your new..

  Centralized database management systems and distribute

Compare and contrast benefits and challenges that exist between centralized database management systems and distributed database management systems. Identify potential business environments where each can be properly used.

  Exposure of the body to external radiation

exposure of the body to external radiation and ingestion or inhalation of radioactive matter

  What is included in the full course package

What is included in the full course package. The entire course study guide includes the homework solution in notepad for DBM

  Splits the word into a unicode character array

These tasks entail developing a single program that contains methods of the following tasks. Your program may run either on the command-line or as an applet. Write methods that take a word input by the user (10%) and then: (10%) splits the word int..

  Binary and hexadecimal number systems

1. Let's get some practice with the binary and hexadecimal number systems a. Convert the hex value A1B2C3 into binary

  If the student takes 12 credits and under

They pay $2000.00 tuition. If the student takes 12 credits and under, they pay the cost per credit that is on the input record. You need to output the student name, number of credits and total tuition.

  How many automobiles are to be described

How many autos do you want?: 2 Enter make: Honda Enter color: Blue Enter make: Chevy Enter color: Red You have a Blue Honda. You have a Red Chevy.

  Technology and job design

Advancements in technology have certainly made our lives easier over the last twenty years. They've also changed the nature of how many of us do our jobs. A great example is right here in this course...professors can teach from home!

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