Apply your knowledge about arrays and functions and write a program, which takes a positive integer N from user, and prints the multiplication table of the size N by N. For Example, if the user enters 10 then your program should display the following table. Note: your program should have a function naming "Multiplication" which should take size N as input argument. Output should be in this format.
Q: Where does Windows store deleted files when you use File Explorer or Windows Explorer to remove them…
A: The question is Where does Windows store deleted files when you use File Explorer or Windows…
Q: what use Linux may have in any element of rocket technology.
A: ANY ASPECTS OF ROCKET TECHNOLOGY COULD USE LINUX - Like NASA, the new waves are necessary. We need…
Q: Show how the following floating-point additions are performed (where significands are truncated to 4…
A: Please check the step 2 for solution
Q: Q1. 4X₁ + 3X₂ + 5X3 = 4 3X₁ + 2X₂ - 4X3 = 7 -2X₁₂ + 4X₂ + 3X3 = 5
A: “Since you have asked multiple question, we will solve the first question for you. If you want any…
Q: a. If the last operation performed on a computer with an 8-bit word was an addition in which the two…
A: please check the solution below
Q: Barbie has 8 shirts, 5 pair of pants, 3 purses, and 9 pair of shoes, and 3 pairs of socks, how many…
A: Barbie has 8 shirts, 5 pair of pants, 3 purses, and 9 pair of shoes, and 3 pairs of socks, how many…
Q: Someone has attempted to censor my strings by replacing every vowel with a *, 1*k* th*s. Luckily,…
A: Someone has attempted to censor my strings by replacing every vowel with a *, 1*k* th*s. Luckily,…
Q: Please write a blog about the top 5 cheapest car on sale in 2020. Provide detail about the car such…
A: The question has been answered in step2
Q: A. Write an Assembly program to load the register E with the value 12 and the register H with the…
A: The question is to write the assembly language code for the given problem.
Q: What is a virtual machine (VM) defined as? Is there a reason I would want to use a virtual machine?…
A: A Virtual Machine, also shortened as VM, is the same as any other physical computer, such as a…
Q: Define the characteristics that are required for test-driven development. In the event that you…
A: INTRODUCTION: A software development approach called test-driven development keeps track of all…
Q: Seker B 14 Use Gauss-Jordan elimination to solve the following linear system -3x+4y=-6 Sk-y-10 ⒸA.…
A: Here in this question we have given some linear equations and with using gauss jordan elimination…
Q: Create a comparison table comparing HTTP and WebSocket differences.
A: HTTP and WebSocket are communication protocols that can be utilized in client-server communications.
Q: Write an SQL query to fetch the different projects available from the EmployeeSalary table.
A: Here we will use distinct clause in order to get the unique values of the product. Here we are…
Q: Give a brief explanation of what machine language is. What are the causes of the inability of…
A: Introduction In this question, we are asked to Give a brief explanation of what machine language is…
Q: Q1. Solve the following nonlinear set of equations by applying Newton Raphson Method in EXCEL…
A:
Q: B A computer consists of a processor and an I/O device D connected to main memory M via a shared bus…
A: According to the information given:- We have to follow the instruction in order to calculate If…
Q: Fixed-price contracts, where the contractor bids a fixed price to complete a system development, may…
A: Answer :
Q: What is an abstract class?
A: INTRODUCTION: Data abstraction is the process of withholding some information from the user and…
Q: What are the basic interfaces of Java Collections Framework?
A: Answer the above question are as follows:
Q: Suppose Alice and Bob are sending packets to each other over a computer network. Suppose Trudy…
A: Trudy can sniff all the packets exchanged between Alice and bob. She can See the Contents of all…
Q: Convert the NFA into a DFA start 0 1 b 2 a b 3
A:
Q: Explain why expressing pointcut specifications as patterns increases the problems of testing…
A:
Q: List the justifications for why a company could want firewalls for physical security measures.
A: Introduction: Physical security refers to protecting an organization's physical assets, such as its…
Q: Write a Python program that takes a String as an input and counts the frequency of each character…
A: Given: Write a Python program that takes a String as an input and counts the frequency of each…
Q: An interesting application of a PLA is conversion from the old, obsolete punched cards character…
A:
Q: Which kind of parallelism (data or control) is optimal for SIMD? What kind of parallelism does MIMD…
A: Introduction: Program-level parallelism is decentralizing a single program and running it on several…
Q: PYTHON!! Solve problem by using PYTHON Program to remove the ith occurrence of the given word in…
A: I have mentioned program code and ouput screenshots in below steps, please find in below
Q: Q2) Show that: The right side of the following equation is equal to the left side, by choosing any…
A: The right side of the following equation is equal to the left side, by choosing any value of x.…
Q: The word protocol is often used to describe diplomatic relations. How does Wikipedia describe…
A:
Q: Question 7: “../info/data.htm" is a(n) A. relative URL B. absolute URL C. none of above
A: In this question a Uniform Resource Locator (URL) is given we need to identify which type of URL is…
Q: Is a word for a system development approach that aims to reduce the time it takes to build and…
A: The above question is solved in step 2 :-
Q: A processor's primary structural components should be mentioned and briefly characterised.
A: Processor A processor, frequently known as a processing unit, is a computerized circuit that…
Q: A processor's primary structural components should be mentioned and briefly characterised.
A: Introduction In this question, we are asked that A processor's primary structural components ought…
Q: Why and how do numerous Linux commands behave in the same way on Macs and Linux systems,…
A: Linux is the most popular open-source operating system, and it is also one of the most well-known.…
Q: How about demonstrating and outlining the actual use of virtual servers and services?
A: A virtual server should ideally mimic the features of a dedicated server. It is possible to run many…
Q: Describe the various VPN types, as well as the technology, protocols, and services that are utilized…
A: Virtual private network ( VPN ) is used to establish a secured and private connection by hiding…
Q: What does it mean to be "busy waiting"? What other sorts of waiting are there in an operating…
A: A "busy waiting" process does multiple checks to see if a condition has been met. However, even…
Q: Explain in detail the disruptive technology with a relevant example
A: the above question that is distruptive technology with example is answered below step.
Q: Hi, I need help drawing a conceptual map (or a mind map) about the blockchain, its applications and…
A: According to the information given:- We have to define drawing a conceptual map (or a mind map)…
Q: A computer consists of a processor and an I/O device D connected to main memory M via a shared bus…
A: It is given that on a normal a guidance requires 6 cycles and the CPU is occupied 95% of the time in…
Q: 14 Use Gauss-Jordan elimination to solve the following linear system: -3x+4y=-6 5x-y=10 OA (2.0)…
A: According to the information given:- We have to solve and find out the correct option.
Q: Suppose a firewall is configured to allow outbound TCP connections but inbound connections only to…
A:
Q: What are the two advantages of layered protocols
A: Layered protocols refers to design of protocols with respect to the layer. Each layer has some…
Q: Do you also have any examples of how virtual servers may be used in a classroom or for educational…
A: The features of a specialized physical server are duplicated by a virtual server. It resides as a…
Q: Design a salesforce query to fetch the user activity history usin Please provide the output…
A: In this problem we need to design the soql query to fetch the audit trail record so that can be use…
Q: What will be the impact of the internet of things (IoT) on our everyday lives? Justify your position…
A: With the help of sensors, software, and other devices, the Internet of Things (IoT) is a wireless…
Q: What does the presence of hashtags in an Excel column mean?
A: Introduction: There are few reasons are there for the presence of hashtag in Excel spreadsheet. We…
Q: What does it mean to be "busy waiting"? What other sorts of waiting are there in an operating…
A: What does it mean to be "busy waiting"? What other sorts of waiting are there in an operating…
Q: components should be mentioned and briefly characterised.
A: Introduction: It is a digital circuit that processes data from an external source, such as memory or…
Step by step
Solved in 4 steps with 2 images
- (Numerical) Write a program that tests the effectiveness of the rand() library function. Start by initializing 10 counters to 0, and then generate a large number of pseudorandom integers between 0 and 9. Each time a 0 occurs, increment the variable you have designated as the zero counter; when a 1 occurs, increment the counter variable that’s keeping count of the 1s that occur; and so on. Finally, display the number of 0s, 1s, 2s, and so on that occurred and the percentage of the time they occurred.Writer a program to ask the user for his first name and then to print it using a function.(we don’t expect any first name to exceed 20 letters don’t define the array of the first name as a global variable).You’re writing a function that accepts an array of unsorted integers and returns the length of the longest consecutive sequence among them. The sequence is formed by integers that increase by 1. For example, in the array: [10, 5, 12, 3, 55, 30, 4, 11, 2] the longest consecutive sequence is 2-3-4-5. These four integers form an increasing sequence because each integer is one greater than the previous one. While there’s also a sequence of 10-11-12, it’s only a sequence of three integers. In this case, the function should return 4, since that’s the length of the longest consecutive sequence that can be formed from this array. One more example: [19, 13, 15, 12, 18, 14, 17, 11] This array’s longest sequence is 11-12-13-14-15, so the function would return 5. Your job is to optimize the function so that it takes O(N) time.
- Write a program to read as many test scores as the user wants from the keyboard (assuming at most 50 scores). Print the scores in (1) original order, (2) sorted from high to low (3) the highest score, (4) the lowest score, and (5) the average of the scores. Implement the following functions using the given function prototypes: void displayArray(int array[], int size) - Displays the content of the array void selectionSort(int array[], int size) - sorts the array using the selection sort algorithm in descending order. Hint: refer to example 8-5 in the textbook. int findMax(int array[], int size) - finds and returns the highest element of the array int findMin(int array[], int size) - finds and returns the lowest element of the array double findAvg(int array[], int size) - finds and returns the average of the elements of the arraytrying to write a function that takes an array of integers as input and returns the sum of all the even numbers in the array. But, my current implementation doesn't seem to be working correctly. Whenever I run the function, I'm getting incorrect results. Can you take a look at my code and suggest a solution? public int sumEvenNumbers(int[] arr) { int sum = 0; for (int i = 0; i <= arr.length; i++) { if (arr[i] % 2 == 0) { sum += arr[i]; } } return sum;}Given a square matrix, calculate the absolute difference between the sums of its diagonals. For example, the square matrix is shown below: 1 2 3 4 5 6 9 8 9 The left-to-right diagonal = . The right to left diagonal = . Their absolute difference is . Function description Complete the function in the editor below. diagonalDifference takes the following parameter: int arr[n][m]: an array of integers Return int: the absolute diagonal difference Input Format The first line contains a single integer, , the number of rows and columns in the square matrix .Each of the next lines describes a row, , and consists of space-separated integers . Constraints Output Format Return the absolute difference between the sums of the matrix's two diagonals as a single integer. Sample Input 3 11 2 4 4 5 6 10 8 -12 Sample Output 15 Explanation The primary diagonal is: 11 5 -12 Sum across the primary diagonal: 11 + 5 - 12 = 4 The secondary diagonal is: 4 5…
- Write a function which solves a projectile problem. As input, the function will take the initial height (y0) from which the projectile is launched, the initial velocity, and the angle in degrees which the initial velocity makes with the horizontal (positive if above the horizontal, negative if below the horizontal). The function should calculate the time T the projectile stays in air, generate a time array (0, T/100, 2T/100, 3T/100, …, T), and return the values of x and y (the components of the position vector of the projectile) at the times in the array. Plot the projectile trajectory using matplotlib. Use phyton language pls put output screenshot import mathimport numpy as npimport matplotlib.pyplot as plt%matplotlib inlineWrite a function which solves a projectile problem. As input, the function will take the initial height (y0) from which the projectile is launched, the initial velocity, and the angle in degrees which the initial velocity makes with the horizontal (positive if above the horizontal, negative if below the horizontal). The function should calculate the time T the projectile stays in air, generate a time array (0, T/100, 2T/100, 3T/100, …, T), and return the values of x and y (the components of the position vector of the projectile) at the times in the array. Plot the projectile trajectory using matplotlib. Use phyton languageWite a program that accepts an amount in Peso from the user and converts it to its word equivalent. Your program should follow the following specifications: use user-defined functions, string, array, loops, and other useful codes input limit is maximum of 10000.00 after each display of output, ask to user if he/she wants to convert another amount (if Yes, redo, else exit)
- Write a Python function that accepts three arguments: an array, the size of the array, and a number n. Assume the array contains float values. The function should display all float values in the array that are less than the number n. Use a while loop to go through the list of numbers.Show that your function works with 100.97, 2.2, 10.8, 87.1, 25.4, 30.3, 50.1, 297.0, 73.8] and the value 50.3I JUST WANT TO MAKE SURE IF MY HOMEWORK ANSWERS ARE CORRECT C++ HOMEWORKS Write the program Write a function to output a pyramid like this * *****. ********* Answer: #include <iostream> using namespace std; void printPyramid(int n) { for (int i = 0; i < n; i++) { for (int j = 0; j < n - i - 1; j++) { cout << " "; } for (int j = 0; j <= i; j++) { cout << "*"; } for (int j = 0; j < i; j++) { cout << "*"; } cout << endl; } } int main() { printPyramid(4); return 0; } Write a function to count how many numbers in one string.. Answer: #include <iostream> #include <string> using namespace std; int countNumbers(string str) { int count = 0; for (char c : str) { if (isdigit(c)) { count++; } } return count; } int main() { string str = "Hello, World,…IN python, • generate_number(pct_per_digit): Takes one float as input. Returns a random number that is constructed as follows. First, use the function above to get a random number. This number will correspond to the length (number of digits) that the number generated by this function should have. For example, if that function returns 3, then this function should generate and return a random number with three digits. Note that in the case of a multi-digit number (2 digits or greater), the first digit cannot be 0. >>> random.seed(1337) >>> generate_number(0) 9 >>> random.seed(9002) >>> generate_number(0.5) 41700