Given
Q: python
A:
Q: Need help with the questions provided below.
A: question 12 answer is a arrays referenсe lосаlity – temроrаl аnd sраtiаl lосаlity. ... ...
Q: Create two dynamic arrays A and B with random numbers.a) Merge B in array A calling a function by re...
A:
Q: Create a c++ program that uses objects and classes that determines if the number is prime or not. PS...
A: Read the input number. Check whether it is divisible by any number using loop. If yes then print it...
Q: According to IEEE 610.12, how is the field Software Engineering?
A: Given: According to IEEE 610.12, how is the field Software Engineering?
Q: O a. num_1 O b. 1_num C. _Inum d. O d. _numl
A: Question given is
Q: Write a C++ program (use cout and cin) that inputs a five digit integer, separates the integer into ...
A: Code: #include<iostream>#include<cmath> using namespace std; int main(){ int enter_num...
Q: Draw an ERD of following scenario Vehicle registratio...
A: Draw an ERD of following scenario Vehicle registratio...
Q: Why line 18 is wrong ? please help <?php namespace Database\Seeders; use Illuminate\Database\...
A: <?рhр nаmesрасe Dаtаbаse\Fасtоries; use Арр\Mоdels\Соntасt;use Illuminаte\Dаtаbаse\Elоquent\Fа...
Q: Suppose you have to design a Local area network with 10 PC located on two floor office in a building...
A: Stаr tороlоgy is best fоr the given сirсumstаnсes. The heаd brаnсh оf the sсhооl shоul...
Q: Briefly explain the difference between a nested if statement and a lookup function using a lookup ta...
A: Given: Briefly explain the difference between a nested if statement and a lookup function using a lo...
Q: Computer science question
A: The add element operation for both the linked and array implementation of a heap is
Q: Give a big-O estimate for the number of times k gets updated in the following loop: k:= 0 i:=n while...
A: Give a big-O estimate for the number of times k gets updated in the following loop k:=0 i:=n while i...
Q: We identified three (3) broad classifications of Software Engineering Methodologies. Tabulate and me...
A: There are various models that can be taken into use for software development.
Q: Use the following information to solve i. and ii. Initial velocity = u Angle of fire e S Time of fli...
A: Answer is given below .
Q: The following code intends to input a user’s first name, last name, and age.However, it has an error...
A: Corrected Code: #include <iostream>#include <string.h>using namespace std; int main(){ ...
Q: Computer Science Question The first line consist a number X i.e., the number of test cases. The fi...
A: I have given code in step2
Q: C++ Write a program in C++ to read the content from a text file OUT.TXT, count and display the numbe...
A: Code: #include<iostream>#include<fstream>using namespace std;void count_alphabet(){ifstr...
Q: Given a string of digit characters " 318159865358979383886". including totally 21 digit characters (...
A:
Q: Two friends are exchanging messages through regular post mail. They don’t want anyone to understand ...
A: I Have answered this question in step 2.
Q: 3b. Suppose you have to make a business software for a company, but you want that you make a sample ...
A: I have answered this question in step 2.
Q: QUESTION 67 Explain what happen in the following scenario in TCP A sends the first segment to B...
A: Explain what happen in the following scenario in TCP A sends the first segment to B (successfully de...
Q: The UP is implemented in a two dimension manner comprising a set of phases and a set of workflows. D...
A: The UP is implemented in a two dimension manner comprising a set of phases and a set of workflows. D...
Q: I want Activity Diagram Sequence Diagram, Analysis Diagram for this module, please
A: For this question we have to create activity diagram, sequence diagram and analysis diagram of a giv...
Q: please do not use java
A: code: from math import inf def getCoordinates(s):#strip and split the line to get the x1,y1,x2,y2x1,...
Q: Hi! please can anyone write for me a univariate and multivariate linear regression in python. you ca...
A: Input : Generate univariate and multivariate data Fit the linear regression model Output : Coeffi...
Q: You are given a file called “std” and composed of “Number, Name, Address” fields/attributes. Write ...
A: In this question we have given a file in which there are some information fields. We have to write a...
Q: Suppose you are going to predict the human mood from their Facial Mimics as can be seen from the ima...
A: I have answered this question in step 2.
Q: For an array with 15 elements, how many iterations are required to sort the elements using selection...
A: The correct answer is (a) 14
Q: Select the appropriate answer for each question. 1- A multiplexer that has 4 selection lines can be ...
A: 1. A multiplexer that has n selection lines can be represented using 2n:1 mux. Given n=4 24=16 So A ...
Q: 2. Create a function that loops from 1 to 30 and prints out each value on a separate line, except pr...
A: PROGRAM CODE: #include <iostream> // include header file for input output stre...
Q: Which algorithm is used by Facebook for face recognition? Explain its working. 2. What do you unde...
A: Hello Student. Greetings from my side. Hope you are doing well. I will try my best to answer your qu...
Q: Write the function lastOf which searches the array a for the last occurance of any value contained i...
A: Answer is given below .
Q: Create an inheritance hierarchy that a bank might use to represent customers’ bank accounts. All cus...
A: Given: Create an inheritance hierarchy that a bank might use to represent customers’ bank accounts. ...
Q: Given two lists : List1 = [ 0,2,4,6,8,10] List2 = [1,3,5,7,9,11] Write a Phyton program that wi...
A: PROGRAM CODE: List1 = [0, 2, 4, 6, 8, 10] // declare and initialize the required l...
Q: Q3. You are required to either install or visit any DHCP server. Explain at least 6 configuration p...
A: Parameters defined in the configuration file are applied according to the declaration of topology. P...
Q: Which of the following is an invalid IP address? a.10.0.0.0 b. 198.256.2.6 c. 0.1.10.100 d. 192.31...
A: Please find the answer below :
Q: According to IEEE 610.12, how is the field Software Engineering?
A: IEEE defines sоftwаre engineering аs: (1) The аррliсаtiоn оf а systemаtiс,disсiрlined,quаnt...
Q: Using sample illustration, explain the core components of the HTTP request, and HTTP response
A: Core components of the HTTP Request: ✓A request line.✓A series of HTTP headers, or header fields.✓A ...
Q: Suppose you have to design a Local area network with 10 PC located on two floor office in a building...
A: Which topology will you use? Why star topology is used, as the nodes are individually connected to t...
Q: An online retail website needs to maintain a record of each customer's purchases. How can you do thi...
A: Answer is given below .
Q: Using sample illustration, explain the core components of the HTTP request, and HTTP response
A: Some core component of the HTTP request are mentioned below: HTTP version: It is used to show the v...
Q: How many times does the following code execute? err=1; count=0; while err>0.25 count=count+l; end er...
A: 1. err = 1; 2. count = 0; 3. while err > 0.25 4. count = count + 1; 5. e...
Q: Help me solving error in the below python code: nq = input().split(' ')n,q = int(nq[0]),int(nq[1]) A...
A: I have provided error less code in step2
Q: Computer Science Question The first line consist a number X i.e., the number of test cases. The fi...
A: def Find_Set(u): for o in f: if u in o: return o t=int(input()) for i in ran...
Q: write a c++ program to store last two digits of your id card number as private data variable and yo...
A: C++ code :- #include <iostream>using namespace std; class A{ private: int ID=59; ...
Q: Edit Profile” in a use case diagram is an appropriate actor behavior True or false
A: Given: Edit Profile” in a use case diagram is an appropriate actor behavior True or false
Q: Which of the following is the value for total, based on the arithmetic expression below int a = 2, b...
A: Answer is given below .
Q: Explain how an inside router (e.g. router 36) in an Autonomous System (AS3) Q4: Figure 2 comes to kn...
A: AS stands for autonomous system and are network under control of one one more network operator.AS1 h...
Q: * Create a code that does the following tasks * Create a code identical to the telegram bot that cre...
A: I Have answered this question in step 2.
Having trouble with this c++ homework question.
Given the following array and what it looks like when printed to the console:
char a[3][4] = { {'A','D','E','F'}, {'I','R','O','N'}, {'R','U','N','U'} };
Example Output
A D E F
I R O N
R U N U
1. Write a loop to print the word EON from the array.
2. Write a loop to print the word IRON from the array.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 1 images
- Hi, i need help with this program in C++ Write a program that asks the user to enter the size of an array. Declare a dynamic array of type int of the size entered by the user. Initialize the array so that the elements in the first half have values equal to the square of the index, and the elements in the second half have values equal to three times the index. Print out the array with 15 values per line.You are to write a C program that searches through the an array that contains a sequence of numbers in an and that a end with the number zero. That array should be declared and initialized exactly as follows in your program: int DNA[] = {1, 2, 4, 2, 2, 2, 1, 4, 4, 2, 3, 4, 4, 4, 2, 1, 4, 1, 3, 3, 2, 1, 3, 2, 1, 1, 2, 2, 2, 3, 4, 1, 3, 1, 2, 1, 4, 4, 4, 1, 1, 3, 1, 4, 2, 4, 4, 1, 4, 4, 1, 4, 4, 4, 4, 1, 1, 2, 3, 3, 3, 3, 4, 4, 3, 2, 3, 2, 3, 4, 3, 3, 4, 4, 1, 3, 3, 2, 1, 2, 3, 1, 2, 1, 3, 3, 2, 1, 4, 1, 4, 3, 4, 4, 4, 1, 2, 1, 3, 2, 0}; Your program should repeatedly ask the user for two things: the length of a search sequence, and the search sequence itself. The program should then search through the array “DNA” to find the starting element subscript (index) of all possible matching sequences. The elements of the search sequence may take on one of five characters: 1,2,3,4 and 5. The meaning of the ‘5’ character is that of wild card, i.e. it matches 1,2,3 and 4. The program…Code in C++ Language As a cashier, you would always hate those times when customers choose to take back their order since you'd always summon your manager and yell, "Ma'am pa-void!" No matter how you hate it, you always have to do it since you have no other choice. Given (1) an array of prices of the items, (2) another array of the items the customer wishes to take back, and (3) the customer's payment, print the change of the customer. Input: The first number indicates the number of items "n" brought to the cashier. The next "n" numbers are the prices of the items. The next number indicates the number of items "m" that the customer wants to take back and not proceed. It is assured that 0 <= m <= n. The next "m" numbers are the items to be void that ranges from item 1 to item "n". The final number is the customer's payment. It is also assured that the given payment >= final price of items. INPUT: 5 103.65 650.95 10.25 1067.30 65.18 2 1 5 2000.00 Output: The change…
- Write in c language, please. Thank you in advance. Declare an array named sandwichesInStore that stores 3 items of type Sandwich. #include <stdio.h>#include <string.h> typedef struct Sandwich_struct { char sandwichName[75]; char ingredients[75];} Sandwich; int main(void) { /* Your code goes here */ strcpy(sandwichesInStore[0].sandwichName, "Chicken and Bacon"); strcpy(sandwichesInStore[1].sandwichName, "Chicken breast"); strcpy(sandwichesInStore[2].sandwichName, "Chicken with peppers"); strcpy(sandwichesInStore[0].ingredients, "Crispy chicken, onions, lettuce, bacon, mayonnaise"); strcpy(sandwichesInStore[1].ingredients, "Grilled chicken, lettuce, tomato"); strcpy(sandwichesInStore[2].ingredients, "Grilled chicken, red and green peppers, barbecue sauce"); printf("%s: %s\n", sandwichesInStore[0].sandwichName, sandwichesInStore[0].ingredients); printf("%s: %s\n", sandwichesInStore[1].sandwichName, sandwichesInStore[1].ingredients); printf("%s:…Please answer honestly, Write a C program using just Array and String. Write a program that resembles a phone book, which stores and displays the names, the addresses (cities) and the telephone numbers for 20 people. The program book should have menu to search information according to names or phone number. The sample output of the program should be as follows: --------Phonebook----------- Add new information Search Name Search Phone Number Display All Info Exit Enter choice : 1 Enter Name : Haley Dunphy Enter Address : 12, 3-12 Street, TK Residance, Penang Enter Phone Number : 0122402312 --------Phonebook----------- Add new information Search Name Search Phone Number Display All Info Exit Enter choice : 1 Enter Name : Joe David Enter Address : 134, 3rd Floor, Mutiara Residance, Kuala Lumpur Enter Phone Number : 0174567789 --------Phonebook----------- Add new information Search Name Search Phone Number Display All Info Exit…Write a C# program that creates an integer array of size 10 and fills the array with numbers set by the programmer (not entered by the user). Then, the program will create two arrays, one of them contains only the odd values of the original array, and the other contains the even values. Note that the size of the newly created arrays should be equal to the number of elements in the array. For example, if the original array contains three odd values, the size of the array that contains the odd values should be equal to three.
- Write a C++ program that reads 6 real numbers from the user (negative and positivenumbers) into an array, then it does the following: Display all the values of array in reverse order. Find the sum and average of positive numbers of the array and display them. Count negative numbers of the array and display it. Find the minimum value of the array and display it. Find the index of the minimum value of the array and display it.Suppose we have an array as int array[] = {1.2,8.7,6.7,9.6,5.4,4.2,3};. Provide a code that reverses the elements in the array such that the first one becomes the last one and so on. Hint: You could make use of a temporary variable. c++ languageWrite a C++ Program named "REVERSE" that takes as its arguments the following:a. an array of floating-point values;b. an integer that tells how many floating-point values are in the array.The program must reverse the order of the values in the array. Thus, for example, if the array that's passed to the program looks like this:0 1 2 3 45.8 | 2.6 | 9.0 | 3.4 | 7.1then when the program returns, the array will have been modified so that it looks like this:0 1 2 3 47.1 | 3.4 | 9.0 | 2.6 | 5.8The program should not return any valuec. The program should return as its value the sum of the floating point values in the array. Thus, for example, if the array that's passed to the program looks like this:0 1 2 3 47.1 | 3.4 | 9.0 | 2.6 | 5.8then the program should return the value 27.9 as its value
- Write a program in C as follows:- Create an array of integers named “toy” that has 120 rows and 4 columns.- The program should repeatedly display the following menu:A or a to add a toy to the bagV or v to calculate and display the total value of the toysW or w to calculate and display the total weight of the toysD or d to delete a toy from the arrayM or m to calculate and display the number of small toysN or n to calculate and display the number of medium toysL or l to calculate and display the number of large toysX or x to start filling a new bagP or p to exit programThe following functions need to be created and used in the program:- Void wipe(int cat[][4], int n);- Void populate(int cat[][4], int n);- Int size(int L, int W, int H);- Int check_capacity(int cat[][4], int n, int tsize, int tweight);- Int rm_toy(int cat[][4], int n, int toynum);- Int weight(int cat[][4], int n);- Int value(int cat[][4], int n);- Int small(int cat[][4], int n);- Int medium(int cat[][4], int n);- Int…Write a program in C as follows:- Create an array of integers named “toy” that has 120 rows and 4 columns.- The program should repeatedly display the following menu:A or a to add a toy to the bagV or v to calculate and display the total value of the toysW or w to calculate and display the total weight of the toysD or d to delete a toy from the arrayM or m to calculate and display the number of small toysN or n to calculate and display the number of medium toysL or l to calculate and display the number of large toysX or x to start filling a new bagP or p to exit program - Santa’s bag can hold 30 large toys or 60 medium toys or 120 small toys or any combination ofsizes that satisfy this requirement (ex: 29 large + 1 medium + 2 small would be max capacity).Also, the total weight of toys cannot exceed 620 Kgs. All values are entered in centimeters andgrams. (Hint: the return values of the size function should help you in calculating the bagcapacity.)The…C++ Coding: Arrays Describe the difference in the meaning of the 10 in int x[10]; and the meaning of the 8 in x[8]. What are the meanings of the int, the [10], and the [8]? Suppose you have the following array declaration in a program: int yourArray[10];Further, suppose that in the implementation of C++ you are using an int that requires 4 bytes. When your program runs, how much memory is required for this array? Suppose further that your array starts at memory location decimal 200. What will be the address of yourArray[6]? If you wrote to the (illegal) index 7 position in yourArray to what address would this clobber?