1. Write and run a C++ program to test the following function that returns the sum of the floats pointed to by the first n pointers in the array p. float sum (float* p[], int n);
Q: Consider the following instruction: nstruction: and rd, rs1, rs2 nterpretation: Reg[rd] = Reg[rsl] A...
A: According to bartleby guidelines, i can solve only first question. Answer is in given below.
Q: The waterfall model and the iterative-and-incremental approach are related, but what exactly is the ...
A: Introduction : Waterfall :- The waterfall model is one of the most used and straightforward softwar...
Q: Computer science What if I use the Outline panel to create a numbered list?
A: Introduction: The components of a list can be numbered in a variety of ways, including Arabic and Ro...
Q: stem is required. Distinguish between the operation of various input and output devices, including w...
A: In-depth description of the I/O subsystem is required. Distinguish between the operation of variou...
Q: Create a task that takes a series of words and returns the highest score of goals. Each letter of th...
A: Coded using Javascript.
Q: In terms of network security, what is cryptography?
A: Cryptography is a security measure/process in which important messages/information is transformed in...
Q: Consider the following program. What does mooboo do? Provide an explanation with two example queries...
A: A A+B¯¯¯¯¯¯¯¯¯A+B¯ B AA C A.B¯¯¯¯¯¯¯A.B¯ D A+BA+B Answer B
Q: C# program with multithread and demonstrate foreground and background threads.
A: According to the information given:- We have to explain c# program with multithread and demonstrate ...
Q: What is the distinction between the static and extern storage classes? Give appropriate instances in...
A: Intro Explanation : The storage category must be visible with the variable location. It tells us whi...
Q: (same as Exercise 2.2.5 c) from textbook) Construct a DFA that accepts the set of all strings in {0,...
A: Below is the answer to above question. I hope this will be helpful for you.....
Q: Write a Java Program to take a string from the user front and back. take the first 2 chars and retur...
A: charAt method is used to get the character present at specified index and String indexing starts fro...
Q: What is the location and name of the Windows paging file for virtual memory?
A: Introduction: The virtual memory, which is the windows page file, is accessed in the same manner as ...
Q: Write a Java Program to take a string from the user , take the first 2 chars and return the string w...
A: Required:- Write a Java Program to take a string from the user, take the first 2 chars and return th...
Q: Can someone help me with the following C++ problem please? An array "matrix" with N lines and M col...
A: Start Take the input matrix Rotate the given matrix to the 90 degrees After conversion Print matrix ...
Q: Question: - JOY is a CS (B.TECH) student and now has days she wants to work on marketing. AND you ar...
A: Intro: If your batch process needs information that is shared across transactions, one approach is t...
Q: Who is in charge of adding items to the forwarding table? Describe two options for adding items to t...
A: Introduction: A router refers to a networking tool that determines an appropriate and available rout...
Q: Write a Java Program to take a string from the user , take the first 2 chars and return the string w...
A: ALGORITHM:- 1. Take input for the string. 2. If size of string is less than 2 then show error messag...
Q: What is the relationship between technical debt and risk management?
A: Introduction: In the digital age, technological debt may be a barrier to staying competitive. Agilit...
Q: #MyCode n = int(input("Input the size of the matrix: ")) list1 = [] #To store the sum of each row ...
A: The above given question to find out the necessary modifications for the above given python code sni...
Q: What distinguishes EDGE from other training software when it comes to the development of projects is...
A: The Enhanced Dynamic Geo-Social Environment (EDGE) is a free virtual training platform that allows f...
Q: WAP to input a string s from the user and check whether the string ends with "thon" or not. If the s...
A: Write a Python program to input a string s from the user and check whether the string ends with "tho...
Q: With the help of an example, distinguish between the Java classes GenericServlet and HttpServlet.
A: Introduction: In this answer, I will show you how to tell the javas Generic Servlet from the HTTP Se...
Q: JOY is a CS (B.TECH) student and now has days she wants to work on marketing. AND you are trying to ...
A: Brief: If your batch process needs information that is shared across transactions, one approach is t...
Q: Question 3 Find the following A) Binary number if its gray code is (A9) h B) Hexadecimal number if i...
A: Task : Gray Code of -119 First Complement for -27 Diminished radix complement 39H
Q: Explain the memory structure of the 8051 microcontroller's program memory.
A: Let us see the details regarding program memory,
Q: What is the origin of StOred verSuS derived AttriButeS?
A: Introduction the above question is about What is the origin of StOred verSuS derived AttriButeS ...
Q: Why do we use commutative filters in DBMS?
A: In this question, we are going to discuss why we are going for commutative filters in DBMS.
Q: Which type of elicitation was utilised to collect functional requirements for the University managem...
A: Intro Which type of elicitation was utilised to collect functional requirements for the University m...
Q: If RAM (Random Access Memory) is transistor-based, why do we need cache memory? Is it feasible to us...
A: Given To know about the RAM and Cache memory.
Q: Create a function that removes the correct members from the input. Use the following examples to unl...
A: Process : Firstly we will take the string as an function arguments then we will split the string wit...
Q: 2. Write a JAVA program to input 2 strings, s1, and s2, return a new string made of the first char o...
A: The Java code along with the snapshot of code and output is given below:
Q: c++ 1- Use UML notations to describe 4 or 5 related classes and their relationships. For each class,...
A:
Q: DVDs are stored on 50 racks with ten shelves each at a DVD rental facility. Each shelf has a capacit...
A: Intro the above question is about DVDs are stored on 50 racks with ten shelves each at a DVD rental...
Q: When is a recursive algorithm preferable to an iterative method?
A: Introduction the question is about When is a recursive algorithm preferable to an iterative method a...
Q: What data does a typical packet-filtering router use? What are examples of a packet-filtering router...
A: Introduction: The packet filtering router searches for (1) the packet's source IP address and sour...
Q: What is the significance of kernel mode for an operating system?
A: Introduction: The kernel is the operating system's heart.
Q: I need explanation for these instructions: 1- CALL 2- RETURN 3- RETLW
A: According to answer policy we can answer only 3 parts . You can resubmit the question for remaining ...
Q: 1. Consider strings that contain only the capital letters A, B and C. A) Find a recurrence relation...
A: Since you have asked multiple questions, so I have answered first one for you. If you want answer to...
Q: PYTHON PROGRAMMING A retail company assigns a $5000 store bonus if monthly sales are more than $100...
A: Introduction PYTHON PROGRAMMING A retail company assigns a $5000 store bonus if monthly sales are mo...
Q: On a modern pipelined computer, how can a computer programme be optimised so that it runs rapidly an...
A: Introduction: Program optimization, code optimization, or software optimization refers to the act of...
Q: Which situations might warrant the use of a CNAME record?
A: Answer:
Q: When the Boolean test is necessary, propositional logic is utilised to create conditional logic for ...
A: Introduction: Propositional logic is primarily concerned with the study of logical connectives such ...
Q: 1. Write a program that prompts the user to enter an integer between 0 and 6 and prints thie day nam...
A: I give both codes in C along with output and code screenshots.
Q: Your organisation desires to transition from utilising desktop apps to remotely accessing the same c...
A: Introduction The risks that might arise are: Security Failure Management Scalability Connectivity...
Q: Give an example of a relationship with a single composite key.
A: Intro A unique key is one that identifies a row in a relation uniquely. The unique key may be combin...
Q: How can a systems designer ensure a user that the interface is listening to him, or getting informat...
A: Introduction: to ensure that the interface is listening to or receiving information from the user:
Q: How well are the contexts of data sources remembered and represented
A: Introduction: A DataSource is the name given to a link established on a website from a server. When ...
Q: A method defined within a class and whose header does NOT include the static modifier is known as wh...
A: A class is a collection of methods and members and there are various types of methods and let's expl...
Q: Five jobs arrive nearly simultaneously for processing and their estimated CPU cycles are, respective...
A: We are given two cases : in the first case we will assume all jobs arrives at time 0 and then we wil...
Q: What is the division of data stored in a database row of a table?
A: Introduction: Data is kept in a database in the form of a row in a table:
solve this problem with documentation
Step by step
Solved in 2 steps
- Use pointers to write a C++ function that finds the largest element in an array of integers. Use {6, 7, 9, 10, 15, 3, 99, -21} to test the function.Q2: Write a C++ function (call it index_max) that finds the maximum number in a 1-D array of floats, that is passed to the function, and returns the max number and its index. For example, if you pass [5.1, 6, 8.5, 9, 5.6, 2.7] to the function, you obtain 9 and 3. Write a C++ program and test your function. Take the following note into consideration when writing your program: • The function should prevent changing the elements of the passed array.Q2: Write a C++ function (call it index_max) that finds the maximum number in the array, that is passed to the function, and returns the max number and its index. For example, if you pass [5,6,8,9,5,2] to the function, you obtain 9 and 3. Write a C++ program and test your function. Take the following notes into consideration when writing your program: 1- Your function should work with any data type. 2- The function should prevent changing the elements of the passed array. 3- You are not allowed to use materials that are not covered in our lectures.
- In C++ Create an array of head pointers, statically allocated of size 101 of that type: Now, create a pointer that can point to the first element: Show how to dynamically allocate an array of 101 elements of head pointers: Write the code to initialize each element to NULL: Rewrite the code to initialize each element to NULL using pointer arithmetic:3/ Write a C code that will read 10 numbers into an array, pass and it Smallest elements. A sample run of the codes can be as to the function (max_min), print the Largest and the Enter 10 numbers: 34 82 49 102 7 94 23 11 50 31 Largest: 102 Smallest: 7 Use pointer concept and use the following function prototype: void max min (int *a, int n, int *max, int *min);Please write the following in very simple C++ code: Write a function that calculates the average of an array, where the smallest element in the array is dropped. If there are multiple copies of the smallest value, just ignore one copy. You can assume the array has at least two items in it. The function header is as follows. int getAverage (int a[], int size)
- 1. Please write the C code of the following question and then convert it into an equivalent MIPS language. Write a C function that will accept 2 integer numbers. If one of the numbers is negative or zero, the program will ask the user to enter the number again. This process will be repeated until the user enters positive numbers. After the entry of 2 numbers, the program will ask the user again to enter 10 numbers into a one dimensional integer array. If the 1* number is greater than the 2nd number, the program will find and return the summation of 10 numbers in the array. Otherwise, it will find and return the average of 10 numbers in the array.one-dimensional array:Write a C++ program that defines an array of integer intArray and find the sum and average of this integer array (no need to use functions) and write the needed code to swap between the first element and last element in array intArray.Create a simple C++ Program for the following problem and include the pseudocode. TOPIC: Data Structures, Arrays, Strings and Structs Write a program that will read in N integers from keyboard input into an array. The size ofthe array N will be entered on the keyboard. The program will tabulate the output as shownbelow: the first column should show the list of distinct array elements sorted in ascendingorder, while the second column should show the number of occurrences of each element.Sample input: 9 , 15, 7, 9, 3, 7, 3, 3, 7, 6, 3, 20
- Write a C++ function to swap the contents of two arrays with the same pointers. length usingWrite a C++ program for the following Write a function Average() that receives a pointer to an integer array as input, and usesthis pointer to return the average of elements of the array.You can initialize the array with random values using rand() function.Create a dynamic array that contains an int array. dynamic array, array inside when the existing array is full and a new element needs to be added will double its size, make all the elements of the old array the same will copy the indexes and add the element to the new array. Use the following functions. Write in C language. 1.append(dynamic array, new element): function sent to itself Adds the element sturct to the end of the array inside DynamicArray. Place If not, it behaves in accordance with the dynamic array definition given above. 2. get(index): The element in the index sent to it by the function takes it from the array it hosts and sends it back. ATTENTION ! : Please use a dynamic array and this array with struct structure. I don't want a link list. Do not post wrong or copied codes. Be sure to use the append and get functions given above Please do not solve the question I asked with the same code and copy and paste the code, my right to the question is running out. Solve the…