14. Write code that reproduces the output shown below. In [18]: # Code Here In [19]: # DON'T WRITE HERE Out[19]: array([21, 22, 23, 24, 25, 26, 27, 28, 29, 30]) 15. Write code that reproduces the output shown below. In [20]: # Code Here In [26]: # DON'T WRITE HERE Out[26]: array([[41, 42, 43, 44, 45, 46, 47, 48, 49, 50]])
Q: Describe a cloud storage programme and discuss the benefits and drawbacks of using one over a standa...
A: Introduction Cloud storage: Cloud Storage is a service where data is remotely maintained, managed, ...
Q: What do you consider to be one of the most essential uses of AI in organisations? Talk about it. Fin...
A: Intro the question is What do you consider to be one of the most essential uses of AI in organizatio...
Q: 6. Write an algorithm to finds the largest of the number a, b and c. |
A: Algorithm to find largest of three given numbers is discussed here. Input three integers from the us...
Q: When a child process utilises unnamed pipes to read the parent's message buffer, what happens normal...
A: Step 1 Introduction A traditional pipe is "unnamed" and only lasts as long as the making process it...
Q: prototype inction Rever a reverse produce the reverse of the input integer array using the positions...
A: We need to define the Reverse() function as per the given description.
Q: How do Group Policy preferences allow you to centrally manage settings on the workstation?
A: Please refer below for your reference: Group Policy Preferences is defined as a collection of Group ...
Q: Write a c programming to find out maximum and minimum of some values using function which will retur...
A: Introduction: Function is basically a set of statements perform some computation and produces output...
Q: a. Demonstrate how the disc movements generated by the standard recursive technique for the Towers o...
A: Introduction: The question is about a. Demonstrate how the disc movements generated by the standard ...
Q: Consider the following GenBank Flat File: /home/jorvis/e_coli_k12_dh10b.gbk It contains a feature ta...
A: Introduction Consider the following GenBank Flat File: /home/jorvis/e_coli_k12_dh10b.gbk It contai...
Q: Consider this scenario: An exception is thrown when a function is called. What are the three things ...
A: An exception is thrown when a function is called. Things can do by the function is try-catch, throw...
Q: Determine whether each of these functions is a bijection from R to R a. ?(?) = −3? + 4 b. ?(?) = −3?...
A:
Q: Is it correct to say that stub isn't a network topology? explain
A: Introduction: A stub network, or pocket network, is a colloquial term that refers to a computer netw...
Q: Write code that outputs variable numDays as follows. End with a newline. Ex: If the input is: 3 the ...
A: Java program which user input and print the given Output : Days: 3
Q: Computer science Q #29) What do you believe is preventing testers from automating their work? Is th...
A: Introduction: What do you believe is preventing testers from automating their work Is there any way ...
Q: What influence does the blockchain have on "Systems Analysis and Design
A: Introduction: System Analysis and Design is assessing a company issue to improve it via the use of m...
Q: . Describe briefly the roles of the following: -Disk Cleanup -Disk Defragmenter -Remove hardware saf...
A: Disk cleanup:- •Disk Cleanup helps free up hard drive space to improve system performance. •Disk Cle...
Q: using Huffman encoding. What is your binary representation of the message? Draw your Huffman trie ...
A: Given message: “algorithms design and analysis is an art" We need to encode using Huffman encoding a...
Q: In what format does a password manager store encrypted passwords? Is it local, online, clod, or usb?
A: Introduction: Passwords managers allow one to generate strong and unique passwords and store them in...
Q: ks' topologies.
A: Types of Network TopologiesStar Topology: A wire connects all of the devices in a star topology to a...
Q: and 197
A: given - Comparison of Pakistan constitution 1956, 1962 and 1973.
Q: Refresh your C++ skill Using function with 2D array 1. Create a global variable 2 dimensional array ...
A: Step-1: StartStep-2: Declare a global variable of 2-D array of size [3][5]Step-3: Call function init...
Q: 2) Consider an ordered linked list with n entries in ascending order. Each entry has 2 components: a...
A: Ordered linked list is a singly sorted linked list.
Q: statement. What is the final value of the variable "number"? int number = 5; number = 10; number ...
A: Here the value of a number is 5 That is integer type then again it is modified to 10 and again it i...
Q: Discuss the use of the term "accuracy" in categorization difficulties. Is it a good or terrible idea...
A: Discuss:- The accuracy in classification problem. Whether it is good or bad to measure the performa...
Q: Question 3 If ao =1, a,=n-an-1+2, find a1, @2, @3 Please write the steps that are required to find t...
A: a0=1, an=n.an-1+2 Put n=1 a1=1.a1-1+2 = 1.a0+2 = 1.1+2=3 Put n=2 a2=1.a2-1+2 = 1.a1+2 = 1.3+2=...
Q: Note: This zyLab outputs a newline after each user-input prompt. For convenience in the examples bel...
A: As per the requirement program is completed. Algorithm: Step 1: Write the main() method Step 2: Ask ...
Q: What are the different models for software requirements, and their advantages and disadvantages in r...
A:
Q: and carry out binary instructions. What exactly is binary's purpos
A: Binary can refer to any of the following:Binary 0 and 11. Binary is a binary system invented by Gott...
Q: Suppose that Alice and Bob agree to hash an integer by taking the sum of the digits modulo 1212. Als...
A: The Answer for the following question is given in next step.
Q: Write a java program to reverse a user entered array in groups. Take the size of group from the user...
A: Hi Dear!! Please Upvote!! Your positive feedback will be more valuable!! ---------------------------...
Q: 9. Do Programming Exercise 3 from Chapter 5 using a function grade(score) that returns the letter gr...
A: Functions in python: Functions provide a way to break problems or processes down into smaller and in...
Q: What is ALE? Calculate ALE
A: ALE (annualized loss expectancy). In calculating risk, there are two general formulas that are used...
Q: Question 4 Why must the single-cycle datapath have separate instruction and data memories? The forma...
A: answer is
Q: Suppose Alice has a public key with modulus 815153 and encryption exponent 91. Eve intercepts a ciph...
A: In the above-mentioned question, the RSA cryptographic technique is mentioned, which has two huge pr...
Q: 1. Discuss the Cozy Bear incident of hacktivism. 2. please provide the references website 3.in-tex...
A: INTRODUCTION: Cozy Bear is a Russian hacker organization thought to be linked to one or more Russia...
Q: am writing an emu8086 program that will place the ASCII value of any character in the BL register an...
A: this is written to convert a pre-set string from Uppercase to Lowercase. currently moving what is at...
Q: ain and range of these functions. Note that in each case, to find the domain, determine the set of e...
A: Given : Find the domain and range of these functions. Note that in each case, to findthe domain, det...
Q: ology that you should mention is the difficulty in reconnection and fault isolation.
A: given - One of the disadvantages of the Bus topology that you should mention is the difficulty in re...
Q: List and explain the key technological components of a typical Hadoop system, as well as their purpo...
A: Introduction: HDFS is a distributed file system that operates on standard hardware. For many install...
Q: What is the overhead associated with the execution of a recursive function in terms of memory space ...
A: Introduction: In terms of memory space, the overhead is as follows: With the help of the system stac...
Q: Create a stack-based application to convert infinix to postfix.
A: Introduction: An expression can be written in Infix, Postfix, and Prefix Notation. In Infix Notation...
Q: What are the differences between the many types of system units found on desktop computers, laptop c...
A: Introduction: A system unit is a casing that houses electrical components for data processing. Most ...
Q: For the given hierarchy, Design Abstract classes, interfaces and justify your answer
A: interface MC { // create method named get_data publicvoidget_data(); // create method named put_data...
Q: Give details, and explain briefly on each of the following Core Practices: 1. Pair Programming 2. C...
A: Pair programming is a coding practice in which two programmers work together on a single machine. On...
Q: CFG
A: Note that (d) can't be derived with the given grammar.
Q: how to perceive the reputation of Pandora Jewellry and why. Back your perception up with strong reas...
A: The Reputation of Pandora Jewellery business can be achieved or increased by following the underwrit...
Q: Write a program that will sequentially list numbers from 0 to 50, changing its color depending on th...
A: Step 1 : Start Step 2 : Define a function delay() to print the numbers in an interval of 1 second. S...
Q: What does it mean to use "propositional logic"? What role does propositional logic play in AI?
A: Propositional Logic It is a technique of knowledge representation in logical or mathematical form. P...
Q: What is the Compressed Form of Post Office Protocol on a Computer?
A: Introduction: The post office protocol is the most extensively used message request protocol on the ...
Q: What are smart pointers, exactly? What purpose do they serve?
A: Introduction: A Smart Pointer is a pointer wrapper class with overloaded operators such as * and -&g...
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- var newStaff =new Employee[3]; is used to: Select one: a. Creates and initializes an Array with three objects of type Employee b. The statement is not valid in Java c. Create an Array to store two Employee objects d. Create an Array to store three objects of type EmployeeJava - Functions with 1D Arrays Create a program that asks the user for the size of an integer array and the elements of the array. Then, create a function called maxArray() with the following details: Parameters: An integer array The size of the integer array Return type - int Return value - the maximum value of the integer array Call the function you created in the main and pass the integer array and its size to it. Make sure to store the return value in a variable so you could print it afterwards. Input 1. First line contains the size of the array 2. Succeeding lines are the elements of an array 3. First line contains the size of the array 4. Succeeding lines are the elements of an array 5. First line contains the size of the array 6. Succeeding lines are the elements of an array 7. First line contains the size of the array 8. Succeeding lines are the elements of an array Output Enter size of array: 5 Enter element 1: 1 Enter element 2: 2 Enter…FYI: Please write the code in Pseudocode (no programming language please) 1. Write pseudocode to load a single array with data. Then search that array for a match. Here are the specifics. You do NOT have to write the entire program. Load the array with data from a file named customerNumbers Ask the user to enter their customer number Search the array for the customer number If you find a match output FOUND If there is no match output NOT FOUND
- getEvens public static int getEvens(int[] array, int[] result) Initializes the out parameter result with even values found in array Parameters: array - integer array result - integer array Returns: Number of even values found Throws: java.lang.IllegalArgumentException - if array or result (or both) are null, or if result's length is less than array's length. Any error message is fine (e.g., "Invalid parameters(s)")a) create a method that accepts a 2D array and shuffles it values (like playing cards) b) test your method from main: print your 2D array before and after c) create a similar method that will return the array. Call and test it from main .1- Write a program that prompts the user to read two integers and displays their sum. Your program should prompt the user to read the number again if the input is incorrect. Hint: use the InputMismatchException 2- Write a program that meets the following requirements: Creates an array with 100 randomly chosen integers. Prompts the user to enter the index of the array, then displays the corresponding element value. If the specified index is out of bounds, display the message Out of Bounds Hint: use the ArrayIndexOutOfBoundsException
- Python: Numpy def shopping_spree(spending_limit, store_nums):"""QUESTION 1- You and your friends decide to go on a shopping spree! You each have a spendinglimit listed in a 1D array called spending_limit.- You each know you will be going to a specific number of stores, store_nums, which is alsoa 1D array.- Sales tax is 7% at every store.- Calculate the average amount that you and each of your friends can spend at astore- Excluding sales tax from this calculation.- Return an array of how much you can each spend at a store, excluding sales tax.- THIS MUST BE DONE IN ONE LINEArgs:spending_limit (np.array)store_nums (np.array)Returns:np.array>> store_nums = np.array([15, 12, 8, 3, 4, 3, 6, 5, 7, 4])spending_limit = np.array([200, 500, 330, 120, 85, 60, 220, 190, 490, 300])>> print(shopping_spree(spending_limit, store_nums))[12.46105919 38.94080997 38.55140187 37.38317757 19.85981308 18.6915887934.26791277 35.51401869 65.42056075 70.09345794]"""# store_nums = np.array([15, 12,…5.Array _7 .Two-Dimensional ArrayInstruction:Create a java program that generates elements (randomly from 10 – 75) of a 2-dimensional array (5x5) using the Random Class then perform the following:1) Output the array elements2) Output the sum of prime numbers in the array3) Output the elements in the main diagonal.4) Output the sum of the elements below the diagonal.5) Output the sum of the elements above the diagonal.6) Output the odd numbers below the diagonal.7) Output the even numbers above the diagonal. NOTE: Please do not use the array methods available on the internet. Use .JAVA CODE PLEASE Functions with 1D Arrays Practice II by CodeChum Admin Create a program that asks the user for the size of an integer array and the elements of the array. Then, create a function with the following details: Parameters: An integer array The size of the integer array Return type - int Return value - the maximum value of the integer array Call the function you created in the main and pass the integer array and its size to it. Make sure to store the return value in a variable so you could print it afterwards. Input 1. First line contains the size of the array 2. Succeeding lines are the elements of an array Output Enter·size·of·array:·5 Enter·element·1:·1 Enter·element·2:·2 Enter·element·3:·3 Enter·element·4:·4 Enter·element·5:·5 Maximum·element:·5 Score: 0/10
- # Declare a named constant for array size here. MAX_AVERAGES = 8 # Declare array here. # Write a loop to get batting averages from user and assign to array. averageString = input("Enter a batting average: ") battingAverage = float(averageString) # Assign value to array. # Assign the first element in the array to be the minimum and the maximum. minAverage = averages[0] maxAverage = averages[0] # Start out your total with the value of the first element in the array. total = averages[0] # Write a loop here to access array values starting with averages[1] # Within the loop test for minimum and maximum batting averages. # Also accumulate a total of all batting averages. # Calculate the average of the 8 batting averages. # Print the batting averages stored in the averages array. # Print the maximum batting average, minimum batting average, and average batting average. This is on mindtap pyton what needs to be fixAssuming that array1 and array2 are both arrays, why is it not possible to assign thecontents of array2 to array1 with the following statement?array1 = array2;Lotto Program C++Write a program that simulates the Powerball lottery. In Powerball, a ticket is comprised of 5 numbers between 1 and 69 that must be unique, and a Powerball number between 1 and 26. The Powerball does not have to be unique. Hint: You can use an array to represent the 5 unique numbers between 1 and 69, and an integer variable to represent the powerball. The program asks the player if they'd like to select numbers or do a 'quickpick', where the numbers are randomly generated for them. If they opt to select numbers, prompt them to type the numbers in and validate that they are unique (except the powerball), and in the correct range. The program then generates a 'drawing' of 5 unique numbers and a Powerball, and checks it against the user's lotto ticket. It assigns winnings accordingly. Because it is so rare to win the lottery, I suggest hard coding or printing values to when testing the part of the program that assigns winnings.