Fill in the blanks by supplying the appropriate keywords, variables and symbols below. ______ = ________ (input("What is the base of the parallelogram?")) height = ________ (input("What is the height of the parallelogram?")) parallelogram_area = base _________ height print(f"The atea of the parallelogram is {parallelogram_area}." _________
Q: Create an array of objects of the Person class, of size 4. Create three objects of the Person class,…
A: Algorithm steps to solve the above problem: Start Create an array of Person objects called people.…
Q: Write the pseudocode to produce a bill for cell phone charges. Data fields will include the date,…
A: To write the pseudocode- we need to go step by step process like accepting the inputs from the users…
Q: reate a random integer numpy nd-array, with the name S, of size 7x7, where the integer values range…
A: Task : The task is to perform three options on a given array.
Q: Add a third dimension to the twod_array such that the shape is (5, 2, 1). Store the output into the…
A: Algorithm to Create a 3D Array and Initialize with Zeros:1. Import the NumPy library as np.2. Create…
Q: # TODO 1.2 x_values = display(x_values) todo_check([ (x_values.shap
A: Dear Student, The required line of code is given below -
Q: Imagine we are using a two-dimensional array as the basis for creating the game battle- ship. In the…
A: An example file is missing the question. The below answer is provided with the following example,…
Q: Write a program that create a two-dimensional array called Grades that store 10 students' grades in…
A: Algorithm: 1. Start 2. Read student grades using scanner 3. Find minimum grade amongst all grades…
Q: Using method verifies whether a given square is a magic square or not Parameter squareData is a…
A: public class Magic{ public static boolean isMagicSquare(int[][] arr){ final int…
Q: Question : Imagine that you track your commute times for (10 days) and recorded your observations in…
A: Create a list called data with the commute time observations. Create a list called time with the…
Q: ) Output the array elements. Random 5v5 2d array. 2) Output the sum of each row. 3) Output the sum…
A: Program code: //including necessary data package import java.util.*; //defining class public class…
Q: Enum In your code, create an enum with 5 options. Then create an array with 5 strings. Each string…
A: In your code, create an enum with 5 options.Then create an array with 5 strings.Each string is a…
Q: Randomly generate a number in range [1, 12]. Map this number to a season: if the number is 3, 4, or…
A: Programming Language => PYTHON I have provided PYTHON CODE along with CODE SCREENSHOT…
Q: TODO 1: To construct an array of 120 values between -4 and 4, use the NumPy method np.linspace()…
A: The correct answer for the above mentioned question is given in the following steps for your…
Q: Create your own magic square( 3x3 ) The requirements are below: MATH 413: Every cell in the magic…
A: Polynomial Algebra - Polynomial algebra is a branch of algebra that deals with polynomials. A…
Q: Write the JavaScript Code to achieve the following: Declare three variables—one number and two…
A: According to the information given:- We have to follow the instruction in order to write javascript…
Q: Nrite a C# console application named MaxMin that a and make sure it is valid (i.e., in between 0 and…
A: In this question, we are asked to write a C# program which calculates the maximum and minimum…
Q: Write code that prints a greeting in the following format: Hi, xxx! where xxx is the name of a…
A: Based on our rules, we will answer only the first part of a multi-part question. Please submit the…
Q: print "Second", and "Red" from the following array: $color = array ( "color" => array ( "a" =>…
A: Given: print "Second", and "Red" from the following array: $color = array ( "color" => array (…
Q: bow_vectorizer = CountVectorizer(min_df=0.001)
A: from sklearn.feature_extraction.text import CountVectorizer bow_vectorizer =…
Q: 1. Create a np.array using linspace with the starting value of your choice and the ending value of…
A: numpy.linspace syntax:- numpy.linspace(start, stop, how many numbers, endpoint=True, retstep=False,…
Q: Create an array of objects of the Person class, of size 4. Create three objects of the Person class,…
A: Introduction : An array of objects is an array that contains objects as its elements. In this…
Q: JAVA Your teacher has created two arrays, each holding the results of tests, say Test 1 and Test 2.…
A: The question is to write the JAVA code for the given problem.
Q: Provide a brief explanation of what is displayed in this plot. Be sure to comment on the orange line…
A: The plot is a scatter plot that shows the relationship between two features of breast cancer cells:…
Q: Write a code segment that searches a Grid object for a negative integer. The loop should terminate…
A: Algorithm: Start Read no.of rows and no.of columns of gird Read grid data Iterate through the grid…
Q: Create a game similar to Hangman named GuessAWord in which a player guesses letters to try to…
A: As no specific programing language is mentioned in the question, we do it in python. In this Python…
Q: The intNum array is declared as follows: Dim intNum(,) As Integer = {{6, 12, 9, 5, 2}, {35, 60, 17,…
A: Execution of statement There are two separate ways to create an array. One way is to create an…
Q: I have an array of the first 50 Fibonacci numbers in the picture. Your program should ask the user…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: write a (GUI) application that asks a user how many integers to be entered, then stores the integers…
A: Given data is shown below: write a (GUI) application that asks a user how many integers to be…
Q: You have FOUR people selling 5 different kinds of flowers, so instead of a 4 by 4 array you had in…
A: Note: In this question, the coding language is not specified then we are doing this question in the…
Q: Enter values from the keyboard into a 3x5 array, find line totals, and print them on the screen. The…
A: Given, The size of array is 3×5 i.e., the array contains 3 rows and 5 columns. The output format: 1…
Q: Use the arrays below, X and w Calculate the dot product of X and w. Put the outcome inside the…
A: The following are steps that need to be taken for the given program: The NumPy library function…
Q: The Fibonacci numbers are 0, 1, 1, 2, 3, 5, 8, 13, ... where each number (after the first two…
A: As there is no programming language mentioned program is attempted in c language. Fibonacci number…
Q: Two arrays that store related information in corresponding element positions are…
A: Rectangular arrays, also known as multidimensional arrays, are arrays that store data in multiple…
Q: Simple Javascript only: Convert a Hexadecimal array of numbers into decimal values. The decimal…
A: In this question we have to write a JavaScript function, in which we will convert all the…
Q: Write a snippet of code that calculates the sum of all array elements falling within the range lower…
A: We have to write a program in assembly language that calculates the sum of all array elements…
Q: You have square tiles with a side length of ⅓ inch Draw a 4 x 5 array using the square tiles. What…
A: Given that, side length of the square tile=1/3 To draw 4 x 5 rectangular array using the square…
Q: Create an array of three string values that the fullName variable will use as a point of reference.…
A: Create an array of three string values that the fullName variable will use as a point of reference.…
Q: Write a pseduocode declaration for a string array initlaized with the following strings "Einstein",…
A: I have given an answer in step 2.
Q: partNames is a String array containing 100 elements. Write a for loop (standard for loop, not…
A: Print array of string using for loop . Python code
Fill in the blanks by supplying the appropriate keywords, variables and symbols below.
______ = ________ (input("What is the base of the parallelogram?"))
height = ________ (input("What is the height of the parallelogram?"))
parallelogram_area = base _________ height
print(f"The atea of the parallelogram is {parallelogram_area}." _________
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
- Write a snippet of code that calculates the sum of all array elements falling within the range lower limit...upper limit (inclusive). In other words, when the array element is outside of the range, don't add it to the sum. Put the sum in the EAX register. Then display it on the console; by calling DumpRegs, or according to your won output display design for ease of read format. Use the following pair of range variables, and given data sets for your test cases: .datalowerLimit dword 20upperLimit dword 40array_1 sdword 10,30,25,15,17,19,40,41,43array_2 sdword 10,-30,25,15,-17,55,40,41,43Implement an application that will compute and display the INTEGRAL image feed along with the stereo and RGB feed. You cannot use a built-in function such as “output = integral_image(input)”Q1: Write a complete visual basic 6.0 program that finds the maximum value in each column in a (4 by 4) array. Your program must show the entered array, the final result, captions for the commands, informative input boxes.
- Q3. Write a python code to do the following operations. 1. Create a stress tensor and a strain tensor in form of NumPy arrays: -0.2 0.5 4.3 0.0 5.2 1.0 a= -0.2 0.5 0.0 2. The hydrostatic stress is 0.02 -0.01 0.03 €= -0.01 0.2 -0.05 0.03 -0.05 0.4 Ohyd = (tro) 1. and the deviatoric stress is deyddyd Define a function stress hyd_dev () which takes in a stress tensor and returns the hydrostatic stress and the deviatoric stress. Then, apply this function to calculate the hydrostatic stress and the deviatoric stress of the stress defined in Question 1. where R is the rotation matrix 3. If we rotate the material, the representation of the stress tensor will change. Suppose that the coordinate system is (e₁,e₂, es). If we rotate the material about an axis u= (₁,42,43) (a unit vector) by the angle 6, the representation of the stress tensor will become oRo, cos @ + u(1-cos) R=424(1-cos) + 3 sin u₁u₂(1-cos 9)-uy sin cos+u(1-cos) uu₂(1-cos 8) + u, sin 0 uu(1-cos 0) + u₂ sin 0 ₂(1-cos)-uj sin 0…Using method verifies whether a given square is a magic square or not Parameter squareData is a symmetrical 2-dimensional array of integers Returns true if the square is magic if all rows or columns, or two main diagonals add up to same value Return false otherwise Design source-code file (MagicSquare.java) and image files for two Magic Squares for magicValue = 74 and magicValue = 99.I want this work be done in C# Visual studio. Given the following: private void btnRun_Click(object sender, EventArgs e){//Your code goes here } Code the statement(s) that will create a integer array of 5 elements and initialize the array with the following values in one line of code 10, 15, 20, 25, and 30. Then using a for loop alter the values in each element of the array by adding 5 to it. So after the for loop runs the values of the array should be 15, 20, 25, 30, and 35.
- I need help with this program refrence the image attached to see the error of the code how do i fix this? In Java please. This program will store roster and rating information for a soccer team. Coaches rate players during tryouts to ensure a balanced team. (1) Prompt the user to input five pairs of numbers: A player's jersey number (0 - 99) and the player's rating (1 - 9). Store the jersey numbers in one int array and the ratings in another int array. Output these arrays (i.e., output the roster). Ex: Enter player 1's jersey number: 84 Enter player 1's rating: 7 Enter player 2's jersey number: 23 Enter player 2's rating: 4 Enter player 3's jersey number: 4 Enter player 3's rating: 5 Enter player 4's jersey number: 30 Enter player 4's rating: 2 Enter player 5's jersey number: 66 Enter player 5's rating: 9 ROSTER Player 1 -- Jersey number: 84, Rating: 7 Player 2 -- Jersey number: 23, Rating: 4 ... (2) Implement a menu of options for a user to modify the roster. Each option is…You have square tiles with a side length of ⅓ inch Draw a 4 x 5 array using the square tiles. What are the dimensions of the rectangular array?Write the JavaScript Code to achieve the following: Declare three variables—one number and two strings. The number should be 120 and the strings should be “5150” and “Two Hundred Thirty”. Create a new array with three numbers and two strings or words. Use the alert () function to display the following string, properly escaped: Steve’s response was “Cool!”. Create a loop statement.
- Two arrays that store related information in corresponding element positions are _______________________ arrays. a. rectangular b. parallel c. jagged d. relativeImagine we are using a two-dimensional array as the basis for creating the game battle- ship. In the game of battleship a ‘~’ character entry in the array represents ocean (i.e., not a ship), a ‘#’ character represents a place in the ocean where part of a ship is present, and a ‘H’ character represents a place in the ocean where part of a ship is present and has been hit by a torpedo. Thus, a ship with all ‘H’ characters means the ship has been sunk. Declare a two-dimensional char array that is 25 by 25 that represents the entire ocean and an If statement that prints “HIT” if a torpedo hits a ship given the coordinates X and Y. Write a C++ program that will read in a file representing a game board with 25 lines where each line has 25 characters corresponding to the description above. An example file might look like: Question: Once I run no chart shows and "Can not open file." Please help!Imagine we are using a two-dimensional array as the basis for creating the game battle- ship. In the game of battleship a ‘~’ character entry in the array represents ocean (i.e., not a ship), a ‘#’ character represents a place in the ocean where part of a ship is present, and a ‘H’ character represents a place in the ocean where part of a ship is present and has been hit by a torpedo. Thus, a ship with all ‘H’ characters means the ship has been sunk. Declare a two-dimensional char array that is 25 by 25 that represents the entire ocean and an If statement that prints “HIT” if a torpedo hits a ship given the coordinates X and Y. Write a C++ program that will read in a file representing a game board with 25 lines where each line has 25 characters corresponding to the description above. An example file might look like: