Sample run: Enter values: 251734698 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: Green Carpet Company wants a program to compute carpet costs. The program prompts the user for two…
A: Green Carpet Company wants a program to compute carpet costs. The program prompts the user for…
Q: Using c++ language, 1. Write the function int isEven (int x); that returns 1 if x is an even number;…
A: Algorithm: Start Declare variables. Read the input any integer Use if else for conditions call the…
Q: What does virtual circuit network connection status information mean? What rate does the forwarding…
A: The notion of a virtual circuit is used in a second approach for packet switching (VC). Before any…
Q: ABCDEFGHIJKL Figure 4: Block of data a) Determine which block of data are allocated at location 8, 9…
A: Solution:: Following is the distribution in RAID-6 :: a) Location 8 = G Location 9 = H Location…
Q: Design a class called Post. This class models a StackOverflow post. It should have properties for…
A: The answer is as follows. NOTE: below code in C#.
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: . For n No let w(n) denote the number of 1s in the binary representation of n. For example, w(9) =…
A:
Q: time got wrong answer. Don't make copy
A: I have answered below:
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: Write a program that reads a string and checks the longest substring starting with "a" and ending…
A: We need to write a code for the given scenario. Language used is Java.
Q: CPU scheduler will decide which process should be given the CPU for its execution. For this it uses…
A: your code is given below
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: Java that analyzed for lexical and syntactical correctness. It should allow for the following type…
A: According to the question, we have to write a correct syntax for given statements that should allow…
Q: ribe what a "firewall" is in terms of network security and how network top
A: Introduction: Firewalls are important because they have a great impact on modern security techniques…
Q: Differentiate between manually matching transactions and Advanced Mode transactions in QuickBooks…
A: Introduction: Bank feed's can be set up and manages in a variety's of ways. After obtaining your…
Q: Hardware is made up of a set of instructions that specify to the computer what operations to carry…
A: A computer programme, sometimes known as a software programme, is a collection of instructions that…
Q: Encrypt the message " MATH " by translating the letters into numbers and then applying the…
A: Assign a number to each letter: A=0,B=1,C=2,D=3,E=4,F=5,G=6,H=7,I=8,…
Q: For the following CLSM subnetting problems, submit: a. bits for subnet b. bits for host c. subnet…
A: given detailsTo locate the following locations using CLSM subnetting: A)bits for the subnet B)bits…
Q: What do the phrases "static media" and "dynamic media" refer to? Give two examples of each.
A: Media that is static refers to information that is constant. An advertisement in a newspaper or…
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: Create a program that a user can use to manage the primary email address and phone number for a…
A: Since no programming language is mentioned, I am using python. Code: contacts=[[1,"Guido van…
Q: <!DOCTYPE html><html><head><title>Home…
A: HTML stands for a hypertext markup language. It is used for designing static web pages along with…
Q: Suppose an 8-bit data word stored in memory is 11000010. Using the Hamming algorithm, determine what…
A: Check bit 8(C8) calculated by values in bit numbers: 12, 11, 10 and 9 Check bit 4 (C4) calculated…
Q: Discuss acceptable technologies in brief. Determine and explain how a particular piece of relevant…
A: Acceptable Technologies: A user must consent to certain rules and procedures in order to use a…
Q: Question 11. Listen ➤ What is the maximum total number of Swaps that will occur when sorting an…
A:
Q: Name five benefits and five drawbacks of mobile displays.
A:
Q: Facts have been discovered via experimentation and close observation. Based on these facts, is the…
A: Given: Based on observation, experimentation, and measurement, science is the methodical study of…
Q: t is i^n and how do you compute its valu
A: Program Description: 1- i^n means i raise to power n. 2- For example:i=2.n=3.i^n = 2^3 = 2*2*2 =…
Q: 2. Consider a server with RAID Level 3 and given Figure 2 below, determine the bit for data…
A: Note: as per guidelines we are supposed to answer only one question at a time. please repost the…
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: Suppose an 8-bit data word stored in memory is 11000010. Using the Hamming algorithm, determine what…
A:
Q: How do computer networks work?
A: Introduction In this question we are asked how do computer networks work.
Q: List at least two benefits of OOP over PP alone.
A: There are different types of programming:- Functional Programming:- This is programming language…
Q: Please provide an explanation of what end-to-end testing is and why it is very necessary.
A: End-to-end testing can be defined in such a way that it is a methodology that assesses the working…
Q: Explain the differences between Big Endian and Little Endian in the context of computer architecture
A: The difference between little endian and big endian formats, also sometimes called endian-ness is…
Q: Which option of rm command is used to remove a non- empty directory? A) -t B) -i C) -a D) -r
A: 1) rm stands for remove. rm command is used to remove objects such as files, directories, symbolic…
Q: If the task runs an average input of size 100, rank the algorithms from
A: The answer is
Q: What is the catastrophe recovery process's principal objective?
A: Introduction: Catastrophe recovery/ Disaster recovery: Disasters such as fire, flooding, terrorist…
Q: i think my example is mistake the example correct answer should be data[3] = 8 i am sorry, can you…
A: Given that, the C program finds the maximum value and it's position from the list of array numbers…
Q: Provide the asymptotic characterization of the following recurrence relation using the Master…
A: please check the solution below
Q: Apply the Depth First Search (DFS) algorithm for finding a path from A to G. Show the queue content…
A: Depth First Search Algorithm Depth First Search is a method that explores a graph by prioritizing…
Q: Why is the insertion sort faster than the sorted group? Indicate only one cause.
A: Insertion sort is a method of sorting that is more effective on fewer elements than it is on bigger…
Q: Exercise 1: Binary Search Tree Consider the following Binary Search Tree. Assume you want to store…
A: Given a number of elements, our task is to construct a complete binary tree from this array in level…
Q: Describe MVC. How would you implement MVC using the stock market as an example? Any suppositions may…
A: Stock markets and the MVC pattern: In this section, we will be create a basic example of the MVC…
Q: Name: importantCalc Input/Parameters: integer, integer, double Output/Returns: double In the main…
A: b) num4= importantCalc(num1,num2,num3);
Q: What is the difference between realloc() and free() ?
A: the difference is an given below :
Q: Briefly define the seven RAID levels.
A: Most businesses deploy production SQL Server databases using RAID storage. However, not all DBAs…
Q: A user is executing a tracert to a remote device. At what point would a router, which is in the path…
A: Computer networks is the set of the devices or the systems which are connected by the transmission…
Q: Calculate the number of edges in a complete directed graph with N vertices. Where N is equal to the…
A: In a directed graph having N vertices, each vertex can connect to N-1 other vertices in the…
Q: Q1 In Modules 10 and 11 we discussed techniques to solve maximum flow and minimum cut problems. In…
A: The above question is solved in step 2 :-
Step by step
Solved in 2 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 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. 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…Programming 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 22Answer 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)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 arrayin 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
- 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++ 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.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….