Write a Web Development-JavaScript((HTML codes)) to create an array "Grades" with the following values: 45, 88, 67, 34, 51 a) Find the average of these grades. b) If the average is between 75 and 100, display the average and the message "VERY GOOD" otherwise if it is between 50 and 74, display the average and the message "GOOD", otherwise display the average and )the message "FAIL")
Q: following array items 2.2, 3.3, 4.4, 6.5, 4.4, 10.2, 6.7, 7.1, 8.8, 9.9 display each element…
A: Here have to determine about the print array elements problem statement.
Q: Creates a 4x8 array in pandas that consists of 4 variables with 8 data points for each
A: Pandas Series is a one-dimensional labelled array which can hold any data type value. Its objects…
Q: Create a C++ that uses the line array to store the image of each line before it is printed, where…
A: Code to print image of an array
Q: Answer the following questions: int[,] values = {{12, 24, 32, 21},…
A: Note: we are only allowed to solve one question in one post. I am solving the first on here. To get…
Q: Consider the following table for this question. 4 6 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40…
A: Ans: The array declared with the statement: int[][] colors = new int[4][5];
Q: Given an array const nos = [10, 2, 7] make a JavaScript program that…
A: According to your question java Script is the language of writing that allows you to use…
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: Create a program that will ask the user to input the average temperature a day and store it in an…
A: You must use different arrays to store days of week and temperatures As programming language is…
Q: Use Arrays to create a Java Program that takes in from the user the grades of a student (until…
A: The program is below implemented in java:
Q: Write a JavaScript code to create an array "Grades" with the following values: 45, 88, 67, 34, 51 a)…
A: As per the given question, we have to design a JavaScript program that does the following : 1.…
Q: Inputted e lements in the ARRAY are: Num[0]: 10 Num[1]: 200 Num[2]: -3 Num[3]: 0 Num[41: 12 Num[5]:…
A: logic:- use loop from i=0 to less than 15. read arr[i] i=i+1 end loop use another loop from i=0…
Q: Imagine you own two shops selling cakes. You are tracking the number of cakes sold in each shop each…
A: Algorithm : Step 1 : create the arrays for the number of sales for shop 1 and shop 2. Step 2 : use…
Q: an ndarray of shape (4, 4) whose values range from 0 to 15 Create a 6 × 6 identity matrix Create a…
A: Define module numpy needed to work with the arrays Define arr1 of shape 8,8 with the data 2.5 Define…
Q: Write a Java application and use a Two dimensional array that will store five information technology…
A: Program public class Course{ public static void main(String[] args) { final String[][] course…
Q: Consider an electric circuit with variable resistance R can have values from 20 ohm to 200 ohm.…
A: A 2D array is created with a named array. In a for loop, the values to each column were allotted row…
Q: Imagine we are using a two-dimensional array as the basis for creating the game battle-ship. Inthe…
A: Actually, c++ is a powerful general purpose language.
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: Html/javascript!!!!!! First, create a deck of cards. Now, write test code that shows you can sort…
A: here, first, we have to create a deck of cards. then we have to write test code that shows that we…
Q: Provide a code segment that creates an arraylist of three integers and prints these values on the…
A: ArrayList: ArrayList is a java API class of java.util package. Elements can be added to the array…
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: What is the output of the following code, show your work on white paper and attach it in the…
A: The question is to write the output of the given code.
Q: Create a variable x by assigning the value in the 3rd row and 4th column of B to x. Do not type the…
A: Use a colon operator to specify the initial value, step and final value
Q: Consider an array x contains 8 integer numbers. Write a Visual Basic code to sort the array x in a…
A: Create an array named x that contains 8 integer numbers. Write a Visual Basic Code to sort the array…
Q: (Java)Music playlist: - Create an array that can hold at least 50-100 songs. - There is 3…
A: Java is one of the languages, which is considerably used in many sectors of Computer. In older…
Q: Q1: Write a PHP script to display five highest Marks. Marks = 88, 60, 62, 68, 71, 90, 73, 85, 66,…
A: I have both the PHP codes in step 2 with its possible outputs.
Q: Create String array with the following values. [ “ee”, “ff”, “gg”, “hh”, “kk”, “mm”, “nn”, “pp”,…
A: Hello Student, hope you are doing well, I will be trying my best to explain and fulfill your query.…
Q: Imagine we are using a two-dimensional array as the basis for creating the game battle-ship. Inthe…
A: Actuallly, c++ is a powerful general purpose language.
Q: Write a JavaScript program to find the number of elements which presents in both of the given…
A: function test_same_elements_both_arrays(arra1, arra2) { var result = 0; for(var i = 0; i <…
Q: Define a JavaScript array with four elements, and give each a initial value
A: The required JavaScript code has been provided in the next step with comments for explanation.
Q: create an array of 3 Circle object references with radius = 1, 2 and 3 respectively. it should look…
A: class objectArray{ public static void main (String args[]) { circle obj[3] = new circle[3]; obj[0]…
Q: Use a javascript file to create an array called numArray that holds the numbers 1 through 50. ( [ 1,…
A: index.html <!DOCTYPE html> <html> <head> <title>Page Title</title>…
Q: Create a Windows Form Application project. with C#, using random values in an array or loop. The…
A: C# Program: using System; using System.Collections.Generic; using System.ComponentModel; using…
Q: Write Javascript code to do the following: - Create an array of the following temperature readings:…
A: logic:- declare an array with elements 36,5,10,24,40,31 iterate from i=0 to i<arr.length…
Q: Create the following two-dimensional array Sstudents. No Name GPA 1 Mohammed Said 2.7 Seif Salim 2.1…
A: <?php$data = array (array(1, "Mohammed Said", 2.7),array(2, "Seif Salim", 2.1),array(3, "Mariam…
Q: f a circular array of size 5 contains the following at the beginning: Orange, Banana, Grapes,…
A: The output of the above circular que is obtained using python programing
Q: se a one dimensional array to solve the following problem using HTML and JavaScript. A company pays…
A: Actually, the answer has given below:
Q: The next step is to display the user input on the HTML page. The input data is stored in the array,…
A: HTML and java Script: Both of these are programming languages, but there is a significant…
Q: Q4. Write a C++ that create an array of size 10x10, each of its elements is generated using the…
A: Algorithm: Start Declare an array of size 10×10 Iterate through 2 loops from i=0 to i=10 and j=0 to…
Q: Use a one dimensional array to solve the following problem using HTML and JavaScript. A company…
A: Actually, the code has given below:
Q: low temperature for the last 10 days. using the weather channel tempts to calculate and output the…
A: We need to read the array of low and high temperature values ,compute the sum of both low and high…
Q: Use a one dimensional array to solve the following problem: A company pays its salespeople on a…
A: Actually, the code has given below:
Q: Consider the following table for this question. 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38…
A: int colors[][] = new int [4][5]; colors [ ][ ] = 246810121416182022242628303234363840
Q: Contain a two dimensional array to contain three student registration figures for five different…
A: the program is given below :-
Q: ***Please do this in visual studios**** Create a new project to run the following program Declare…
A: In question we are asked to create a program that rearranges the given arrayB_WORD [1,2,3,4] to…
Q: Write a JavaScript function in html to divide an array A to two others arrays: Positive and…
A: We need to write a JavaScript function in html to divide an array A to two others arrays: Positive…
Q: Write a Java program to implement the following 2D array named friends. Read the following…
A: A 2D array is an array of array. This means, suppose we have an array arr[2][2], this means that…
Q: Write a JavaScript code to create an array "Grades" with the following values: 45, 88, 67, 34, 51 a)…
A: Javascript code to perform the given question is as given below.
Q: 3- Determine the output of the following code JavaScript Array Methods pop() The pop() method…
A: As per the requirement program is executed. Please find the output.
Q: <?php /* NOTE: To see your output in the console, follow your output with a new line "\n" Write…
A: Associative Array syntax is $array_name=array(key1=>value1,key2=value2,key3=value3,.......)
Q: q8) In the array below B[10]: 6 15 8 1 5 9 10 36 29 12 what is the value of R= B[9]…
A: Given array:- 6 15 8 1 5 9 10 36 29 12 As we know the array index…
Write a Web Development-JavaScript((HTML codes)) to create an array "Grades" with the following values: 45, 88, 67, 34, 51
a) Find the average of these grades.
b) If the average is between 75 and 100, display the average and the message "VERY GOOD" otherwise if it is between 50 and 74, display the average and the message "GOOD", otherwise display the average and )the message "FAIL")
((HTMLcodes))
Step by step
Solved in 2 steps with 1 images
- Write a JavaScript code to create an array "Grades" with the following values: 45, 88, 67, 34, 51 a) Find the average of these grades. b) If the average is between 75 and 100, display the average and the message "VERY GOOD" otherwise if it is between 50 and 74, display the average and the message "GOOD", otherwise display the average and the message "FAIL"Part 5: JavaScript - Displaying the Input The next step is to display the user input on the HTML page. The input data is stored in the array, so each element in the array will become a separate line of output on the web page. Eventually, we will ensure the output is all upper case, and that each line of text is a different, random color. Below is an example of the final output, assuming the user input a, b, c, and then finally nothing. To display the output, you will need to use another loop structure: for, while, or do...while. You choose. Before outputting to the browser, first, output to the console to ensure your looping works. >> Use an appropriate loop structure to loop through the input data array, and output each array item to the console. Now that you're working with the data, you might as well make adjustments to ensure each item is now displayed as upper case. >> Make coding changes to display the input data output to the console as all upper case content. Now…Write a program that displays a square matrix, as shown in Figure 11.17b. Each element in the matrix is a 0 or 1, randomly generated with a click of the Refresh button. Display each number centered in a text box. Allow the user to change the entry value. Click the Find Largest Block button to find a largest square submatrix that consists of 1s. Highlight the numbers in the block, asshown in Figure 11.17c.
- Use a one dimensional array to solve the following problem using HTML and JavaScript. A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a salesperson who grosses $5000 in sales in a week receives $200 plus 9 percent of $5000, or a total of $650. Write a script (using an array of counters) that obtains the gross sales for each employee through an HTML5 form and determines how many of the salespeople earned salaries in each of the following ranges (assume that each salesperson’s salary is truncated to an integer amount): $200-299 $300-399 $400-499 $500-599 $600-699 $700-799 $800-899 $900-999 $1000 and overWrite a JavaScript function in html to divide an array A to two others arrays: Positive and Negative. The Positive array contains only the positive numbers while the Negative array contains the negative numbers of A.Example:A=[1,4,-5,3,-2,8,-10,23]Positive=[1,4,3,8,23]Negative=[-5,-2,-10]Write Java code to display the names below in a 4 x 4 array: Zanele Justice Ken Lebo Tebu Gugu Ndaba Mudau Zizile Andrew Tian Ruan Daniel Fabian Kagiso Xoliswa. Use Java NetBeans to transpose the names on the matrix, such that the names in the rows should appear in the columns and vice versa. Then, replace the names on the left diagonal with double asterisks: ***".
- Use a one dimensional array to solve the following problem: A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a salesperson who grosses $5000 in sales in a week receives $200 plus 9 percent of $5000, or a total of $650. Write a script (using an array of counters) that obtains the gross sales for each employee through an HTML5 form and determines how many of the salespeople earned salaries in each of the following ranges (assume that each salesperson’s salary is truncated to an integer amount): $200-299 $300-399 $400-499 $500-599 $600-699 $700-799 $800-899 $900-999 $1000 and overThe most commonly used arrays in business applications are ____-dimensional and ____-dimensional. a. zero, one c. two, three b. one, two d. three, four If N is the number of variables in an array, the last variable of the array is assigned a subscript of ____. a. N-2 c. N b. N-1 d. N+1 The statement ____ assigns the character X to the first element of the letters array. a. letters[0] = 'X'; c. letters[1] = 'X'; b. letters[1] = "X"; d. letters[0] = "X"; A subscript is also called a(n) ____. a. iterator c. key b. index d. scalar When using bubble sort to sort an array in ascending order, at the end of the first pass, the ____ value is stored in the last position of the array. a. median c. largest b. mean d. smallest ____ declares and initializes a four-element string array named sales; each element is initialized to 0.0. a. string…Write a Java application and use a Two dimensional array that will store five information technology courses, with the average amount of students registered for each course. Your program must:Q.2.1 Contain a two dimensional array to contain three student registration figures for five different information technology courses and a single array to contain the coursenames.Q.2.2 Calculate and print the average of the course registration figures for each IT course.Q.2.3 Determine if the IT course will be run or not. If the average registration figures of the IT course is greater than or equal to 70 then the IT course will run.Q.2.4 Print out each course name with the average registration and if the course will run.
- Write a Java application and use a two‐dimensional array that will store three average property typeprices in three different provinces. In your solution, include the total average property type price perprovince.Your program must:Q.2.1 contain a two‐dimensional array to store three average property prices for threeprovincesPHP Create a Web form that shows the mileage between European capitals. Use a two-dimensional associative array to store the mileage. The form should allow the user to enter a start city and an end city. Your code should then search the two dimensional for the distance from each city. For Example: A user enters Berlin to Paris. You should return "The distance from Berlin to Paris is: 879.96 km" Add the following code to the script section to declare an associative array of European cities and the distances between them in kilometers, and the conversion factor for kilometers to miles:Write a Java application and use a Two dimensional array that will store five information technology courses, with the average amount of students registered for each course.