Using methods and arrays, write a program that Creates and fills an array A of size 50 filled with random integers in the range 5 to 50 inclusive. prints it out in 5 lines (10 values per line). • Calculates the sum of the odd elements of A and print it out.
Q: Except for the first, each of the following is a reason why today's attackers are tough to protect…
A: The correct answer is the attack tools' complexity
Q: Consider the two functions g and f defined as follows. g(n) = 24n³ + 33nª + 10n³ – 29n² + 7n + 27;…
A:
Q: Compile a list of six operators that may be utilised while building LINQ queries.
A: LINQ: Define LINQ is an acronym for Language Integrated Query and is a component of Microsoft's.NET…
Q: Q7. Adding a new element at the end of the singly linked list takes compared to adding a new element…
A: Firstly lets see the time complexity for inserting the element at beginning and middle and last.…
Q: Implement one of the sorts described in Chapters 15 and 16. Input is an array with at least 10…
A: ALGORITHM:- 1. Take the input for the array of 10 elements which represent the number of visitors in…
Q: Explain how to implementing the stack push(), pop(), and size() methods using Queue data structure.…
A:
Q: Describe the development of the information system and the main figures and events that led up to it…
A: Information System and Main figures: A formal, sociotechnical, organizational system intended to…
Q: What is the mechanism through which interrupt-driven I/O operates?
A: Interrupt-driven I/O operates: The interrupt-driven approach is an alternate way for dealing with…
Q: What does Immelt mean by "industrial Internet" and "digitalization of the industrial world"? What…
A: Industry digitization occurs on an evolutionary basis, and in the industrial world, data and data…
Q: What points of view should be taken into consideration when building models for software-intensive…
A: Software-intensive systems: A software-intensive system is defined as one in which software…
Q: Surpreeth intends to expand the customer table by two additional records. Exactly what command is…
A: Data Definition Language(DDL): SQL commands that construct and delete locations, databases, and…
Q: How many begin with 111?
A: To find the number of strings which begin with "111" in the set of strings of length 8 made up of 2…
Q: Software engineering: What is the difference between a test criterion and a test need?
A: Software Engineering: Building a career as a software engineer requires a bachelor's degree as a…
Q: What was the purpose of the early Internet research? How might these problems be resolved?
A: Introduction: The internet is the best specialised equipment ever invented - a step forward in…
Q: Qs. Choose the correct answer from the atuen four 1. In a Gollege, 30 1 stucknt fail in Phy SPcs,…
A: Answer: option B is correct
Q: Explain how web caching can help you receive an item faster. Will web caching minimise the time it…
A: Justification: The activity of saving data for reuse, such as a copy of a web page supplied by a web…
Q: A motorcy tion. The PASCAL km
A: Ac. to given: Let us take 3 variables, m for milage= 48 c for cost of petrol per liter= 20.30 d for…
Q: Describe the components of an information system. How important is the person in this system?
A: institution: Information systems are a collection of interconnected components that work together to…
Q: First stage of our program Readln (base, height); area: 0.5 base height : Writeln(area):
A: Program Approach:- 1. Declare variables 2. Take the input from the user 3. Perform the calculation…
Q: Answer number 10,12
A: SQL stands for Structred Query Language.
Q: The corresponding integer (ASCII) value of char '6' is 54. What is the final value of i in the…
A: To find the final value of i in the code snippet.
Q: What are differences between acid and base properties in big data? Please write the answer in a…
A: The difference between ACID and BASE database models is the way they deal with this limitation. The…
Q: ges faced by managers during transition period when swit
A: Below the challenges faced by managers during transition period when switching to new operating…
Q: What are all the potential gender-specific domain names?
A: Given: On the Internet, a domain name is a string of characters that designates an area of…
Q: 7. Answer the following: • What subnet is 192.168.111.129 on? A junior network administrator is…
A: The Answer is
Q: On a local subnet with the 255.255.255.224 subnet mask, what is the maximum number of IP addresses…
A: The answer is given in the below step
Q: You work at a help desk and have just received a call from an employee who says she can’t access…
A: The Answer for the given question is in step-2.
Q: 1. Fill in the following table and find the admissible values for a subnet mask. Binary…
A:
Q: What kind of data security measures are included in the software-based security method? Discuss it…
A: Techniques for Information Security: While the internet and data technology have made our lives…
Q: What distinguishes a virus program's malware characteristics?
A: malware program: A malware program is a piece of software used to access a victim's computer system…
Q: What exactly are loops?
A: Loops: In computer programming, a loop is a sequence of instruction s that is continually repeated…
Q: Task 2 Write an algorithm and draw a program flowchart to find the eligibility of admission for a…
A:
Q: Data warehouse design would be incomplete without MetaData, which is the most critical part of any…
A: Introduction: Data warehouse is a sort of data set that coordinates duplicates of exchange…
Q: All nodes in a Mesh Network are connected in a flat or non-hierarchical way. This is how many core…
A: Mesh network: In a mesh network, nodes are connected directly and non-hierarchically to as many…
Q: What are the two primary classifications of software products? Give an example of each (s)
A: The fundamental classifications of software products Generic and customized software goods are the…
Q: Given x=[4 3 2 1;1 2 3 4; 5 6 7 8; 9 10 11 12; 13 14 15 16] has been assigned, what would be the…
A: The above code is solved in Matlab Below
Q: If c/c++ code is compiled in gcc on a Unix / Linux system, the compiled program will run in Windows.…
A: Disclaimer: “Since you have asked multiple questions, we will solve the first question for you. If…
Q: Which spyware or malware poses the greatest threat? Make a case for your response by providing…
A: Initiation: CoolWebSearch (CWS) has the ability to take over any of the following: Internet Explorer…
Q: Certain credit card companies issue one-time-use credit card numbers as an added degree of security…
A: Introduction: Visa or MasterCard: It's a little rectangular piece of plastic or metal provided by…
Q: Analyze how information systems
A: Information Systems Defined Information systems are collections of multiple information resources…
Q: This entire course focused on HTML, CSS and JavaScript. Explain each of their primary roles in…
A: Please refer below for your reference: Firstly, HTML full form is hypertext markup language, a…
Q: Explain ways on how to use multiprocessor and describe the operation of each
A: Here, we will describe the different types of multiprocessor operating systems, and the…
Q: To counteract current dangers, we must use a variety of countermeasure tactics. How can these types…
A: The given challenge requested that you identify some countermeasure approaches for immediately…
Q: What are the software's features?
A: Software: Software is a collection of code ,document, rules etc which is used to perform certain…
Q: n I get help with the RAPTOR FLOWCHART for this: #include using namespace std; double rain[12];…
A: the RAPTOR FLOWCHART for this is an given below :
Q: When it comes to database recovery, what are the three sorts of backups that may be utilised? In a…
A: Database Recovery: In the case of a failure, database recovery is the process of returning the…
Q: Show the steps to divide -63 by 7 in binary twos complement notation, using 12-bit words using the…
A: A division rule provides a letter of the quotient and a remainder once we tend to divide two number.…
Q: In SQL, what are all of the different numeric data types?
A: SQL is the structured query language that are used to access and manipulate database. To insert or…
Q: This question is about graph data structure. Draw the data structures for the graph above. Draw the…
A: Here, we are given a directed weighted disconnected graph and we are asked to represent this in…
Q: Do routers have unique Internet Protocol (IP) addresses? If so, how many are there? What is the…
A: The answer is given in the below step
Step by step
Solved in 2 steps with 1 images
- Using methods and arrays, write a program that Creates and fills an array A of size 100 filled with random integers in the range 1 to 100 inclusive. prints it out in 5 lines (20 values per line). Calculates the sum of the even elements of A and print it out.Using methods and arrays, write a program that Creates and fills an array A of size 50 filled with random integers in the range 5 to 50 inclusive. • Creates and fills an array B with the formula (B[i]=A[i]*2) • Count the number of elements in A whose contents are less than 10.Write a program that stores the 1st 10 even numbers in an array. Also, compute and print the sum of the even numbers in the array. Note: No user input needed.
- Write a program that lets the user enter the total rainfall for each of 12 months (starting with January) into an array of doubles. The program should calculate and display (in this order): the total rainfall for the year, the average monthly rainfall, and the months with the highest and lowest amounts. Months should be expressed as English names for months in the Gregorian calendar, i.e.: January, February, March, April, May, June, July, August, September, October, November, December. Do not accept negative numbers for monthly rainfall figures. When a negative value is entered, the program outputs "invalid data (negative rainfall) -- retry" and attempts to reread the value. NOTE: Decimal values should be displayed using default precision, i.e. do not specify precision.Create a 4x3 array of letters from a through l and call it array1. Copy the array and call it array2, then reshape array2 to a 6x2 array. Create another copy of the array, called array3, and flatten it into a one-dimensional array. Print all three arrays.1. Write a program that fills an array with 10 random integer values between O and 100, your program should then calculate and print the alternating sum of all elements in the array. for example, if the array values are (89, 35, 44, 61, 66, 52, 45, 16, 48, 73) then the sum will = 89- 35 + 44 - 61 + 66- 52 + 45 - 16 + 48 - 73 = 55. Sample Run: The generated numbers are: 2 11 44 38 66 72 38 67 43 13 The alternating sum is -8 2. Write a program that reads 10 characters from user and store them in an array. Then display one or more of the following messages: 1. All characters are letters 2. All letters in the list are upper 3. There is no vowel letter in the list 4. There is at least 2 digits in the list 5. There is at least 3 symbols in the list Sample run 1: Enter 10 characters: AB1OK8 M& ? All letters in the list are upper There is at least 2 digits in the list There is at least 3 symbols in the list
- You have an integer array A of size N. Find the closest pair of numbers in an array and print their difference.Input: 1 5 10 4 2 7 8 Output: 1Write a program that reads 7 integers and store them in an array of size 7. Your program should find and display the average of all the odd numbers of the array and display all numbers greater than the average of odd numbers.Create a array of size n and poulate it with random numbers in range @ to 150. Print the maximum number in the array. Take n as input by user. Write whole code in main function only.Given n>=1 and n
- The Lo Shu Magic Square is a grid with 3 rows and 3 columns shown below. The Lo Shu Magic Square has the following properties: The grid contains the numbers 1 – 9 exactly The sum of each row, each column and each diagonal all add up to the same number. This is shown below: Write a program that simulates a magic square using 3 one dimensional parallel arrays of integer type. Do not use two-dimensional array. Each one the arrays corresponds to a row of the magic square. The program asks the user to enter the values of the magic square row by row and informs the user if the grid is a magic square or not. Project Specifications Input for this project: Values of the grid (row by row) Output for this project: Whether or not the grid is magic square Processing Requirements Use the following template to start your project: #include<iostream> using namespace std; // Global constants const int ROWS = 3; // The number of rows in the array const int COLS = 3; // The number of columns…The Lo Shu Magic Square is a grid with 3 rows and 3 columns shown below. The Lo Shu Magic Square has the following properties: The grid contains the numbers 1 – 9 exactly The sum of each row, each column and each diagonal all add up to the same number. This is shown below: Write a program that simulates a magic square using 3 one dimensional parallel arrays of integer type. Do not use two-dimensional array. Each one the arrays corresponds to a row of the magic square. The program asks the user to enter the values of the magic square row by row and informs the user if the grid is a magic square or not. Processing Requirements - c++ Use the following template to start your project: #include<iostream> using namespace std; // Global constants const int ROWS = 3; // The number of rows in the array const int COLS = 3; // The number of columns in the array const int MIN = 1; // The value of the smallest number const int MAX = 9; // The value of the largest number //…in java Create two arrays with same length n: - Array A with integer numbers that user will insert- Array B with random numbers from 0 to 100.- Find sum of both arrays,- Find maximum values of both array and compare them: .if maximum of 1 st is lower then maximum of 2nd array: print sums of both arrays.if maximum of 1st is greater then maximum of 2nd array print 2nd array (use println)otherwise print first array in reverse.