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

  The eastern seaboard super express train

The Eastern Seaboard Super Express Train (ESSET) is a high speed train service between towns on the eastern seaboard of Australia. See a section dedicated to this in the Assignment 4 tab of this subject's Interact2 site for details on ESSET. The comp..

  Designing and prototyping a network

You are tasked with designing and prototyping a network for example.com, a national electronics retailer. Example.com currently has four regional stores (Nth, Sth, Eas, Wes) but has plans to expand as finances and their customer base permits.

  Explaining final results in cell to a percentage

Second quarter revenue total has increased from first quarter revenue total by 60.16%. Make sure to change cell format for final results in the cell to a percentage.

  Execution by responding to a number of user initiated events

Demonstrate what you have learned in these first two chapters of VB by designing a user interface that controls the order of the tabs, set the initial properties of form controls, and then modifies properties during execution by responding to a..

  Wish to represent an n-vertex graph

Suppose we wish to represent an n-vertex graph G using the edge list structure, assuming we identify the vertices with the integers in the set {0,1,...,n?1}.

  Create a catch block that catches the eventual

Create a catch block that catches the eventual IndexOutOfRangeException; within the block, display "Now you've gone too far." on the screen. Save the fi le as GoTooFar.cs. Make sure that you document your code and how to test it (test case)

  Database-related except the history of databases

You can write about anything database-related except the history of databases. You must find something that relates to current and future issues in databases; the following Web site, www.sqlservercentral.com, is an excellent source for ideas.

  Which of the following is not true about public inheritance

Which of the following is not true about public inheritance?

  Importance of creating an order of volatility

Develop a detailed plan to approach and secure the incident scene based on the information you have from the scenario - Discuss the initial steps you would take for the investigation

  Open source licenses

Open source licenses are licenses that comply with the Open Source Definition; in short, they allow software to be freely used, modified, and shared. To be approved by the Open Source Initiative (also known as the OSI), a license must go through the ..

  What is the balance factor at the root node after the insert

Insert 100 in the AVL tree of Figure 11-36. The resulting tree must be an AVL tree. What is the balance factor at the root node after the insertion?

  Recommends solutions for improving the application

The project for this course is the creation of a company consult debrief that analyzes an existing web application with regard to its human-computer interaction (HCI) and recommends solutions for improving the application to meet the needs of the ..

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