Write a complete C++ program that takes 10 integers from the user and stores them in an array by ing a for loop. The program should find the sum of the integers at even indexes (including index 0), and then multiply each integer in the array with the sum. The program should then print the new values in the array. ü Sample run: Enter values: 2 517 346 98 10 Sum of the numbers at even indexes is 20 New values in the array: 40 100 20 140 60 80 120 180 160 200
Q: What effects will the internet of things (IoT) have on how we live our lives? Give an illustration…
A: The network of physical objects that can connect to the internet and gather data is known as the…
Q: A nonpipelined processor has a clock rate of 2.5 GHz and an average CPI (cycles per instruction) of…
A: (a) What is the speedup achieved for a typical program : No. of stages in pipeline( k)=5 SUPPOSE…
Q: JAVA Programming Write a function that returns true if you can partition an array into one element…
A: In this problem we need to design the JAVA program. Input - Array Ouput - Boolean Logic -…
Q: Wireless networks experience a wide range of issues as a result of their inherent characteristics.…
A: In a business setting, Wi-Fi is an essential component of your IT infrastructure. Improper planning…
Q: How many times is the body of the loop executed? The numbers on left are line numbers. 1 int…
A: The correct answer is given below with explanation
Q: how can an integrated information system be understood and characterised from both an organisational…
A: Information system is used to collect, store and manipulate information from interrelated components…
Q: Many commands in Linux work exactly as they do in Linux, but why and how does this happen?
A: INTRODUCTION The Linux operating system is a piece of software that sudden spikes in demand on top…
Q: An HTML page is displayed in the browser as shown below. Write HTML code to produce the page.…
A: The HTML code is given below with code and output screenshots
Q: Think about a multiuser, time-sharing, multiprogramming system. Which process protection-related…
A: Multi-user is defined as a user who is capable of handling more than one person or task at the same…
Q: ow can a client determine whether or not a server request will be fulf
A: Introduction: Below describe the process how can a client determine whether or not a server request…
Q: What possible use may a motherboard power connection in the SATA type serve?
A: SATA: Abbreviation for "Serial Advanced Technology Attachment" It is the interface used to connect…
Q: Explain what is meant by the term "caching" when referring to shared memory.
A: Shared memory is the memory that may be simultaneously accessed by multiple programs with an intent…
Q: Give a thorough explanation of how the DNS operates, including topics like authoritative and root…
A: Domain Name System: The domain name system, often known as DNS, can be considered the Internet's…
Q: 3 A computer consists of a processor and an I/O device D connected to main memory M via a shared bus…
A:
Q: JAVA Problem Create a function that determines whether elements in an array can be re-arranged to…
A: Algorithm - Take one string as input. Now use the below logic return (arr[arr.length - 1] -…
Q: Who among these organisations is participating in the various stages of the development life cycle…
A: The Security System Development Life Cycle (SecSDLC) is very similar to the Software Development…
Q: Write a struct that defines a binary tree node
A: In C, we can use structures to represent a tree node. We can use classes as a component of other…
Q: 3.10 Using the DUP directive, allocate space for 5 doublewords and 2 bytes in a data segment, then…
A: Using the DUP directive, allocate space for 5 doublewords and 2 bytes in a data segment, then fill…
Q: Explain in detail how alpha testing works.
A: The software testing which refers to the process of evaluating and the verifying of the software…
Q: Please help provide answers for the following questions 2-26. The following bytes (shown in hex)…
A: As per our policy we can only solve first three questions. Please post other questions separately…
Q: Does using partitions in Linux make a significant difference?
A: Partitions in Linux: In most cases, large storage devices are divided into separate sections called…
Q: Explain disconnected mode's query text transmission to the server.
A: The disconnected mode is one in which a connection is only made when necessary.
Q: In SQL Server, specify the differences between the two character data types as follows: NVARCHAR…
A: Data formats: When building a table in the database, each column will have its own data type, and…
Q: Write a program that removes all non alpha characters from the given input. Ex: If the input is:…
A: Here I have taken input from the user and stored it in a variable. Next, I have used a loop to…
Q: Why should we use the OSI Security architecture?
A: Answer: People who work for an organization are extremely concerned about its security. Cyber…
Q: DoS attacks often include the flooding of servers, systems, or networks with traffic, which prevents…
A: A Denial-of-Service (DoS) attack is an attempt to bring a machine or network to a halt, rendering it…
Q: What advantages might a RAID Level 2 system provide to a university payroll system? What, if any,…
A: The answer of the question is given below
Q: IN JS Someone has attempted to censor my strings by replacing every vowel with a *, 1*k* th*s.…
A: In this problem we are provided with a censored string and a string of the censored vowels. Need to…
Q: What significant advancement over conventional SDRAM did DDR make?
A: Introduction: SDRAM is nothing but a synchronous DRAM and DDR is Double Data Rate.
Q: How can the practical use of virtual servers and services be shown and explained?
A: Virtualization is becoming more substantial in the world of innovation as people realize how it may…
Q: an to be "busy waiting"? What other sorts of waiting are there in an operating system? Is it…
A: Introduction: As part of a process synchronisation approach known as busy waiting, spinning, or busy…
Q: How about demonstrating and outlining the actual use of virtual servers and services?
A: A virtual server should ideally mimic the features of a dedicated server. It is possible to run many…
Q: 1. Which of the following will dynamically allocate a double? a. double* ptr-=double x; b. double*…
A: Dynamic allocation: Memory is allocated at the time of execution is called dynamic memory…
Q: Dissertate on WebGL and OpenGL ES.
A: OpenGL is just a delivery API and has nothing to do with information, sound, or windowing. WebGL.…
Q: Where exactly are the weaknesses in the security architecture located?
A: Security architecture forms the foundation of a good cyber security strategy.
Q: What is the ASCII representation of these numbers 56 68 65 20 45 6E 64
A:
Q: s in detail the need for alpha testing. Include in your discussion the main objec
A: Introduction: An alpha test is conducted on a different system in a test lab setting. In this…
Q: How can a client predict that a server request will fail?
A: A client is a program that uses services that other programs provide. The programs that provide the…
Q: Explain the importance of Random Access Memory ? Define the types of Random Access Memory ?
A: If the user needs to store data on the computer that can be accessed later for adding, updating, or…
Q: How should someone continue if they have forgotten both the administrator password and the system's…
A: The answer of the question is given below:
Q: What fundamentally distinguishes the telephone network from the Internet
A: The Internet and phone networks are both switched networks that use circuit and packet switching.
Q: 1. Give an example schedule with actions of transactions T1 and T2 on objects X and Y that results…
A: 1. Answer The following schedule results in a write-read conflict: T2:R(X), T2:R(Y), T2:W(X),…
Q: Explain the distinction between the written sequence and the time sequence of an instruction.
A:
Q: What are some of the drawbacks of having pages that are fragmented?
A: Introduction: Fragmentation is an unfortunate issue in the functioning system where the cycles are…
Q: What do you consider to be the most important factor in software development?
A: The answer of the question is given below
Q: What are the most typical factors that lead to malfunctioning firewalls?
A: A Firewall is a network security device that monitors and filters incoming and outgoing network…
Q: What is AJAX And how its implemented in a web application.
A: Ajax stands for Asynchronous JavaScript and XML.
Q: Provide an overview of the built-in antiviral programme for Windows, Windows Defender
A: Introduction: Defender Antivirus is a program that safeguards your PC from Antivirus programming…
Q: Give an example each of two benefits and two drawbacks associated with integrated enterprise…
A: Information system is a system which provides security to network and organization information.
Q: Who among these organisations is participating in the various stages of the developm
A: Systems Development Life Cycle System development life cycle (SDLC) is an Information system…
Step by step
Solved in 4 steps with 2 images
- (Practice) Write a C++ program that adds equivalent elements of the two-dimensional arrays named first and second. Both arrays should have two rows and three columns. For example, element [1][2] of the resulting array should be the sum of first [1][2]andsecond[1][2]. The first and second arrays should be initialized as follows: first second 16 18 23 24 52 77 54 9111 16 19 59Write a C program that asks the user to enter 5 integer values into an array and computes the number of even numbers in the array. Use “for” loop. Sample Run:Enter array’s elements: 4 5 10 2 3Your array has 3 even elements.Write program in C compatible with quincy please. Exercise 2: Write a program to store an input list of ten integers in an array; then display a table similar to the following, showing each data value and what percentage each value is of the total of all ten values. n % of total 4 2.00 12 6.00 18 9.00 25 12.00 24 12.00 30 15.00 28 14.00 22 11.00 23 11.00 10 5.00
- Write a complete C++ program that randomly generates 20 integers between the rangeof 1 to 50 and store the result in an array. Use thesefunctions to test the array. The arguments for each of these functions will be thearray itself and its length (20).1. void print(int array[], int length);This function will simply print the array on a single line with a space in betweeneach entry.2. int findMax(int array[], int length);This function will return the largest number in the array.Write a C++ program that declares and initializes an integer array of size 100 withrandom integers between 1 and 10 using initializeArray and counts the occurrence of eachnumber in the array and prints the occurrences.Note: Print time or times correctly.Hint: Declare another array called count that stores the number of each value as you count the numbers ofthe original array. Use printArray to print the values of count.Here is a sample run of the program:1 occurs 1 time2 occurs 15 times3 occurs 9 times4 occurs 12 times5 occurs 11 times6 occurs 8 times7 occurs 13 times8 occurs 7 times9 occurs 9 times10 occurs 15 timesWrite a python or C# program that creates an integer array of size 10 and fills the array with positive numbers set by the programmer (not entered by the user). The range of values in the array should be between 1 and 100. Then, the program will remove the duplicate values found in the array (i.e. each value should be found only once in the array). After removing the duplicate values, the size of the new array should be equal to the number of unique values found in the original array.
- Write a function in c language that takes your student number as a value and adds each digit ofyour student number into 2 different dynamic arrays according to whether they are odd oreven(one array for the odd digits and another one for the even digits), and displays the odd andeven values in the dynamic arrays separately.Student number:2015710213035Example: Input: Student Number : 25698574Output: Result: 7 5 9 54 8 6 2Write 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…Write a C++ program which takes input from user and stores it in an array. Afterwards, ittakes another number input from the user and searches it in the array. If number found,displays “Number Found”, else prints “Number not found”.
- use c program Write a program, which creates an array of 5 elements of type integer. Print the elements of the array. PS: THIS WAS THE CODE BUT SAYS IT WAS WRONG #include <stdio.h>#include <stdlib.h>#define size 5 int main(void){ int num[size]; int i,sum=0; for(i=0;i<size;i++){ scanf("%d",&num[i]); } for(i=0;i<size;i++){ printf("\n%d",num[i]); } } THE ERROR DESCRIPTION__tester__.c: In function ‘main’: __tester__.c:7:11: error: unused variable ‘sum’ [-Werror=unused-variable] int i,sum=0; ^~~ cc1: all warnings being treated as errors INPUT OUTPUT 2 2 5 5 7 7 6 6 8 8Write a program in c that create a 5-by-6 array. All elements in the array are random integer numbers between 1 and 100. Then, calculate the mean values of each column, and also find the minimums and maximums of each column. Print out the array, mean values, minimums,in C PROGRAMMING LANGUAGE AND COMMENT EVERY LINE SO I CAN UNDERSTAND EVERY STEP PLEASE, A C program can represent a real polynomial p(X) of degree n as an array of the real coefficients al, al, ..., an (an ‡ 0). p(X) = a0 + a1X + a2 X2 + . . .+ anXn Write a program that inputs a polynomial of maximum degree 8 and then evaluates the polynomial at various values of x. Include a function get_poly that fills the array of coefficients and sets the degree of the polynomial, and a function eval_poly that evaluates a polynomial at a given value of x. Use these function prototypes: void get_poly ( double coeffIl, int* degreep); double eval_poly( const double coeffIl, int degree, double x);