Write a C++ program that prompts the user to enter the dimensions of a 2D matrix (rows and columns) then dynamically create the 2D matrix and fill the matrix with random numbers between 13 and 29 inclusive. Write a user defined function named UpperHalf () which takes a two dimensional array A, with size N rows and M columns as arguments and prints the upper half of the array.
Q: Why must the inclusion guard symboVname on a library interface file be unique? (Hint: use proof by…
A: Introduction: Because repeated inclusion is prohibited by using "include guard," also known as…
Q: Demonstrate how internal IT and network risk regulations may help fight employee noncompliance with…
A: Most small and medium-sized businesses lack well-planned IT security measures to ensure the efficacy…
Q: Which of the following interfaces or classes would be the most appropriate structure to store a…
A: Lets see each of them practically in java:- ArrayList :- --->The ArrayList class has a feature of…
Q: What exactly are memory leaks?
A: Memory Leak: Memory leak means whenever programmers will create a memory in heap and whey they…
Q: und describe the eight
A: In order to better understand the communication process, we can look at eight essential components:…
Q: Differentiate between the many types of computer networks (based on scale)?
A: Answer:
Q: NAME three important features of VLANS which make them useful in computer networks. What is the NAME…
A: Vlan stands for virtual local area network . The concept of VLAN is based on connecting the devices…
Q: Provide four examples of external disk interfaces
A: INITIATION: Indeed, an interface is a device that serves as a conduit between input and output…
Q: Explain the characteristics of JavaScript programming language
A: Characteristics of JavaScript programming language: -> It is an open source scripting language…
Q: a. Identify how we define a node in a linked-list. Give example based on the code above. b. What is…
A: We need to answer the questions related to linked list.
Q: Construct program using control statement. (C3, P4) Construct program using method. (C3, P4) Analyze…
A: Code: import java.util.*; public class main { // main method public static void…
Q: What is the safest way to remove a 250GB solid state disk from a computer without damaging it?
A: Justification: Solid-state drives (SSDs) are a new generation of computer storage devices. SSDs…
Q: Please answer it in Python In order not to forget to wish the birthday of his loved ones, Alzheimer…
A: 1.create a dictionary 2.create a list of all years 3. find minimum year from list. 4. Check the…
Q: Derive the arithmetic expression 9-5 (4) from the following rule E --> EOE | (E)| n O --> + |…
A: using a parse tree the expression is being derived.
Q: Inserting and deleting nodes from a heap takes?
A: Heap is a data structure that is a complete binary tree and it satisfies the properties of heap. All…
Q: Write an application that stores nine integers in an array. Display the integers from first to last,…
A: HI THEREI AM ADDING C CODE AS PER REQUIREMENT BELOWPLEASE GO THROUGH IT THANK YOU
Q: STACK PROJECT Write a program that uses stacks to evaluate an arithmetic expression in infix…
A: INTRODUCTION: Here we need to create a program that uses stacks to evaluate an arithmetic expression…
Q: Explain concurrency and go over four design and management challenges that concurrent raises.
A: Concurrency as a Concept: The architecture of an operating system is concerned with the management…
Q: Is it true that a router routes packets according to MAC addresses? If you answered yes, describe…
A: A router's routing table contains the MAC addresses of all devices connected to the network.…
Q: Consider the following two perspectives on language design: (a) Language design is the process of…
A: Software development.: Software development is a set of computer science activities concerned with…
Q: Write a function called checkArray that takes an array of 20 integer elements as its argument
A: Code: #include <stdio.h>//function checkArray void checkArray(int nos[]){ //local variable…
Q: Demonstrate how internal IT and network risk regulations may help fight employee noncompliance with…
A: To ensure the efficacy of their cybersecurity plans and actions, most small and medium-sized…
Q: droid system's CPU
A: Android is a mobile operating framework based on a changed adaptation of the Linux kernel and other…
Q: When you go into the boardroom and attempt to connect your laptop to the projector, you find that…
A: Introduction: When you walk into the boardroom to connect your laptop to the projector, you discover…
Q: Give at least two CFH applications or uses (for example, password verification) as well as a brief…
A: Justification: A cryptographic hash function is an algorithm that receives in arbitrary amount of…
Q: Dynamically typed languages include Lisp and Python, whereas statically typed languages include C++…
A: Groovy, JavaScript, Lisp, Lua, Objective-C, Perl (concerning user-defined types but not built-in…
Q: A computer has 1000K of main memory. The jobs arrive and finish in the sequence Job 1 requiring 200K…
A: We are asked a very beautiful question on best-fit and first-fit scenario. We are given 6 jobs with…
Q: what is the name of the system's entities?
A: Entity: A single unique object in the real world that is being mastered. Examples of an entity are…
Q: What are the best ways to debug common Linux hardware, application, file system, and network issues?
A: Hardware logs in Linux: The cd/var/log command displays Linux logs. Then type ls to examine the…
Q: To compute the total and count of negative numbers from a list of (15) numbers, write an algorithm…
A:
Q: 2. If L is a regular language over E, what can be said about the languages L1 = E* - and L2 =…
A: As per our guidelines, only 3 mcqs will be answered. So, please repost the remaining questions…
Q: Powerpoint VBA code that does If the "Add List of Slide Titles" C checked, a list of all of the…
A: VBA is a powerful tool which can be utilized inside any area of Microsoft coordinated tools. Like MS…
Q: Give two instances of each of the major differences between baseband and broadband technology.
A: Justification: A single-channel digital system is referred to as baseband, and that single channel…
Q: IV.Consider a 32bit microprocessor which has an on chip 1Mbytes four-way set- associative cache.…
A:
Q: What is the difference between encapsulation and a message object in an oriented programming…
A: This is a programming technique that hides implementation information. It drastically reduces the…
Q: Reduce the following Boolean expressions to their simplest form *: F = abc + (a + c) + bc (number of…
A: Please refer below for your reference: I have solved the question using two methods by…
Q: What level of security did computers have when they were originally introduced? Explain
A: Justification: The word "network security" refers to a wide range of technology, equipment, and…
Q: Write at least one justification for operating an application in the cloud, which may encounter a…
A: Cloud Computing: The term "cloud computing" refers to the use of the internet to store and process…
Q: Describe the circumstances that lead to a system's stalemate.
A: The following conditions cause deadlocks in the system: - Circular Wait Condition Hold and Wait…
Q: What is a control structure, and how does it work?
A: Control structure: Control Structures are just a method of specifying control flow in computer…
Q: You should make the following tasks: 1. create two arraies first array (one dimenision) string type…
A: We need to use nester for loops and if else statements.
Q: What is the difference between requirements for users and requirements for systems?
A: Software requirements: Customers' individual demands or expectations are reflected in user…
Q: Why must the inclusion guard symbolname on a library interface file be unique? (Hint: use proof by…
A: Contradiction: contradiction Add to your list Share. A contradiction is a scenario or set of…
Q: Discuss the networking aspects that impact your Google Meet connection positively and what you can…
A: To provide high-quality video meetings with Google Meet, you must design your network so that Meet…
Q: 1. Write a parameter and return program that will require the user to enter a temperature in Celsius…
A:
Q: Why do we need an L3 cache when a processor's L1 cache can work quickly?
A: Cache can be defined as the small part of the CPU which has the small amount of memory, which is…
Q: Discuss the FIVE (5) most critical aspects to consider when choosing a database management system…
A: Selection of a Database Software: Database software Selection of a Database Software is used to…
Q: 3D printing can significantly improve an SCM's efficiency and efficacy. Write a page describing how…
A: The SCM organization: Supply Chain Management is a company or organizational activity that…
Q: As a branch of synthetic biology, biocomputation describes what it intends to do.
A: Foundation: Biomolecular engineering refers to methods for developing a toolbox of functional units…
Q: cess design for ordering foo
A: Below the process design for ordering food in fast food
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images
- Write a function in C language that will take a 2D Array of size 3x3 from the user. Your Program should: 1. Prompt the user to enter 2D array of size 3x3. 2. Calculate the sum of all rows. 3. Calculate the sum of all columns 4. Return 1 if the sum of all rows is greater than sum of all columns, 0 otherwise. Your main program should print the result based on the returned values.Create a function using Java: Number of Rows = 3-6 Number of Columns = 3-6 Function Name: winInDiagonalFSParameters: board: 2D integer array, piece: integerReturn: booleanAssume board is valid 2D int array, piece is X==1/O==2.Look at all forward slash / diagonals in the board. If any forward slash / diagonals has at least 3consecutive entries with given type of piece (X/O) (3 in a row XXX, OOO), then return true,otherwise falseWrite a program in C Language which fulfills the following criteria a. Declare 3D array named “array3d" with the dimension of 2 x 3 x 4 b. Assign random numbers to array3d by using the function rand(). The range of random number must be between 0 to 99. c. Copy all the contents of “array3d" to new matrix called array3d_new by using the addresses of memory location. Keep in mind that you have only the initial or starting address of mattrix array3d. You need to show and print that address. Perfom the task by calling functions. d. In "array3d" there are 4 copies of 2 x 3 matrix, add the respective elements of the first two matrix in a new matrix called sum2d_a (the dimension of this newly created matrix is 2 x 3). Perform the same task for the remaining two matrixes and store the result in sum2d_b. Now create the new matrix namely sum2d containg both copies of sum2d_a and sum2d_b with the matrix size of 2 x 3 x 2. You need to perform all these tasks using FUNCTIONS. e. Write a function to…
- Create a function using Java: Number of Rows = 3-6 Number of Columns = 3-6 Function Name: winInDiagonalBSParameters: board: 2D integer array, piece: integerReturn: booleanAssume board is valid 2D int array, piece is X==1/O==2.Look at all backward slash \ diagonal in the board. If any backward slash \ diagonal has atleast 3 consecutive entries with a given type of piece (X/O) (3 in a row XXX, OOO), then return true,otherwise false.Create a function using Java: Number of Rows = 3-6 Number of Columns = 3-6 Function Name: hintParameters: board: 2D integer array, piece: integerReturn: 1D integer array (length 2) where array stores {row,column} of hintAssume board is valid 2D int array, piece is X==1/O==2The hint scans across each row left to right, starting at the top row working down in rows. Itreturns a 1D integer array {r,c} containing the first hint found for the piece given to win. It doesnot examine for any other hints like blocking opponent’s win, or other types of hints. The onlyhint returned will be the first hint found that wins the game on the next play for the player. If itdoes not find a hint, it returns {-1, -1}.please follow this pseudo-code for the hint function: For every row board For every column on the board If we can play at this row and column Play the player’s piece If the player has won the game Remove the player’s…Write a program in C Language which fulfills the followingcriteriaa. Declare 3D array named “array3d” with the dimension of 2 x 3 x 4b. Assign random numbers to array3d by using the function rand(). The range ofrandom number must be between 0 to 99.c. Copy all the contents of “array3d” to new matrix called array3d_new by usingthe addresses of memory location. Keep in mind that you have only the initial orstarting address of mattrix array3d. You need to show and print that address.Perfom the task by calling functions.d. In “array3d” there are 4 copies of 2 x 3 matrix, add the respective elements ofthe first two matrix in a new matrix called sum2d_a (the dimension of this newlycreated matrix is 2 x 3). Perform the same task for the remaining two matrixes andstore the result in sum2d_b. Now create the new matrix namely sum2d containgboth copies of sum2d_a and sum2d_b with the matrix size of 2 x 3 x 2. Youneed to perform all these tasks using FUNCTIONS.e. Write a function to find the…
- Write a c++ function reportDuplicates() that takes a two dimensional integer array as a parameter and identifies the duplicate valuesin the array. The function then reports these to user. Sample input and corresponding output:How many rows? 5How many columns? 2Let’s populate the array:1 86 97 312 522 4Thank you, there are no duplicate elements!How many rows? 3How many columns? 4Let’s populate the array:3 7 5 76 9 7 38 5 12 6Thank you, 3 appears 2 times, 7 appears 3 times, 5 appears 2 times,and 6 appears 2 times.Write C++ Program to determine the max numbers between 2 arrays. For example: 6. 1 34 7 2 0 11 20 Result 7 3 1 11 34 To resolve this problem, you should write 3 void functions: inputNumbers, testArrays and displayMaxArray. • inputNumbers: the aim of this function to read 10 numbers from the user and insert them in 2 different arrays (length of the array is 5). • testArrays: determine the max numbers between 2 arrays. • displayMaxArray: print the array containing the max numbers. Write C++ Program to check whether the Given String is a Palindrome. To resolve this problem, you should write 3 void functions: inputStrings, testPalindrome and displayNumbers. • inputStrings : the aim of this function to read 7 strings from the user and insert them in array of 7 elements. • testPalindrome: to check whether the given strings in the array are palindrome. displayPalindrome: print the palindrome strings.Write a function numberOfOccurences() which takes an integer reference array of size 10 and a search value as parameters and returns the number of occurrences of the value inside the array. Test your function. Initialize an array that contains the following numbers: 4, 7, 2, 8, 8, 1, 4, 8, 9, 1. Then test it with search values 1, 8 and 6. Your program output should look like the following: [4 7 2 8 8 1 4 8 9 1 ]1 occurs 2 times in the array.8 occurs 3 times in the array.6 occurs 0 times in the array. C++ Nothing too advanced please
- Write a function called number_matrix(r,c) that takes two parameters r and c and PRINTS ON THE SCREEN a matrix of numbers as follows: 1 2 3 4 5 .... 2 3 4 5 6 .... 3 4 5 6 7 .... ... In this pattern, each row contains c numbers and there are r rows. For example, number_matrix(4,3) results in: 1 2 3 2 3 4 3 4 5 4 5 6Write in a programming language (PL), a program to fill an NxN two- dimensional array, in a circular (spiral) pattern, with numbers from 1 to N2 as described below. You can do that by writing first the following functions/procedures which you will call in the main program. The procedure FillRowForward(A, top, left, right, z) which takes the array A the top, left and right as parameters and iterates through top row from left to right to fill the row. z is as used in the algorithm.Develop a program in c language to input the array of 10 elements through the keyboard. You program should implement the following functions: 1. Input Array from the user 2. Sort an array 3. Find out the mean 4. Find out the median