This is the last of 6 homework assignments, and the entire assignment is worth 100 points....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
This is the last of 6 homework assignments, and the entire assignment is worth 100 points. This is an abbreviated homework, so that you have plenty of time to work on your final project. This assignment focuses on arrays. The one programming exercise is worth 100 points. Check the course web page for TA office hours. If you need help, ask the TAs, come to office hours, make an appointment, etc. Instructions on what to hand in are provided in each section below. Programming Question - Processing Arrays - 100 points For this programming question, you'll write a single java file, with a main method, and two accessory methods. The pseudocode for the program is shown in Figure 1. This coding assignment is VERY similar to lab 8, so be sure to refer to it, if you have questions. The main method will: Page 1. Ask the user to specify how many double values he/she wants to tally 2. Create an array of appropriate size, and randomly generate double numbers to fill the array 3. Invoke a method that takes as input an array of doubles, and which will sum and print to the screen the values of the array 4. Invoke a method that takes as input an array of doubles, and which will calculate and output to the screen the average, maximum, and minimum values in the array Sum Method Takes as input an array of doubles Returns void Prints the number of elements in the array and the sum of the entries CS110, Tatiana Harrison, CWU, HW 6: Arrays Page 1 of 3 1 > of 3 ZOOM + Average, Maximum, Minimum Method Takes as input an array of doubles Returns void For the input array, calculates the average, maximum, and minimum entries, and prints/displays them to the user Main method 1. Set up Scanner Object 2. Ask user, "How many double numerical entries do you have?" 3. Read from the keyboard, the user's input, and save that into the variable sizeOfArray 4. Declare an array of size sizeOfArray 5. Use the Random number Class and walk over the array, and input into each slot, a random number 6. Invoke the SumMethod 7. Invoke the Average, Maximum, Minimum Method Figure 1: Pseudocode for a program that creates an array, and calculates the sum, average, maximum. and minimum values of the array This programming assignment is on purpose open-ended and quite vague. You need to: choose the name of the program choose the variable names etc. By this point of the quarter, you should be comfortable writing a short simple program to achieve a simple task. This portion of the homework can be completed with very few lines of code (fewer than 50). RUBRIC DO NOT ZIP FILES Item Processing Arrays Program compiles, no syntax errors Two methods written (plus main) Style and Formatting Commented CS110, Tatiana Harrison, CWU, HW 6: Arrays Points Available 25 25 25 Page 2 of 3 Page < 2 > of 3 อ ZOOM + This is the last of 6 homework assignments, and the entire assignment is worth 100 points. This is an abbreviated homework, so that you have plenty of time to work on your final project. This assignment focuses on arrays. The one programming exercise is worth 100 points. Check the course web page for TA office hours. If you need help, ask the TAs, come to office hours, make an appointment, etc. Instructions on what to hand in are provided in each section below. Programming Question - Processing Arrays - 100 points For this programming question, you'll write a single java file, with a main method, and two accessory methods. The pseudocode for the program is shown in Figure 1. This coding assignment is VERY similar to lab 8, so be sure to refer to it, if you have questions. The main method will: Page 1. Ask the user to specify how many double values he/she wants to tally 2. Create an array of appropriate size, and randomly generate double numbers to fill the array 3. Invoke a method that takes as input an array of doubles, and which will sum and print to the screen the values of the array 4. Invoke a method that takes as input an array of doubles, and which will calculate and output to the screen the average, maximum, and minimum values in the array Sum Method Takes as input an array of doubles Returns void Prints the number of elements in the array and the sum of the entries CS110, Tatiana Harrison, CWU, HW 6: Arrays Page 1 of 3 1 > of 3 ZOOM + This is the last of 6 homework assignments, and the entire assignment is worth 100 points. This is an abbreviated homework, so that you have plenty of time to work on your final project. This assignment focuses on arrays. The one programming exercise is worth 100 points. Check the course web page for TA office hours. If you need help, ask the TAs, come to office hours, make an appointment, etc. Instructions on what to hand in are provided in each section below. Programming Question - Processing Arrays - 100 points For this programming question, you'll write a single java file, with a main method, and two accessory methods. The pseudocode for the program is shown in Figure 1. This coding assignment is VERY similar to lab 8, so be sure to refer to it, if you have questions. The main method will: Page 1. Ask the user to specify how many double values he/she wants to tally 2. Create an array of appropriate size, and randomly generate double numbers to fill the array 3. Invoke a method that takes as input an array of doubles, and which will sum and print to the screen the values of the array 4. Invoke a method that takes as input an array of doubles, and which will calculate and output to the screen the average, maximum, and minimum values in the array Sum Method Takes as input an array of doubles Returns void Prints the number of elements in the array and the sum of the entries CS110, Tatiana Harrison, CWU, HW 6: Arrays Page 1 of 3 1 > of 3 ZOOM + This is the last of 6 homework assignments, and the entire assignment is worth 100 points. This is an abbreviated homework, so that you have plenty of time to work on your final project. This assignment focuses on arrays. The one programming exercise is worth 100 points. Check the course web page for TA office hours. If you need help, ask the TAs, come to office hours, make an appointment, etc. Instructions on what to hand in are provided in each section below. Programming Question - Processing Arrays - 100 points For this programming question, you'll write a single java file, with a main method, and two accessory methods. The pseudocode for the program is shown in Figure 1. This coding assignment is VERY similar to lab 8, so be sure to refer to it, if you have questions. The main method will: Page 1. Ask the user to specify how many double values he/she wants to tally 2. Create an array of appropriate size, and randomly generate double numbers to fill the array 3. Invoke a method that takes as input an array of doubles, and which will sum and print to the screen the values of the array 4. Invoke a method that takes as input an array of doubles, and which will calculate and output to the screen the average, maximum, and minimum values in the array Sum Method Takes as input an array of doubles Returns void Prints the number of elements in the array and the sum of the entries CS110, Tatiana Harrison, CWU, HW 6: Arrays Page 1 of 3 1 > of 3 ZOOM + This is the last of 6 homework assignments, and the entire assignment is worth 100 points. This is an abbreviated homework, so that you have plenty of time to work on your final project. This assignment focuses on arrays. The one programming exercise is worth 100 points. Check the course web page for TA office hours. If you need help, ask the TAs, come to office hours, make an appointment, etc. Instructions on what to hand in are provided in each section below. Programming Question - Processing Arrays - 100 points For this programming question, you'll write a single java file, with a main method, and two accessory methods. The pseudocode for the program is shown in Figure 1. This coding assignment is VERY similar to lab 8, so be sure to refer to it, if you have questions. The main method will: Page 1. Ask the user to specify how many double values he/she wants to tally 2. Create an array of appropriate size, and randomly generate double numbers to fill the array 3. Invoke a method that takes as input an array of doubles, and which will sum and print to the screen the values of the array 4. Invoke a method that takes as input an array of doubles, and which will calculate and output to the screen the average, maximum, and minimum values in the array Sum Method Takes as input an array of doubles Returns void Prints the number of elements in the array and the sum of the entries CS110, Tatiana Harrison, CWU, HW 6: Arrays Page 1 of 3 1 > of 3 ZOOM + Average, Maximum, Minimum Method Takes as input an array of doubles Returns void For the input array, calculates the average, maximum, and minimum entries, and prints/displays them to the user Main method 1. Set up Scanner Object 2. Ask user, "How many double numerical entries do you have?" 3. Read from the keyboard, the user's input, and save that into the variable sizeOfArray 4. Declare an array of size sizeOfArray 5. Use the Random number Class and walk over the array, and input into each slot, a random number 6. Invoke the SumMethod 7. Invoke the Average, Maximum, Minimum Method Figure 1: Pseudocode for a program that creates an array, and calculates the sum, average, maximum. and minimum values of the array This programming assignment is on purpose open-ended and quite vague. You need to: choose the name of the program choose the variable names etc. By this point of the quarter, you should be comfortable writing a short simple program to achieve a simple task. This portion of the homework can be completed with very few lines of code (fewer than 50). RUBRIC DO NOT ZIP FILES Item Processing Arrays Program compiles, no syntax errors Two methods written (plus main) Style and Formatting Commented CS110, Tatiana Harrison, CWU, HW 6: Arrays Points Available 25 25 25 Page 2 of 3 Page < 2 > of 3 อ ZOOM + Average, Maximum, Minimum Method Takes as input an array of doubles Returns void For the input array, calculates the average, maximum, and minimum entries, and prints/displays them to the user Main method 1. Set up Scanner Object 2. Ask user, "How many double numerical entries do you have?" 3. Read from the keyboard, the user's input, and save that into the variable sizeOfArray 4. Declare an array of size sizeOfArray 5. Use the Random number Class and walk over the array, and input into each slot, a random number 6. Invoke the SumMethod 7. Invoke the Average, Maximum, Minimum Method Figure 1: Pseudocode for a program that creates an array, and calculates the sum, average, maximum. and minimum values of the array This programming assignment is on purpose open-ended and quite vague. You need to: choose the name of the program choose the variable names etc. By this point of the quarter, you should be comfortable writing a short simple program to achieve a simple task. This portion of the homework can be completed with very few lines of code (fewer than 50). RUBRIC DO NOT ZIP FILES Item Processing Arrays Program compiles, no syntax errors Two methods written (plus main) Style and Formatting Commented CS110, Tatiana Harrison, CWU, HW 6: Arrays Points Available 25 25 25 Page 2 of 3 Page < 2 > of 3 อ ZOOM + Average, Maximum, Minimum Method Takes as input an array of doubles Returns void For the input array, calculates the average, maximum, and minimum entries, and prints/displays them to the user Main method 1. Set up Scanner Object 2. Ask user, "How many double numerical entries do you have?" 3. Read from the keyboard, the user's input, and save that into the variable sizeOfArray 4. Declare an array of size sizeOfArray 5. Use the Random number Class and walk over the array, and input into each slot, a random number 6. Invoke the SumMethod 7. Invoke the Average, Maximum, Minimum Method Figure 1: Pseudocode for a program that creates an array, and calculates the sum, average, maximum. and minimum values of the array This programming assignment is on purpose open-ended and quite vague. You need to: choose the name of the program choose the variable names etc. By this point of the quarter, you should be comfortable writing a short simple program to achieve a simple task. This portion of the homework can be completed with very few lines of code (fewer than 50). RUBRIC DO NOT ZIP FILES Item Processing Arrays Program compiles, no syntax errors Two methods written (plus main) Style and Formatting Commented CS110, Tatiana Harrison, CWU, HW 6: Arrays Points Available 25 25 25 Page 2 of 3 Page < 2 > of 3 อ ZOOM + Average, Maximum, Minimum Method Takes as input an array of doubles Returns void For the input array, calculates the average, maximum, and minimum entries, and prints/displays them to the user Main method 1. Set up Scanner Object 2. Ask user, "How many double numerical entries do you have?" 3. Read from the keyboard, the user's input, and save that into the variable sizeOfArray 4. Declare an array of size sizeOfArray 5. Use the Random number Class and walk over the array, and input into each slot, a random number 6. Invoke the SumMethod 7. Invoke the Average, Maximum, Minimum Method Figure 1: Pseudocode for a program that creates an array, and calculates the sum, average, maximum. and minimum values of the array This programming assignment is on purpose open-ended and quite vague. You need to: choose the name of the program choose the variable names etc. By this point of the quarter, you should be comfortable writing a short simple program to achieve a simple task. This portion of the homework can be completed with very few lines of code (fewer than 50). RUBRIC DO NOT ZIP FILES Item Processing Arrays Program compiles, no syntax errors Two methods written (plus main) Style and Formatting Commented CS110, Tatiana Harrison, CWU, HW 6: Arrays Points Available 25 25 25 Page 2 of 3 Page < 2 > of 3 อ ZOOM +
Expert Answer:
Answer rating: 100% (QA)
Heres the best way to solve it Expertverified 100 2 ratings Share PROGRAM ArrayOfDoublesjava import javautilArrays import javautilScanner public class ... View the full answer
Related Book For
Organizational Behavior
ISBN: 978-0273774815
8th Edition
Authors: Andrzej A. Huczynski, David A. Buchanan
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Predictive text entry systems are familiar on touch screens and mobile phones. This question asks you to consider how the same principles might be used in a programming editor for creating Java code....
-
Discuss the concept of the Process Spectrum. Use examples where appropriate.
-
In a June 2013 article, published online by The Street, B. O'Connell discussed the results of a survey on opportunities for graduating college students. In one aspect of the survey, the following...
-
a. Suppose that the inequalities hold for values of x close to zero. What, if anything, does this tell you about Give reasons for your answer. b. Graph the equations y = (1/2) - (x 2 /24), y = (1 -...
-
Why is it advisable to obtain a written confession from the subject of an investigation?
-
Novak Corporation is preparing its 2010 statement of cash flows, using the indirect method. Presented below is a list of items that may affect the statement. Using the code below, indicate how each...
-
Find the x and y intercept For the equation y= 2 x+1, Part: 0/3 Part 1 of 3 (a) Find the x-intercept. The x-intercept is DD
-
Several years after reengineering its production process, Dettling Corporation hired a new controller, Alana Metzgar. She developed an ABC system very similar to the one used by Dettling's chief...
-
The following accounts were included on Stacy's Style Consultants post-closing trial balance at December 31, 2008: $ 2,000 5,500 11,000 40,000 10,000 3,000 60,000 1,000 39,000 5,000 Accounts payable...
-
Diagram a mammalian sperm cell and label these features: cell- level morphology (head, midpiece, and flagellum tail), organelles (nucleus, cell membrane, mitochondria, and acrosomal vesicle).
-
compute the amount of (a) ordinary simple interest and (b) the amount of exact simple interest. Then compute (c) the difference between the two interest amounts Principal Rate 1 P4,590 6% Time 180...
-
2. An orifice meter was calibrated for dry air at 7=90 F and P = 1.3 atm. The calibration data are as follows: (4+4+4+5 points) AP, inches of water Q, ft/minute 0 0 0.5 2.0 1.0 3.0 2.0 4.2 3.0 5.0...
-
. Use the August 15, 2022 U.S. Treasury quotes shown below to calculate the discount factor and spot rate for each maturity given in the table. Maturity Coupon Price 2/15/23 2.000 99.5 8/15/23 2.500...
-
Given the functions f(x) = sinx and function y-fx) +8(x). y= g(x)=3, determine the range of the combined -
-
A collision in which the total kinetic energy after collision is less than before collision is called inelastic collision off center collision elastic collision straight line collision
-
Ex. (17): the vector field F = x i-zj + yz k is defined over the volume of the cuboid given by 0x a,0 y b, 0zc, enclosing the surface S. Evaluate the surface integral ff, F. ds?
-
Consider your next organizational behaviour assignment. Have you been given a specified maximum word limit, a submission date, and a warning about plagiarism? How do those instructions influence your...
-
Have you had experience of social loafing or free riding in your educational or work context? What advice would you give to your instructor or manager to remove it?
-
Suggest how a managers role might be affected by the seniority of his or her position in the hierarchy, the industry sector, and organizational size
-
A researcher is investigating the relationship between fuel economy and driving speed. He makes six runs on a test track, each at a di erent speed, and measures the kilometers traveled on one liter...
-
Table 1 presents a group of selected countries and information regarding these countries as of July, 2014. Identify the individuals, variables, and data in Table 1. Approach An individual is an...
-
Determine whether the following variables are qualitative or quantitative. (a) Gender (b) Temperature (c) Number of days during the past week that a college student studied (d) Zip code Approach...
Study smarter with the SolutionInn App