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)
Q: You have an Azure subscription named Sub1. Sub1 contains resources that are configured for Azure App...
A: In this question we need to find out the way to define the alert and aggregate result on the basis o...
Q: Exactly what are target tables and what are they used for.
A: When you create a write-to-table event monitor, the event monitor creates target tables to store rec...
Q: Assume you have a customer who has never utilized a network before. Explain the functions of network...
A: Introduction: Client-server networks are like computer networks that store data, manage/provide reso...
Q: sing a doubly linked list class and node class, implement the following methods: Node* lastNode(voi...
A: public class DoublyLinkedList{ Node head; class Node { int data; Node prev; Node next;...
Q: What are the most important things about good software
A: In Step 2, I have provided some most important things about good software--------
Q: Question 11. Write the SQL statement that will implement the relational algebra expressions in the f...
A: The queries are given below
Q: pose for many fact taBles, and how do th
A: Is there a purpose for many fact taBles, and how do they function?
Q: Write a C program using the while loop print the number series below: 1 3 5 7 9 11 13 15 17 19
A: The program clearly wants us to print all the odd numbers between 1 and 19(inclusive)
Q: Why should you save your internet history, and how long should you preserve your surfing history if ...
A: Introduction: Although the actual origins of surfing are unknown, Europeans first noticed it aboard ...
Q: List the truth table of the function F = abc + a’c’.
A: truth table of the function F = abc + a’c’.
Q: The following cipher text is obtained using a rail-fence method with 4 rails. What is the plaintext?...
A: answer is
Q: Random access memory (RAM) is a kind of computer memory that works in a variety of ways. Separate th...
A: RAM and how it works In computer terminology, random access memory (RAM) is a read/write memory tha...
Q: file:///Users/raulmelchoryulogarbanzos/Library/Group%20Containers/6N38VWS5BX.ru.keepcoder.Telegram/a...
A: 1. Using Most Websites and Apps: Open the site or app that you want to use. In order to upload an im...
Q: What are the ramifications of using different types of expressions in C programming? In C programmin...
A: There are different types of expressions in the C programming language:- Arithmetic expressions:- It...
Q: Consider the grammar below: S → aSb|bSa|SS|A For the string ab, how many leftmost derivations with 4...
A: Here, we are going to find out number of leftmost derivations with 4 or fewer steps for string ab.
Q: Match expression (exprN) with code! expr1 for (; expr2; expr3) expr4 expr1: Answer 1 expr2: Ans...
A: The syntax in the given question is using a for loop.
Q: write a multi-threading program in java to illustrate the inter-thread communication in a synchronis...
A: Here, I have to write a program in java using multi-threading. I created the threads in the Test cl...
Q: Compose a CALL statement that invokes a method called MyProc that is included inside an external lin...
A: Within the run unit, the CALL command is used to transfer control from one object programme to anoth...
Q: Given a singly-linked list and an integer k. Define an operation named "Rotation", which means movin...
A: Below is the code screenshot, output And Code: Answer (a):
Q: Is it true that the Apple Macintosh computer makes use of NuBus bus types? explain?
A: Introduction: A Nubus is a parallel 32-bit laptop bus. The machine workstation project, which built...
Q: Calculate int result = (int) (w% z * x - (u / z - y)); as Java calculates it. What value does th...
A: The result variable will be 7 I have given explanation below,
Q: What can you say about the difference between a UTP cable and Fiber optic cable?
A: Given: difference between a UTP cable and Fiber optic cable?
Q: Enumerate the reserved words in C++ programming language and give a short description in each reserv...
A: There are a total of 95 reserved words in C++.
Q: There is only one type of constructor and it is a constructor that does not take any parameters. Ch...
A: FALSE
Q: In C program I'm stuck in a hall of mirrors! I was told that there was only one way for the exit to ...
A: Below is the complete solution with explanation in detail for the given question with sample output ...
Q: What exactly is a Record?
A: In DBMs, the row in the database is called a record.
Q: Make a software that calculates the lcm of two numbers. Lcm stands for "least common multiple." Pl...
A: The LCM stands for Least Common Multiple, and it's used to find the smallest common multiple of two ...
Q: An illustration of a super type/subtype connection. Where does the disjoint rule come into play?
A: Disjoint sets of entities are required for sub-classes under the disjoint rule. The overlap rule req...
Q: Explain the System in detail. What is the class of data namespace?
A: Answer : system A system is a collection of elements or components that are organized for a common ...
Q: play against each other exactly once. Thus, a total of [n(n-1)/2] matches will be held, and each ...
A: 1) Calculate the number of wins each team can win for an optimal situation as given below. If n is e...
Q: Number Systems and Binary Arithmetic 1. Perform the indicated operations. (Note: PEMDAS applies!)...
A: Here, I have to provide a solution to the above question.
Q: Which of the following is a valid identifier name? user_name @username user.name user-name Which of ...
A: Which if the following is a valid identifier name? a.) user_name b.) @username c.) user.name d.) u...
Q: Analyze the following code and identify critical syntax mistakes and write the correct answer 5. ...
A: Given: We need to correct the given code.
Q: What is the IEEE754 Single Precision of the following. Answer should be in HEX FORMAT
A: 1. 10111.10 x 2 -2 = 101.1110*20 = 1.01110*22 here biased exponent = 2+127=129=10000001 The sign bit...
Q: Write a function inde which returns the index (start from 1) of the occurrence of a given value. Use...
A: NOTE - I have used the Python programing language. As per our guidelines, we are supposed to answer ...
Q: List all known danger types, then use URL evidence to classify threats from most to least frequently...
A: List the known danger types faced in the cyber world according to their frequency.
Q: In what way does data mining differ from other methods? Give an example of a data mining job descrip...
A: Introduction Data Mining: Data mining is the method of finding anomalies, patterns, and correlations...
Q: 12,13,14, 15 public static void m { int c = 12; while( { System.out.
A: Below the output of the following program
Q: What exactly is the meaning of RIGHT CTRL PRESSED?
A: Given To know about the RIGHT CTRL pressed.
Q: Explain the concepts "is a" and "has a." Give an example of object-oriented programming.
A: In object-oriented programming, a connection is referred to as inheritance, while another is referre...
Q: Is it necessary to include control pins of the bus arbitration type in a microprocessor in order to ...
A: Bus arbitration The process of selecting the next device to become the bus master and transferring ...
Q: Write a C-function with two arguments (n and r) that has prototype: char clearbit(char k, char bits...
A: PROGRAM EXPLANATION Include the header file. Define the function with the prototype as given in the...
Q: Create a website using HTML and CSS. Apply internal CSS. Minimum of 3 webpages.
A: Web page Desi gn using CSS and html <style> * { margin: 0; padding: 0; ...
Q: 3. Libraries The Android UI toolkit is not thread-safe. What does it mean that the library is not th...
A: Different threads can access different objects simultaneously, and access to shared data is protecte...
Q: Given an array of integers, define a function that takes the array as a parameter and return true if...
A: Required:- Given an array of integers, define a function that takes the array as a parameter and ret...
Q: Who are the contributors of the technological advances of the information age?
A: the contributors of the technological advances of the information age are
Q: There are two notation to represent real numbers in C++ floating Decimal notation O Exponential nota...
A: 1) all the above Both exponential and decimal
Q: Assume you have a customer who has never connected to the internet. Explain the functions of network...
A: Clients, sometimes referred to as service requesters, are pieces of computer hardware or server soft...
Q: Consider the problem of calculating the median m of the following numbers: 4,5,9. (a) Write down the...
A:
Step by step
Solved in 3 steps with 2 images
- JAVA PROGRAM: Monkey Business A local zoo wants to keep track of how many pounds of food each of its three monkeys eats each day during a typical week. Write a program that stores this information in a two-dimensional 3 × 5 array, where each row represents a different monkey and each column represents a different day of the week. The program should first have the user input the data for each monkey, or use constant values rather than asking user for input. Then it should create a report that includes the following information: Display 3X5 array first. Average amount of food eaten per day by the whole family of The least amount of food eaten during the week by any one The greatest amount of food eaten during the week by any one Input Validation: Do not accept negative numbers for pounds of food eaten.1. Shift Left k Cells Use Python Consider an array named source. Write a method/function named shiftLeft( source, k) that shifts all the elements of the source array to the left by 'k' positions. You must execute the method by passing an array and number of cells to be shifted. After calling the method, print the array to show whether the elements have been shifted properly. Example: source=[10,20,30,40,50,60] shiftLeft(source,3) After calling shiftLeft(source,3), printing the array should give the output as: [ 40, 50, 60, 0, 0, 0 ]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 16
- Problem1: 2D Arrays write a java code to Create a 3x3 2D array, fill it with numbers from the user, and check if the array is an hour glass shape or not.2. Rotate Left k cells Use Python Consider an array named source. Write a method/function named rotateLeft( source, k) that rotates all the elements of the source array to the left by 'k' positions. You must execute the method by passing an array and number of cells to be shifted. After calling the method, print the array to show whether the elements have been shifted properly. Example: source=[10,20,30,40,50,60] rotateLeft(source,3) After calling rotateLeft(source,3), printing the array should give the output as: [ 40, 50, 60, 10, 20, 30]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 ]…
- Sales.java contains a Java program that prompts for and reads in the sales for each of 5 salespeople in a company. Now modify the program as follows: Declare an array called sales to save the sales of 5 salespeople. Complete the header of the first for loop. This loop initializes the array. Complete the header of the second for loop. This loop computes the total of array elements. Add code to compute and print the average sale. Add another loop to print the id of each salesperson and the number of their sales. The salespeople are objecting to having an id of 0—no one wants that designation. Modify your program so that the IDs run from 1-5 instead of 0-4. // *************************************************************** // Sales.java // // Reads in and stores sales for each of 5 salespeople. Displays // sales entered by salesperson id and total sales for all salespeople. // // *************************************************************** import java.util.Scanner;…Rotate Right k cells (use python) Consider an array named source. Write a method/function named rotateRight( source, k) that rotates all the elements of the source array to the right by 'k' positions. You must execute the method by passing an array and number of cells to be shifted. After calling the method, print the array to show whether the elements have been shifted properly. Example: source=[10,20,30,40,50,60] rotateRight(source,3) After calling rotateRight(source,3), printing the array should give the output as: [ 40, 50, 60, 10, 20, 30]Lab Goal : The lab was designed to teach you how to use arrays to simplify solving more complex problems. Lab Description : Given a provided array, determine how many groups of a specified size exist.For the array [1,1,1,2,2,2,3,3,3,4,5,6,7] , there are 7 groups with at least one, 3 groups with at least 2, and 3 groups with at least 3. A group is a series of same values. 1 1 1 is a group of 3, but it also is a group of 1 and 2. To count as a group, all values must be the same. 1 1 1 is a group of 3 because there are 3 1s in a row.
- Lab Goal : The lab was designed to teach you how to use arrays to simplify solving more complex problems. Lab Description : Given a provided array, determine how many groups of a specified size exist.For the array [1,1,1,2,2,2,3,3,3,4,5,6,7] , there are 7 groups with at least one, 3 groups with at least 2, and 3 groups with at least 3. A group is a series of same values. 1 1 1 is a group of 3, but it also is a group of 1 and 2. To count as a group, all values must be the same. 1 1 1 is a group of 3 because there are 3 1s in a row.Sample Data : 3 3 3 3 3 9 4 4 4 5 5 5 5 6 6 7 7 7 8 8 8 8 8 8 8 8 1 2 3 4 5 6 7 8 9 1 1 1 2 1 1 3 3 3 3 3 3 3 3 3 3 4 4 4 5 4 4 4 6 Sample Output : [3, 3, 3, 3, 3, 9, 4, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8]size 1 count == 7size 2 count == 6size 3 count == 5size 4 count == 3size 5 count == 2size 6 count == 1 [1, 2, 3, 4, 5, 6, 7, 8, 9]size 1 count == 9size 2 count == 0size 3 count == 0size 4 count == 0 [1, 1, 1, 2, 1, 1, 3, 3, 3, 3, 3, 3, 3,…Lab Goal : The lab was designed to teach you how to use arrays to simplify solving more complex problems. Lab Description : Given a provided array, determine how many groups of a specified size exist.For the array [1,1,1,2,2,2,3,3,3,4,5,6,7] , there are 7 groups with at least one, 3 groups with at least 2, and 3 groups with at least 3. A group is a series of same values. 1 1 1 is a group of 3, but it also is a group of 1 and 2. To count as a group, all values must be the same. 1 1 1 is a group of 3 because there are 3 1s in a row.Sample Data : 3 3 3 3 3 9 4 4 4 5 5 5 5 6 6 7 7 7 8 8 8 8 8 8 8 81 2 3 4 5 6 7 8 91 1 1 2 1 1 3 3 3 3 3 3 3 3 3 3 4 4 4 5 4 4 4 6Sample Output : [3, 3, 3, 3, 3, 9, 4, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8]size 1 count == 7size 2 count == 6size 3 count == 5size 4 count == 3size 5 count == 2size 6 count == 1[1, 2, 3, 4, 5, 6, 7, 8, 9]size 1 count == 9size 2 count == 0size 3 count == 0size 4 count == 0[1, 1, 1, 2, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3,…Lab Goal : The lab was designed to teach you how to use arrays to simplify solving more complex problems. Lab Description : Given a provided array, determine how many groups of a specified size exist.For the array [1,1,1,2,2,2,3,3,3,4,5,6,7] , there are 7 groups with at least one, 3 groups with at least 2, and 3 groups with at least 3. A group is a series of same values. 1 1 1 is a group of 3, but it also is a group of 1 and 2. To count as a group, all values must be the same. 1 1 1 is a group of 3 because there are 3 1s in a row.Sample Data : 3 3 3 3 3 9 4 4 4 5 5 5 5 6 6 7 7 7 8 8 8 8 8 8 8 8 1 2 3 4 5 6 7 8 9 1 1 1 2 1 1 3 3 3 3 3 3 3 3 3 3 4 4 4 5 4 4 4 6 Sample Output : [3, 3, 3, 3, 3, 9, 4, 4, 4, 5, 5, 5, 5, 6, 6, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8]size 1 count == 7size 2 count == 6size 3 count == 5size 4 count == 3size 5 count == 2size 6 count == 1 [1, 2, 3, 4, 5, 6, 7, 8, 9]size 1 count == 9size 2 count == 0size 3 count == 0size 4 count == 0 [1, 1, 1, 2, 1, 1, 3, 3, 3, 3, 3, 3, 3,…