implement program to creates an array named sales (tracking one week of sales for two months), assigns sales figures to its elements, and then loops through the array to calculate the average sales for one week of each of the two months stored in the array.
Q: Write a function called get_game_dict(csv file name ) that returns (not prints) a dictionary of all…
A: Code is attached in step 2 and screenshot is also attached. Also the function makes a dictionary…
Q: Write a Java program that prompts the user to enter a password that matches a specific pattern using…
A: Answer: Algorithms: Step1: we have initialized the dc, sc, upc ,upcc, loc and pas all the variable…
Q: 20. What is the name for a method that responds to events? A. A container method. B. A snoop method.…
A: Since you have asked multiple questions. As per the guideline, we will solve the first three…
Q: What is binary search?
A:
Q: /** *Return the first index of element in the list. If element * is null or not found in the list,…
A: Here is the approach : Create the class and have some class properties like the list and the…
Q: What is meant by Paging? Give its advantages.
A: Paging: Paging is nothing but a memory management technique that can reduce the need for physical…
Q: FizzBuzz, you are told to print the numbers from 1
A:
Q: Answer must be in C++ You have been hired by a coffee shop to write a program to validate…
A: C++ programming:- Bjarne Stroustrup developed C++ in 1979 at Bell Labs in Murray Hill, New Jersey,…
Q: For a network address 192.168.10.0 and subnet mask 255.255.255.224 then Calculate: i) Number of…
A:
Q: 21. Using the virtual machine instructions given in Section 3.5.1.1, give an operational semantic…
A: Solution: a). Java do-while - do{ //code to be executed }while(condition);…
Q: What is Dynamic programming?
A: Dynamic programming: Dynamic Programming is a strategy for taking care of problems by covering…
Q: xplain Detection Versus correction.
A:
Q: For a network address 192.168.10.0 and subnet mask 255.255.255.224 then Calculate: i) Number of…
A: Network address = 192.168.10.0 Subnet mask = 255.255.255.224 224 in binary is 11100000 Total number…
Q: Input the minimum and maximum ranges from the user (these are the values the dice will randomly…
A: I have provided PYTHON CODE along with CODE SCREENSHOT and OUTPUT SCREENSHOT---------
Q: rk only We should answer our question within 2 hours
A: Dear Student, The step by step answer for your question is given below -
Q: Explain the principle used quick sort?
A: Given: Describe the quick sorting principle.
Q: What is Combinatorial Problem.
A: The process of creating a set of instructions that tells a computer how to perform a task is known…
Q: Determine an equation to predict metabolism rate as a function of mass based on the following…
A: We have to write MATLAB code for the following question:
Q: algorithm. For the given values p = 19, q = 23 and e = 3 find n, o(n) and d using RSA
A: Answer RSA Algorithm 1} Calculating the value of n =p*q, where p and q are prime numbers. 2)…
Q: Please do according to Data Structure in C Programming Use Depth First Search to find a path from…
A: Below I have provided a program for the given question. Also, I have attached a screenshot of the…
Q: Define profiling?
A:
Q: How Do Data Scientists Use Statistics?
A: Introduction Statistics is the assortment, investigation, and understanding of data. Besides,…
Q: 22. WAP to find the sum of the following series from 1 to n using user-defined function…
A: Algorithm: Start Read n value Define a function fact to find factorial which takes a number n as…
Q: Describe Univariate, Bivariate And Multivariate Analysis.?
A: Answer : Univariate analysis : As a name indicate Uni which means one so in this analysis , only…
Q: List the applications of minimum spanning tree?
A: A spanning tree in which the total sum of the weight of thr edges is the minimum as it can be…
Q: Define Static Algorithm Visualization?
A: Given: Explain static algorithm visualization.
Q: Differentiate between TCP and UDP.
A:
Q: Write -19 as: a. 2's complement value with the smallest number of bits possible b. 8-bit 2's…
A: The complete answer is below:
Q: CollegeApplicant Class Write a class encapsulating the concept of College Applicant. Use the class…
A: Description The name and college are assigned to "unknown" when a new instance of the…
Q: What is the error (if any) in the following representation of IPv4 address - 221.34.7.8.2 Select…
A: Below I have provided the solution of the given question
Q: Find the class of the following address. a) 1.22.200.10 b) 241.240.200.2 c) 227.3.6.8 d) 180.170.0.2
A: Introduction: Class A’s address range is 1-126 Class B’s address range is 128-191 Class C’s address…
Q: calculate number of operations in this algorithm for(int i = 0; i < n; i++) { for(int j =…
A: Here we have given the total number of operations in the given code.You can find the solution in…
Q: Show that if signature is valid then v = r′ in DSA scheme Please send me the solution within 10…
A: The question is to show that if the signature is valid then v = r in DSA scheme.
Q: Please answer this question in 10 mins I will upvote your answer. Write the code necessary to…
A: Given convert the following sequence of ListNode objects: list -> [5] -> [4] -> [3] / Into…
Q: Create a class Movie which instantiates variables corresponds to the table columns. Implement…
A: Note: As per Bartleby policy we can only answer one question at a time unless it has subparts. If…
Q: Explain the Solutions of Optimization Problems with a Random Structure?
A: The answer of this question is as follows:
Q: Create one structured exercise program for anaerobic training with no more than 6-7 exercises (must…
A: Designing an exercise regimen is both an art and a science. Prescription of any exercise variable…
Q: Which of the following statements are correct? (Select all that applies.) Group of answer choices…
A: The complete answer is below;
Q: Define O-Notation.
A:
Q: This article discusses the significant factors that affect the current context in which…
A: Answer : The whole essay is about the homeschooling and it's pros and cons. Homeschooling may be…
Q: 5- From the following tables write a SQL query to find the most expensive product of each company.…
A: In the given question there are 4 tables company_mast, item_mast, emp_department and emp_details.…
Q: Perform addition operation on complex data using class and object. The program should ask for real…
A: Python which usually refers to the one it is a high-level, general-purpose programming language. Its…
Q: what adavnatages does the at and t gain by providing a stadium w ith a 4g lte MOBILE NETWORK
A: Let's see the answer:
Q: Compare the different aspects of MINIX to LINUX, UNIX, and Windows operating system structures.
A: Different between MINIX to LINUX: S. No. LINUX MINIX 3 1. Linus Torvalds was the one who…
Q: 20:38 Back adjava300 18-Nov-2022 11-46-... 20. What is the name for a method that responds to…
A: In Java , that the Swing is a GUI widget toolkit for Java. It is part of the Oracle's Java…
Q: Explain Error detection and Correction.
A:
Q: Discuss briefly on the following below and mention a real-life application : •Priority Queue with…
A: “Since you have posted a question with multiple sub-parts, we will solve first three sub- parts for…
Q: 1. Create an associative array, to reflect data in the following table. Store the array in a…
A: Description The modified code is given in the next step.
Q: Part 1: In C++, Write a program that asks the user for a positive integer value. The program should…
A: Algorithm of the code:- 1. Start 2. Declare variables num, sum, count, and buffer 3. Ask the user to…
Q: Consider the subnet in Fig. 3.11.5. Distance vector routing is used and the following vectors have…
A: The following vectors will come in to router C From B: (5, 0, 8, 12, 6, 2): Here the measured delay…
implement
figures to its elements, and then loops through the array to calculate the average sales for one week of each of the two months stored in the array.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
- JAVA Your teacher has created two arrays, each holding the results of tests, say Test 1 and Test 2. You need to create a new array which holds the averages of these two tests. You may assume that the first element of the first test array refers to the student who also has the grade in the first element of the second test, and the last element in each array are the grades the last student earned for each test. All students received grades for both tests, meaning both test arrays are of the same length. Complete the method, named makeAverage, in the class named Grades.java. There are two parameters to this method: the first is the integer array representing the grades of the first test, and the second is the array containing the grades of the second test. The new average array should be returned by the method. The grades should be treated as double variables. For example, consider the test grades for the five students in the following arrays: [ 87 ] [ 91 ] [ 76 ] [ 76 ] [ 94 ]…Java Design two parallel array of 10 elements. One array will store the students’ names and the other array will store the exam’ s score as shown partially filled below. Please put more names and score when populating the arrays with proper data, print the names and scores of all students in class. As you can see there is a tie between Jeff and Nancy. Print the name and score of student(s) who got the highest score in class. (in this case we expect both Jaff and Nancy to be printed. Make sure your code works correctly if you change the location of the names of students.Create an array called sales to monitor one week's worth of sales over the course of two months. Assign sales data to the array's elements. Then, in a loop, compute the average sales for the one week of each of the two months that are recorded in the array.
- JAVA PROGRAM 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% of their gross sales for that week. For example, a salesperson who grosses $5000 in sales in a week receives $200 plus 9% of $5000, or a total of $650. Write an application (using an array of counters) that 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 over Summarize the results in tabular format. Please Explain Step by Step the logic of this program. THANK YOU AND GODBLESS BARTLEBY EXPERTS !Problem2 Write a program that display the position of a given element in an array. You should print the index (i.e. the position) of the element. If the element appears more than one time than you should print all its positions. The size of the array should be entered by the user. If the element does not occur then you should display element not found. Sample1: Enter the size of the array: 5 Enter an array of size 5: 44 5 13 44 67 Enter the element to find: 44 44 is found at position 44 is found at position 44 occurs 2 time(s) Sample2: Enter the size of the array: 4 Enter an array of size 4: 12 150 17 20 Enter the element: 18 18 is not foundThe rainfalls in Manama are available for each day of the past four weeks. In your program: • Create a two-dimensional array names rain of size 4x7 that contains rainfall figures in which each row represents a week, and each column represents a day. • Display the rainfall data in a table format. • Display the total rainfall for each week. For example, if the array contains the following rainfall data: Days o 1 2 3 4 5 6 Week 0 3 7 21 Week 1 1 1 4 Week 2 7 Week 3 0 1 Then the output of the method should be displayed as shown below. Sample Input/Output: Week Rainfall Total 1 30078 21 o 39 0 1100 0 4 9 6700 0 o 0 00 0 0 o 1 2 6 3 22 4 1 00 6.
- Problem2: 2D Arrays Define a 2D array using Java code that takes from a teacher the total number of rows and the total number of columns. Then let the teacher fill the array by students IDs and courses marks for each student. And print the following: 1- Print the array. 2- Print the marks that are less than 50 (mark < 50)2D arrays (matrices/grids) Write a program that takes 20 student objects and stores them in an array. Each Student object should have a first name and a last name. Sort the array by student’s last name. You can use any of the sorts you have. Then put the names into a 2D array that has 5 rows and 4 columns. Create 2 seating charts by printing the 2D array. Student 17 Student 18 Student 19 Student 20 Student 13 Student 14 Student 15 Student 16 Student 9 Student 10 Student 11 Student 12 Student 5 Student 6 Student 7 Student 8 Student 1 Student 2 Student 3 Student 4 Student 5 Student 10 Student 15 Student 20 Student 4 Student 9 Student 14 Student 19 Student 3 Student 8 Student 13 Student 18 Student 2 Student 7 Student 12 Student 17 Student 1 Student 6 Student 11 Student 16Write a basic program in F# and Visual Basic, which calculates the average of an array which has 7 elements, each assigned avalue and compare the result with 0, as follows.define an array and assign valuesadd all the values by using a loopcalculate the averagecompare the average with 0, if it is greater than zero display positive, else display negative
- Using C# in Microsoft Visual Studio Create an application that simulates a game of tic-tac-toe. The application should use a two-dimensional int array to simulate the game board in memory. When the user clicks the New Game button, the application should step through the array, storing a random number in the range of 0 through 1 in each element.The number 0 represents the letter O, and the number 1 represents the letterX. The form should then be updated to display the game board. The application should display a message indicating whether player X won, player Y won, or the game was a tie.Write comments in the below code explaining each line . Show it in a picture. Arrays Sales Commissions 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% of their gross sales for that week. For example, a salesperson who grosses $3,000 in sales in a week receives $200 plus 9% of 3,000, or a total of $470. Write a C program (using an array of counters that 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.) a) $200-299 b) $300-399 c) $400-499 d) $500-599 e) $600-699 f) $700-799 g) $800-899 h) $900-999 i) $1000 and overFunctions with 2D Arrays in Java Write a function named displayElements that takes a two-dimensional array, the size of its rows and columns, then prints every element of a two-dimensional array. Separate every row by a new line and every column by a space. In the main function, call the displayElements function and pass in the required parameters. Output 1 2 3 4 5 6 7 8 9