Write a menu-driven Java program that performs different ope…
Write a menu-driven Java program that performs different operations based on user choice. The program must display a menu repeatedly until the user exits. Use switch-case to handle choices. (10 points) Menu Options: 10 x 7 = 70 Create an Empty array – Your user would first provide the size of the array. Prototype int[] CreateEmptyArray (int size) Fill array – To request the user to provide integers to fill the array. Prototype void FillArray (int [] a) Sum – Display the sum element of the integer array. Prototype int Sum (int [] a) Max – Display the maximum element of the integer array. Prototype int Max (int [] a) Average– Display the average of all elements in the integer array. Prototype double Average (int [] a) Find an element in the array – Given an integer, find the element in the array that matches the integer. If a match is found, the location of the element in the array should be returned. If not found, the function should return -1. Prototype int Find (int [] a, int val) Print all elements of the array – Prints all the elements of the array. Print them in the same line, separated by a tab. Prototype void display (int [] a) Exit Each operation must be written as a separate method. You must use the given prototypes to get the full grade. The switch case inside the main method should invoke different methods based on options provided. The main function should test all the functionalities. (20 points) You are allowed to use your existing code from assignments, lab, etc, for reference. Beyond that, you are not allowed to use any additional resources.
Read DetailsPlease operationalize the following variables in accordance…
Please operationalize the following variables in accordance with the identified form. Socio-economic Class (must be an ordinal variable): Socio-economic Class (must be a nominal variable): Partisanship (must be an ordinal variable): Partisanship (must be a nominal variable): Age (must be an ordinal variable): Age (must be a nominal variable): Age (must be an interval variable):
Read DetailsBelow you are given a research question (underlined). As we…
Below you are given a research question (underlined). As we discussed in class, there are many ways one may approach a given research question. In broad terms, the researcher must decide whether they are looking to do a qualitative or quantitative analysis. For the provided research question, please explain how you construct a quantitative study to investigate the question, and then explain how you would construct a qualitative study to investigate the same question. For each type of inquiry, please be sure to identify all the components in each bullet point. What is the relationship between democratic attitudes and economic performance? Quantitative Study: Case(s): Name and operationalization of dependent variable: Name and operationalization of primary independent variable: How would you collect data? Method: Explain what makes this a quantitative study. In your discussion, identify the strengths and weaknesses of this approach. (This portion should be a minimum of 15 sentences). Qualitative Study: Case(s): Name and operationalization of dependent variable: Name and operationalization of primary independent variable: How would you collect data? Method: Explain what makes this a qualitative study. In your discussion, identify the strengths and weaknesses of this approach. (This portion should be a minimum of 15 sentences).
Read Details