Please answer in C++ Zenny recently learned about Array and now answers Array's questions. She told her friend Zen about this. Zen wants to check how much Zenny knows about Array. So, give her the perfect numbe N. The task of Zenny is to find the sum of all the different positive number and different integers in the given list. As Zenny begins to solve problems she needs your help. Input 1 5 -1 1-10-2
Q: Given the new data set (the mean is already subtracted) shown below.We would like to perform…
A: #include<stdio.h>#include<stdlib.h>#define max_size 100//creating a structure named…
Q: How crucial do you believe data quality is to the success of data warehousing? What are the…
A: Given: To what degree do you feel data quality is important in data warehousing? Identifying the…
Q: ow do Design Patterns function and what role do they play in software engineering? Provide a short…
A: Software Engineering: A software engineering design pattern is a reusable, comprehensive solution…
Q: It is essential to thoroughly complete each phase of the conventional system development process.
A: Given: The conventional system development process is a systematic system development technique that…
Q: Consider a paging system with the page table stored in memory. If a
A:
Q: What does touching each other signify?
A: message of touch: Message for iPhone allows you to send handwritten and digital touch messages to…
Q: Suppose N is a (6x3) matrix array. This program segment print the locations of the negative…
A: In Step 2, I have provided correct answer with brief explanation---------------
Q: Determine what is required for successful test-driven development. How would you improve its…
A: TDD is a methodology for developing software in which test cases are used to specify and validate…
Q: The DevOps technique is built on the principles of lean and agile. What exactly is meant by the term…
A: Introduction: The information technology industry has used the term "agile" to refer to one of its…
Q: How can you use heuristics to enhance the design of your system?
A: As UI designers, we face design challenges every day. Knowing how to best deal with these problems…
Q: 3. Create a C# program to find the sum of all digits of a number: Example: Input: 1996 Input: 12345…
A: In this question, when user will enter the number, our program must sum up all the digits and…
Q: Companies are using big data in growing numbers. According to you, what type of use does the…
A: In simple terms, Big Data is a combination of all processes and tools related to using and managing…
Q: In terms of dynamic programming, define the optimality principle.
A: Dynamic Programming is an algorithmic paradigm that solves a given complicated hassle by breaking it…
Q: It is possible to develop and construct HTML-based apps to demonstrate the Search Tree Structures…
A: Inspection: No, using HTML to create and construct applications to show the usage of the Search Tree…
Q: public static void print Pattern (int n) The main method that calls printPattern is given below:…
A: Code along with comments: import java.util.*; //importing util package for calling scanner class to…
Q: Rahul was completing an Algorithms project and stuck to the question. He wondered who could help…
A: Input/Output Explanation: The first line of the input contains a single integer T denoting the…
Q: When making a comparison between embedded systems and general-purpose computers, what are the most…
A: Introduction: The difference between embedded systems and general-purpose computers, what are the…
Q: Software development employs several models, each of which is applicable to variable degrees…
A: Given that: Software development models are based on the project's goals and objectives. Development…
Q: Rahul was completing an Algorithms project and stuck to the question. He wondered who could help…
A: Algorithm: The first line have single integer T denoting the number of test cases. The second line…
Q: It is important to keep in mind how a sequence of packets are sent from one host to another along an…
A: Transmission, processing, and propagation delays all stay constant. This is due to the time required…
Q: This program inputs ten integers into an array (a) and then create a new array (b) that represent…
A: We need to find missing elements and corresponding correct option.
Q: For the sake of this example, let us assume that a packet is being sent from its origin to an…
A: Clarification: When data is sent from a source to a destination via a fixed path, it is possible for…
Q: Discuss Big Data and how organizations are using it now, as well as the motivations for doing so.
A: Introduction: Data are raw facts and data gathered from many sources. Organizations employ data…
Q: Let's imagine you're developing a browser history-preserving app. Identify the collection class that…
A: Definition: You will be assisted in obtaining information from the page that was most recently seen…
Q: Using heuristics, is it feasible to create a more efficient system design?
A: Introduction: Heuristic evaluation uses rules of thumb to analyze user interface usability and…
Q: Increasing numbers of businesses rely on vast quantities of data to run their operations. How would…
A: Introduction: For many years, businesses have used transactional records contained in relational…
Q: seating arrangement that meets this objective as a maximum flow problem. Assume that the company has…
A: The answer is
Q: 6.17 LAB: Max magnitude Write a method maxMagnitude() with two integer input parameters that…
A: Java is programming language that can be used for the creation of the applications for the different…
Q: What are some of the societal consequences of a growing number of people around the world utilizing…
A: Using their mobile phones to organize and manage their social networks is a beneficial approach for…
Q: What are the two types of files that are most commonly used? Are there any differences between these…
A: An executable computer program saves its instructions and data in a file on the hard drive. The two…
Q: In many ways, cloud computing has the capacity to change the world. Is it possible to sum up his…
A: Computing in the cloud: Computing in the cloud refers to the practice of accessing resources through…
Q: Using a truth table, classify each of the following as a contradiction, a tautology, or a…
A: A) p<->q = ! ( p x-or q ) p q p<->q T T T T T F T F F T F T p q p…
Q: Think about collecting requirements for the installation of CuOnline software. Please choose from…
A: Requirements should be fulfilled: In requirements engineering, requirements input refers to the…
Q: *What are the key distinctions between verilog and system verilog? What sets a structural module…
A: Given: System Because it combines the features of hardware description languages like Verilog and…
Q: IT can reduce agency costs by reducing the number of employees by minimizing the cost of…
A: information technology
Q: Risk analysis is typically a two-step process: qualitative risk analysis and quantitative risk…
A: We need to discuss, as a systems analyst, for which sorts of project management decisions would we…
Q: The Integer.parseInt () method requires a String argument, but fails if the String cannot be…
A: public class Main{ public static void main(String []args){ String c; c="abc"; try{ int…
Q: What is the dibetween one-to-many, many-to-many and one-to-one relationships.
A: The difference between one-to-many, many-to-many and one-to-one relationships is:- One to Many- This…
Q: The ability of an operating system to coordinate the actions of numerous programmes running at the…
A: Yes the ability of an operating system to coordinate the actions of numerous programms running at…
Q: What are the primary concerns of system developers throughout the development cycle?
A: For the SDLC to be a success, a high-quality system that surpasses customer expectations, is…
Q: What are three platform characteristics?Give some examples. Give examples of three different types…
A: Intro What are three platform characteristics?Give some examples. Give examples of three…
Q: . Given a starting address: 192.200.0.0 • Deltona has 4,000 users • New Smyrna Beach has 5,000 users…
A: The Answer is
Q: or a TCP sec. Let a be the rounded off to th ne TCP window
A:
Q: Frequently, the design of a system involves several separate stages, each with a specific aim.
A: Introduction: This cycle includes requirement analysis, design, development and testing,…
Q: What is the most common routing protocol used by Autonomous Systems to route traffic within them?…
A: Introduction: Border Gateway Protocol (BGP) is a standardised outside gateway protocol used on the…
Q: Let's imagine you're developing a browser history-preserving app. Identify the collection class that…
A: Your browsing history is kept locally. If you have enabled sync, these data types may also be saved…
Q: How does edmodo employ texting to entertain.
A: Introduction: With Edmodo's all-in-one LMS, communication, collaboration, and Zoom video…
Q: Differences between general-purpose computers and embedded systems
A: Intro The passage of time has no impact on computers. They could have to carry out responsibilities…
Q: How can you utilize heuristics to improve the design of your system?
A: The Use of Heuristics in Design: System standing visibility By showing status information on the…
Q: 10. Consider the following flowchart: Output FALSE NO Is n mod i=0? NO YES STOP Output TRUE Which of…
A: ANSWER: Neither If you check this condition statement in the flowchart. And check the algorithm…
Step by step
Solved in 2 steps with 1 images
- I wrote this code in c programming. what this code should do is ask how many times its going to run and run that many times(this works), ask how many books there are in a place(this works), then ask the max number of pages you want to read(this works), then asks how many pages there are in a book and put that into an array(works), then sorts the array of pages(works), and then adds the number in the array until you cant which is less than or equal to the max number of pages you want to read, and puts how many books you read(does not work), and then prints out how many books you read. a sample input is 35 206 12 3 10 25 2112 3 6 10 210 319 6 6 3 8 2 12 15 13 7 sample out put should be 345 #include <stdio.h> #include <stdlib.h> void MergeSort(int values[], int start, int end); void Merge(int values[], int start, int middle, int end); void add(int pages[], int count[], long long maxPages, long long total); void Print_Array(int count[], int cases); int main(void) {…Your Friendly Array Neighbor Program only in java not in python Create a Java program that takes an array called ar as an input that keeps track of arrays. Every day a new array is produced using the array of the previous day. On the n’th day, the following operations are performed on the array of day n – 1 to produce the array of day n: -If an element is smaller than both left and right neighbor, then this element is incremented -If an element is bigger than both its left neighbor and its right neighbor, then this element is decremented. -The first and last elements should never change Eventually after some days the array will not change, some examples: Example: Input from user: ar = [6,2,3,4] Output from program: [6,3,3,4] After the first day the array is changed from [6,2,3,4] to [6,3,3,4] and no further operations may be completed. Example: Input from user: ar = [1,6,3,4,3,5] Output from program: [1,4,4,4,4,5] After the first day the array is changed from [1,6,3,4,3,5]…Help writing a program in c++ that asks a user for a number (variable num) and then takes that number input to print out the nth term of a sequence? The sequence begins with 1 and then every number after is a prime factor of 3, 4, or 6. This needs to be done without using vectors or arrays. . . . For example: Sequence is : 1, 3, 4, 6, 8, 9, 12, 16, 18, 20, ... (cont.) User input (num) is : 6 Output : 12 (6th term) . . Please add comments explaining the code for better understanding if possible, thank you!!
- I saw a problem in StackOverflow. I tried to solve it differently but wasn't able to solve it. This was the problem. You are given an array (which will have a length of at least 3 but could be very large) containing integers. The array is either entirely comprised of odd integers or entirely comprised of even integers except for a single integer N. Write a function that takes the array as an argument and returns this “outlier” N.and I wrote the following code.. still, it didn't work public class Outlier{public static void main(String[] args){int[] x = new int [args.length]; for(int i=0; i<x.length; i++) {x[i] = Integer.parseInt(args[i]);}System.out.print(unique(x)); }public static int[] unique(int[] x) {int even = 0;int odd = 0;int N = 0;int[] a = new int [x.length];for (int i = 0; i < x.length; i++) {if (x[i] % 2 ==0) {even ++;}else odd ++;} for (int i = 0; i < x.length; i++) {if (odd > even) {if (x[i] % 2 == 0) {N = x[i];for (int j = 0; j<even; j++) a[j]=N;}}else if…1. When you are taking java, you are aware that a[] is an array, It can also be evalutated under certain circumstances. if you have x[2*z+4], what do you need to be true to evaluate? a. 3<= x < z.length b. 3<= x < (z.length-1)/2 c 2 <= x < z.length d. 4<= x < z.length/2 2. Given the program solve the problem for (int i=0; i ! lolma.length-1; i= i+1){ lolma[i] = lolma[i]+lolma[i+1] the array looks like from 0-3: 5, 9, 1, -3 What will be the next order a. 5,9,1,-3 b. 11,19,3,-5 c. 14,10,-2,-3 d. 5, 14,10,-2In java: Develop a function that accepts an array of integers and returns their average. Develop a function that accepts an array of integers and a threshold value from the user. The function returns how many values in the array are strictly greater than the cutoff. Using the functions written for #1, #3, and #4, find the number of values above average in two randomly generated arrays. Develop two functions:a. a function that returns the index of the maximum value in an array of integers passed by a caller, the caller prints the returned index and the value at that indexb. a function that returns the index of the alphabetically first value in an array of strings, the caller prints the returned index and the value at that inde Develop two functions:a. a function that swaps the alphabetically first value in an array of Strings with the first value in the array. Call this function twice on two different arrays of Strings; in the caller, use the function written for #2b to display…
- Write a C program that creates and array of 1000 random integers with values ranging from 0 to 99. It reads aninteger from the command line arguments, searches for this integer in the array, and prints either “Numberfound!” or “Number not found…”The code to create an array of random numbers:int data[1000];int i;for(i = 0; i < 1000; i++)data[i] = rand() % 100; You will also need to use the atoi function to get the integer value of the string read from the command line.In order to speed up the search, the program creates a child process with which it will communicate using apipe. The two processes proceed as follows:The parent:1. Searches for num in the first half of the array [0, 500[2. If it is found, it prints "Number found!" and terminates.3. Otherwise, it reads the result of the child from the pipe, if it is a negative number, it prints "Number notfound...". Otherwise, it prints "Number found!".The child:1. Searches for…You’re writing a function in C++ that accepts an array of distinct integers from 0, 1, 2, 3...up to N. However, the array will be missing one integer, and your function is to return the missing one. For example, this array has all the integers from 0 to 6, but is missing the 4: [2, 3, 0, 6, 1, 5] Therefore, the function should return 4. The next example has all the integers from 0 to 9, but is missing the 1: [8, 2, 3, 9, 4, 7, 5, 0, 6] In this case, the function should return 1. Using a nested-loops approach would take up to O(N^2). Your job is to optimize the code so that it has a runtime of O(N).Write a C++ program with a linear search only: You have been hired by the SFPD fraud unit to help detect credit card fraud. They have given you a list of 20 stolen credit card numbers, and want you to write a program that can detect if someone is attempting to use one of these credit card numbers at the local Target store.Your program should first read in a list of credit card numbers from a file into an array, and ask the user for a credit card number they would like to use. Then, search the array of credit card numbers to see if the credit card number is in the list. To simplify, we will use a 6 digit credit card number, e.g. 424238. Your list of stolen credit card numbers must be stored in an array of 20 ints. You can get a list from my website and read it in to initialize your array, it is sorted from lowest to highest card number. To get the list into your hills directory, you can use the wget command from the hills prompt: wget http://fog.ccsf.edu/~mluttrel/cs110b/cards.txt…
- Hello, I am having trouble with this homework question for my c++ course. **It is saying to use the int main provided - I have included it in the snip along with the correct output snip. 1. Implement a class IntArr using dynamic memory.a. data members: capacity: maximum number of elements in the array size: current number of elements in the array array: a pointer to a dynamic array of integersb. constructors: default constructor: capacity and size are 0, array pointer is nullptr user constructor: create a dynamic array of the specified sizec. overloaded operators:subscript operator: return an element or exits if illegal indexd. “the big three”: copy constructor: construct an IntArr object using deep copy assignment overload operator: deep copy from one object to another destructor: destroys an object without creating a memory leake. grow function: “grow” the array to twice its capacityf. push_back function: add a new integer to the end of the arrayg. pop_back…Arya has completely learned about function templates and using them in Arrays, her teacher has given her a task to implement class Templates for all the same things-searching, sorting, and displaying an array using templates. You are her friend and you have knowledge about class templates, help Arya to make a class template to search, sort, and display an array. Write a C++ program to create a class template using an array. Perform operations like sorting, searching, and displaying the array using a class template. Strictly adhere to the Object-Oriented specifications given in the problem statement. All class names, member variable names, and function names should be the same as specified in the problem statement. A class named Array with the following member variables. Data Type Variable Name Integer size T* array Define the following public functions inside the class Array. Function Name Description void sorting() This function is used to sort the array elements in…I have been trying to solve this C++ problem for a while now and even though the code gives the correct output, MindTap still tells me the code is wrong. it is looking for largeInteger class correctly performs .add operations and .subtract actions. If anyone can help, it would be much appreciated! Programming Exercise 11 in Chapter 8 explains how to add large integers using arrays. However, in that exercise, the program could add only integers of, at most, 20 digits. This chapter explains how to work with dynamic integers. Design a class named largeIntegers such that an object of this class can store an integer of any number of digits. Add operations to add, subtract, multiply, and compare integers stored in two objects. Also add constructors to properly initialize objects and functions to set, retrieve, and print the values of objects. Write a program to test your class. \\largeIntegers.cpp #include <iostream> using namespace std;…