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
- Write a complete C++ program that takes 10 integers from the user and stores them in an array by using 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 5 1 734698 10 Sum of the numbers at even indexes is 20 New values in the array: 40 100 20 140 60 80 120 180 160 200Programming in C language. AskForNumbers Declare an integer array lacally with the size of 200. Create a program that asks the user how many numbers the have. Use your getChoice() function from before. Make sure it does not exceed 200 as the locally declared array has the size of 200. Use a for loop and ask the user to enter each value that must be stored in the array. Use a second loop to display each number, and also determine the average of all values in the array. After the for loop, display the average of all numbers. This program will let you enter a list of numbers into an array. It will then display all of the numbers, and finally display the average of all numbers. How many numbers would you like to enter?5 Please enter a number:22 Please enter a number:33 Please enter a number:44 Please enter a number:55 Please enter a number:66 Number Number 2 is 33 Number 3 is 44 Number 4 is 55 Number 5 is 66 The average is 44 is 22Programming in C language. RandomNumbers Declare an integer array locally with the size of 200. Create a program that asks the user how many numbers the have. Use your getChoicel) function from before. Make sure it does not exceed 200 as the locally declared array has the size of 200. Use a loop to assign random numbers from 1 to 10000 to the array elements. (Remember to use srand() to seed the random number generator). Use a second loop to display each number, and also determine the average of all values in the array. You must also find the largest and the smallest numbers. After the for loop, display the average of all numbers. This program will let you enter a list of numbers into an array. It will then display all of the numbers, and finally display the average of all numbers. How many numbers would you like to enter?10 Number 1 is 42 Number 2 is 8468 Number 3 is 6335 Number 4 is 6501 umber 5 is 9170 Number 6 is 5725 Number 7 is 1479 Number 8 is 9359 Number 9 is 6963 Number 10 is…
- in c++ InstructionsWrite a program that prompts the user to enter 50 integers and stores them in an array. The program then determines and outputs which numbers in the array are sum of two other array elements. If an array element is the sum of two other array elements, then for this array element, the program should output all such pairs separated by a ';'. example: list[0] = 15 is the sum of: ----------------------list[1] = 25 is the sum of: list[5], list[14]; list[13], list[47]; list[46], list[47]; ----------------------list[2] = 23 is the sum of: list[0], list[33]; ----------------------list[3] = 65 is the sum of: list[4], list[32]; list[13], list[20]; list[20], list[46]; list[21], list[34]; list[32], list[38]; ----------------------list[4] = 34 is the sum of: list[0], list[14]; list[6], list[48]; ----------------------list[5] = 6 is the sum of: ... If no two elements can equal the value of an element, the line can remain empty, as shown above for list[0] and list[5].Programing in C Write a program that calculates the average grade of a class. 1. You should ask the user how many students you have (you will use this number to set up the length of your array of decimals). 2. Once you have your array, you will have to ask the user for all the grades (there should only be one grade per student). Using a while loop. 3. While you are scanning the grades, you should check if the inputted grade is in the range 0.0 to 10.0 (inclusive). If the grade is not in this range, you should display a message to the user and assign 0.0 to the grade. 4. Once your array is populated with all student's grades, print out the values of the array, so that the user knows these values were saved correctly (use a while loop as well). 5. After this calculate the average (add up all grades and divide by the number of students). Hint: You will need a loop to do so; please use a while loop as well. Example: How many students are in your class? 8 Please input the grades: 8.5 9.8…Write a C++ program that asks a user to input 10 numbers. The numbers are stored in the array if it is not Odd and not already available. After creating the array, it asks the user to enter a number and deletes it from the array
- Answer in C++ Programming Language. C++, Array Write a program that will ask the user to enter a set of numbers and outputs all the subsets of that set. The size of the array is 5. Ask the user if he wants to repeat the program by pressing y/Y.a C++ program that creates a two-dimensional integer array (4x3) initialized with user given data. The program should have the following functions: • Print the sum of all values in the array. • Print the average of all the values in the array. • Take row number from user and print the sum of the values in that specified row.(use loop and no if statement) • Take column number from user and print the sum of the values in that specified column.(use loop and no if statement)In C++ please Write a program to simulate a pick-5 lottery game. Your program should generate and store 5 distinct numbers between 1 and 9 (inclusive) into an array. The program prompts the user to enter five distinct between 1 and 9 and stores the number into another array. The program then compares and determines whether the two arrays are identical. If the two arrays are identical, then the user wins the game; otherwise the program outputs the number of matching digits and their position in the array. Your program must contain a function that randomly generates the pick-5 lottery numbers. Also, in your program, include the function sequential search to determine if a lottery number generated has already been generated.
- For C++: Design an application that has an array of at least 20 integers. It should call a module that uses the sequential search algorithm to locate one of the values. The module should keep a count of the number of comparisons it makes until it finds the value. Then the program should call another module that uses the binary search algorithm to locate the same value. It should also keep a count of the number of comparisons it makes. Display these values on the screen.in c++ vs2019 You should write a program to sort an array. For this purpose you will implement two sorting algorithms: Insertion Sort and Merge Sort. For each algorithm, you are supposed to have a counter and count how many times a comparison is made to sort the array. Once this logic is implemented, create integer arrays of 1000 and 10000 elements with random values inside (you can implement a random number generator for this purpose and randomize their elements). Then go ahead and run your application. The output should show us how many comparisons it made for each algorithm for 1000 and 10000 elements. Do it seperate files. 1 cpp file 1 header file 1 main.cpp fileWrite a C++ program that asks the user to enter 10 integer values in an array. After entering 10elements arrange in ascending order and display it on output screen.Sample Input:Please enter elements for array:10 8 5 9 14 7 12 10 1 2