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 73469810 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: Which command is used to list the contents of the current working directory including the hidden…
A: Hidden File in Linux: The easiest way to show hidden files on Linux is to use the ls command with…
Q: If you are a network tester at work and your manager says to you, "Time is wasted on integration…
A: Integration Testing: A sort of software testing called integration testing, commonly referred to as…
Q: Write a C program using switch statement. The program will read a character (op) and will calculate…
A: Explanation 1) Below is C Program using switch statement to read a character(op) and calculalate and…
Q: Please Describe The Risc Architecture's Features.
A: Given To know about the RISC Architecture's Features.
Q: Calculate the number of nodes in a complete binary tree with height h. Where h is equal to the 3rd…
A: A binary tree is a tree with at most 2 child nodes in which the left node is always lesser than the…
Q: 2. Use a paper-and-pencil approach to compute the following division in binary. i. Dividend = 1110,…
A: Given that use a paper and pencil approach to compute the following division in binary. Dividend =…
Q: What various kind of networks are there?
A: Computer network- A computer network is a group of computers over a common communication path that…
Q: online behavior might make becoming a victim online more likely. Can the principle of normal actions…
A: Answer: Victimization is when someone is unjustly treated or made to feel as if they are in a wrong…
Q: How are data written onto a magnetic disk?
A: The question has been answered in step2
Q: How are data written onto a magnetic disk?
A: The answer of the question is given below:
Q: 7). The microcontroller has only one or two instructions to move data between memory and CPU. A.…
A: A microcontroller is defined as a compact integrated circuit designed for governing a specific…
Q: It has been hypothesized that with intelligent agent technology, new applications would emerge after…
A: Intelligent agent: An intelligent piece of software is able to respond to its environment, consider…
Q: How is a firewall utilized in network designs?
A: A firewall is a network security device to monitor the flow of network traffic and safeguards as a…
Q: Exercise 1.5 What are the responsibilities of a DBA? If we assume that the DBA is never interested…
A:
Q: An application includes the following functions: processing imaging orders and managing the…
A: Answer: A radiology information system (RIS) is an organized programming system for overseeing…
Q: Q5: For the Binary search tree given below. 7 15 17 In-order Travetrsal Pre-Order Traversal…
A: The tree given:-
Q: ances to make your point. How information security ideas are merged with controls and common people…
A: Introduction: Security policy is a set of guidelines that organisations use to meet their needs for…
Q: Suppose you want to put the six bit value 110111110111 into a DES S-box. What is the corresponding…
A: We need to find the desired information about DES.
Q: 3. One can build a circuit which consists of a hierarchy of logic gates which take a series of 2"…
A: 3. AND GATE: Outputs a 1 if both bits are 1, outputs 0 otherwise. // C program implementing the…
Q: Using Java or Python programming, Calculate all the possible outcomes of following cities (Buffalo,…
A: code- import itertools l=[ ["Buffalo","Los Angeles"], ["Boston", "Miami"], ["Ohio", "Raleigh"],…
Q: Explain Just-In-Time (JIT)?
A: It is an inventory management strategy that only receives supplies from vendors when they are…
Q: C Programming 1. There is a checkerboard, the size is 8x8 2. Enter the queen's position x,y 3.…
A: #include <stdio.h> #include <stdlib.h> int main() { int chessBoard[8][8] = {0};…
Q: What Is equal sign?
A: The equal sign is denoted by =
Q: fere a few examples of sites with targeted content. Why do they fall within ocused-content portal…
A: Summary An online business gate can replicate the look and sense of your business and give you…
Q: Digital social networks are popular (like Facebook and Twitter). Determine whether individuals…
A: Solution:: Social media websites and computer programs allow users to create and exchange…
Q: Name five benefits and five drawbacks of mobile displays.
A: Mobile Displays There are a few versatile Displays accessible, which are dispersed over an…
Q: Exercise 1.5 What are the responsibilities of a DBA? If we assume that the DBA is never interested…
A: A Database Administrator (DBA) design, implement, administers and monitors data management systems…
Q: For the 8-bit word 00111001, the check bits stored with it would be 0111. Suppose when the word is…
A: Introduction So in this given question, we are asked What is the data word that was read from…
Q: What is machine language?
A: Machine language is also know as macnine code it includes the binary digits (0s and 1s),…
Q: Give an example code for bold text tag in html?
A: Given question wants a sample code in html using bold text tag.
Q: Digital social networks are popular (like Facebook and Twitter). Determine whether individuals…
A: -Multiple studies have found a strong link between heavy social media and an increased risk such as…
Q: ain the differences between Big Endian and Little Endian in the context of computer archit
A: Introduction: Below the differences between Big Endian and Little Endian in the context of computer…
Q: Give a single example of a sensor utilized in a mobile device.
A: we have to give one sensore name used in mobile devices.
Q: For the following CLSM subnetting problems, submit: a. bits for subnet b. bits for host c. subnet…
A: For the given range : 225.10.20.0/24 Number of bits used for Subnetting is 24 which means 24 bit…
Q: Give instances to make your point. How information security ideas are merged with controls and…
A: An Overview of Information Safety and Assurance: The internet is not a single network but rather a…
Q: CPU scheduler will decide which process should be given the CPU for its execution. For this it uses…
A: code- #include<stdio.h>int main(){ int AT[20],WT[20],BT[20],TT[20]; int n; int…
Q: Suppose an 8-bit data word stored in memory is 11000010. Using the Hamming algorithm, determine what…
A:
Q: 10. Create a function based on the following information: Your mission is to encrypt a secret…
A: This C++ program takes the input of the string.
Q: Compile a list of social media's mental health risks. Is there a risk of Internet addiction?
A: During the past decade, online social networking has caused profound changes in the way people…
Q: the insertion sort faster than the sorted group
A: Why is the insertion sort faster than the sorted group? Indicate only one cause.
Q: Main memory is byte addressable? 2^20 bytes Main memory is word addressable( a word size is 32 bi
A: The answer is
Q: What justification did the RISC architecture have?
A: The answer of the question is given below:
Q: Project 9-1: Interest Calculator Create a program that calculates the interest on a loan. Console…
A: We need to write a Python code for the given scenario.
Q: Create a JAVA program that reads input a string from the user and prints the Unicode values of all…
A: Required:- Create a Java program that reads input a string from the user and prints the Unicode…
Q: Why is an optical wand characterized as a hand-held device that reads markings or letters on paper…
A: Introduction: Optical wand: A hand-held device which reads marks or characters on paper by detecting…
Q: ciples of push-button switches and illustrates their diffe
A: Introduction: Below describe the principles of push-button switches and illustrates their different…
Q: Social networking platforms are popular (such as Facebook and Twitter). Determine why people choose…
A: Informal Social Networks - the use of specialized websites and programs to casually chat with other…
Q: List at least two benefits of OOP over PP alone.
A: Benefits of OOP over PP alone is. Given below 1)OOPS makes development and maintenance easier…
Q: Ques Vie Use movie data from the group lens deteset and extractal libraries to Calculate 10 recent…
A: The Python UDF in solution contains two functions: parse_title() and days_since_release(). The…
Q: P 1 KB VPN bits Number of VPO bits PPN bits PPO bits
A: The answer is
Step by step
Solved in 4 steps with 2 images
- Programming 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…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.
- 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 arraya 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)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….CODE IN JAVA design a program that grades arithmetic quizzes as follows: (Use the below startup code for Quizzes.java and provide code as indicated by the comments) 1. Ask the user how many questions are in the quiz. 2. Use a for loop to load the array. Ask the user to enter the key (that is, the correct answers). There should be one answer for each question in the quiz, and each answer should be an integer. They can be entered on a single line, e.g., 34, 7, 13, 100, 8 might be the key for a 5-question quiz. You will need to store the key in an array called "key". 3. Ask the user to enter the student's answers for the quiz to be graded. There needs to be one answer for each question. Note that each answer can simply be compared to the key as it is entered. If the answer is correct, add 1 to a correct answer counter. need this in a separate for loop from the loop used to load the array. 4. When the user has entered all of the answers to be graded, print the number correct…Python Programming: Sergey is suffering from a unique brain disease where his brain can only process odd digits. He is performing a task where he has to get the gcd of given numbers in an array. Your task is to write a code which will make sure that the gcd of numbers present in array is odd. You can consider a particular index ore than one time if needed. Your code should return the minimum number of tries after which gcd becomes odd. Input Output 1 1 4 2 64 12 18
- Using C++ Language In this program, you will write a program that uses a function to compute the maximum value in a randomly generated array of integers. Inside your main function, declare an array of size 10. Using a suitable loop, generate seeded randomly generated numbers between 50 and 100 inclusive. Display the randomly generated numbers using a suitable message. Call a function that returns the maximum value of the array. You will need to pass this array to a function. The function does not need to modify the array, hence pass it as a constant array. Use a global constant for the size of the array. You must display the maximum value of the array in the main function.Write 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 2In C program language, You are to read 10 numbers from a data file into an array named List. Create another 10 element array named Reverse that is to contain the same items as List but in reverse order. For example, the first element in List will be placed in the last position of Reverse, the second element in List will be placed in the second-to-last position in Reverse, etc. After Reverse has been created, output the contents of both arrays.