Write a complete C++ program that takes 10 integers from the user and stores them in an array b for loop. The program should find the sum of the integers at even indexes (including index 0), and the each integer in the array with the sum. The program should then print the new values in the array. ple run: er values: 2 51734698 10 umboro at oven indexon in 20
Q: What is JVM and is it platform independent?
A: JVM is also called as Java Virtual Machine.
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: What challenges does implementing mobile technologies present? The savings compared to web-based…
A: The answer is written in step 2
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: 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: Why would you want to use a firewall?
A: A firewall is a networking-based security system which is as to monitor network traffic and it acts…
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 have a censored string and a censored vowel string. Need to provide a solution in…
Q: Create a python program that asks the user for the product name and price. Save the product name…
A: Here I have created 2 empty and then inside the loop taken input from the user and added it to the…
Q: What is the SDLC?
A: SDLC: The system development life cycle (SDLC) is the process to plan, develop and implement the new…
Q: A computer consists of a processor and an I/O device D connected to main memory M via a shared bus…
A: It is given that on a normal a guidance requires 6 cycles and the CPU is occupied 95% of the time in…
Q: What are some best practises for configuring a firewall, and why are they recommended?
A: Introduction: To begin, configure the firewall to limit all traffic, with the exception of network…
Q: Give an implementation-level Turing machine which decides the following language Lt = {w#w: w€ {0,…
A: A Turing machine is an abstract computer that tries to influence symbols on a strip of tape in…
Q: Determine the root-bridge, root ports, designated ports and non-designated ports for the circuit of…
A: In the Figure above let’s assume PC-1 sends a frame to PC-2. This frame is received on Port 1 of…
Q: Consider the following grammar with terminals [, ], a, b, c, +, and -: a) S→ [SX] | a X+SY | Yb | &…
A: To apply the needed rules at the correct position by the parser, first and follow need to be found.
Q: Q1. Solve the following nonlinear set of equations by applying Newton Raphson Method in EXCEL…
A:
Q: Along with company information, professional experience, skills set, and qualifications, the salary…
A: Here we have given options to the multiple questions asked with explanation. You can find the…
Q: Describe simply, if at all possible, what Machine Language involves. Also, why can't English be…
A: The computer reads and interprets a set of binary numbers or bits known as machine language, often…
Q: What is the method that DMA uses to increase the concurrency of the system? In what ways does it…
A: The answer of the question is given below:
Q: Why and how do numerous Linux commands behave in the same way on Macs and Linux systems,…
A: Linux is the most popular open-source operating system, and it is also one of the most well-known.…
Q: What are the many programmes I may use to backup Windows 10? Also, please explain the main…
A: answer is
Q: What are the two advantages of layered protocols?
A: layered protocol A layered protocol engineering gives a reasonable system to splitting the…
Q: Where does Windows store deleted files when you use File Explorer or Windows Explorer to remove them…
A: The answer to the question is given below with an explanation
Q: Explain what is meant by the term "caching" when referring to shared memory.
A: term "caching" when referring to shared memory is given below
Q: a. Assume that interrupt processing takes about 100 μs (i.e., the time to jump to the interrupt…
A: a) :
Q: What is the name of the integrated memory cache that houses the CPU on the same die?
A: The temporary memory referred to as "CPU cache memory" is called cache. Your computer's chip-based…
Q: Who are the people involved in the phases of Waterfall Model
A: The above question that is people involved in the waterfall model is answered below step.
Q: Who are the people involved in the phases of Waterfall Model
A: the above question that is who are the people involved in the waterfall model is answered below step
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: Consider the context-free grammar (CFG) G = with production P S do S while S | while S do S | & and…
A: ANSWER:-
Q: Differentiate between disconnected mode and the method through which a server-side query text is…
A: The question is differentiate between disconnected mode and the method through which a server-side…
Q: Consider a fixed partitioning scheme with equal-size partitions of 2¹6 bytes and a tota main memory…
A:
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: Byte ordering used by TCP/IP and IBM's 370 mainframes. (TWO WORDS)
A: As we can't write the answer in two words , its against the policy of bartleby's, I am elaborating…
Q: a) Given the codes dealing with input and output file in Program-3, fill in the blanks to complete…
A: In this question we have to complete the code for writing the data to the file and reading it from…
Q: L is context-free, then LR must be context-free.
A: As given: We want to show that if L is a context-free language, then it LR is must be context-free…
Q: What is a virtual machine (VM) defined as? Is there a reason I would want to use a virtual machine?…
A: A Virtual Machine, also shortened as VM, is the same as any other physical computer, such as a…
Q: Explain the differences between the two primary types of defences against buffer overflow attacks.
A: BUFFER OVERFLOW ATTACK - It is a temporary area for data storage. If more data gets placed by a…
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: Assume an 8088 is executing a program in which the probability of a program jump is 0.1. For…
A:
Q: Where does Windows store deleted files when you use File Explorer or Windows Explorer to remove them…
A: The question is Where does Windows store deleted files when you use File Explorer or Windows…
Q: Considering the c++ program below, and [4, 5, 8, 3] as user inputs, answer the following questions:…
A: We need to answer the questions based on given C++ code.
Q: List the top seven computer science criteria for choosing the best file organisation system.
A: File organizing system 1) The method that is used to both represent and store the data that are…
Q: To further increase the statistical knowledge of your fight, count the number of times a certain…
A: In this problem, to further increase your statistical knowledge of your fight, count how many times…
Q: Give a thorough explanation of how the DNS operates, including topics like authoritative and root…
A: Web browsers are able to access various sites on the Internet thanks to the Domain Name System…
Q: How do stored procedures and scripts vary from one another? Why are stored procedures advantageous?
A: answer is
Q: Describe how Mercy's data collection practices relate to the three big data qualities of volume,…
A: Big data contains large amounts of data that traditional data storage and processing equipment…
Q: Whenever is use System.out.print, it prints horizontally but it doesn't have a newline, thus, it…
A: After completing the code, I have provided JAVA CODE along with CODE SCREENSHOT and OUTPUT…
Q: Create an external style sheet, which specifies the following features: The ordered list located in…
A: External Style Sheet External style sheets are used when you want to apply similar changes to…
Q: Explain in detail the various strategies that may be used to prevent OS invaders.
A: The various strategies that may be used to prevent OS invaders are
Q: In this project, you are asked to independently research and write a short report relating to our…
A: Here is the solution:
Step by step
Solved in 3 steps with 1 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 7 3 4 6 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 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…
- 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…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].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.Using c++ write a program Write a program in C++ to input attendance as 0 (for absent) and 1 (for present) for 25 students in 32 lectures and store it in a 2-D array. After the input, write loops for calculating and displaying the index numbers of the students who has short attendance (i.e. less than 75%). Please enter attendance of all 25 students for given lecture (total 32 lectures): Enter attendance of Lecture “1” Student 1: <user enters 0 or 1> Student 2: <user enters 0 or 1> and so on….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 file