• Modify your MyFile.java file to do the following: • Change your program to additionally handle the operation "px" where x is a number from 10 to 90 and defines the x percentile of the list of numbers. E.g.: Input.txt: Min: 1,2,3,5,6 Max: 1,2,3,5,6 Avg: 1,2,3,5,6 P90: 1,2,3,4,5,6,7,8,9,10 Sum: 1,2,3,5,6 P70: 1,2,3 Your output.txt should read: The min [1,2,3,5,6] is 1. The max of [1,2,3,5,6] is 6. The avg of [1,2,3,5,6] is 3.4. The 90th percentile of [1,2,3,4,5,6,7,8,9,10] is 9. The sum of [1,2,3,5,6] is 17. The 70th percentile of [1,2,3] is 2. Compile, save and run your file.
Q: What's a satellite assembly?
A: A .NET Framework assembly containing resources specific to a given language. Using satellite…
Q: How many pieces of information should be sought in a single form, and what criteria should be used…
A: The visitor's willingness to share further information is directly proportional to the perceived…
Q: After the following 3 values: 40, 30, 35 are inserted into an AVL tree, what action is needed to…
A: AVL tree : An AVL tree is a kind of self-balancing binary search tree in which there can never be a…
Q: Question #6 6a.) What DBMS component is responsible for concurrency control? 6b.) How is this…
A: Note: Due to company policies I am compelled to solve only one question and that is the first…
Q: What is the difference between style sheets and themes?
A: The solution is given below for the above given question:
Q: For an ensemble model using majority voting, let N be an odd number of independent classifiers.Each…
A: The question is solved in step2
Q: Othello is played as follows: Each Othello piece is white on one side and black on the other. When a…
A: Let's begin with an illustration. In an Othello game, suppose we have the following moves:1. Place…
Q: What is Tri State Logic?
A: Here we have given a brief note on tri state logic. You can find the solution in step 2.
Q: How does an AppDomain get created?
A: AppDomains are usually created by hosts. Examples of hosts are the Windows Shell, ASP.NET and IE.…
Q: What is the purpose of wrapper script?
A:
Q: What are the advantages of Ethernet
A:
Q: How to add a new column in SQL?
A: Introduction: Add column statement: You may need to add additional columns or fields to an already…
Q: How is PUSH B instruction executed? Find the status after the execution.
A:
Q: What is Tri State Logic?
A: Answer: We need to write the what is the tri state logic so we will see in the more details with the…
Q: Algorithm for Inductive Step of Dimino's Algorithm Input : a set S of generators of a group G; a…
A: The question has been answered in step2
Q: What are the contents of assembly?
A: Introduction: Although only the assembly manifest is necessary, the assembly cannot function…
Q: What are the reaspons for parameter threads_in_cond_waitused i tree search?
A: Introduction: The scheduler is an integral part of most operating systems, and the execution thread…
Q: What is Tri State Logic?
A: Introduction A PC is a computerized electronic gadget that can be modified to naturally complete…
Q: If L is regular, prove L' is also regular.
A: INTRODUCTION: Build a DFA/NFA/RE that incorporates it. To demonstrate that a language is not…
Q: Add the three classic operations of Queues in the MagazineList.java to make it become a queue. Add…
A: Although there is two classing operation on queue. although added toString and isEmtpy as third .…
Q: A multi-layer neural network has its weight as below. All neurons use linear activation function.…
A: Here is the diagram of the problem. See below steps.
Q: Using Microsoft Access and books.accdb, write queries to determine the number of books that satisfy…
A: Your query is given below.
Q: Question 6 sm Construct a Turing machine to compute the function f(w) = w^R, where w ε {0, 1}+…
A: The question is solved in step2
Q: Brief about MY_avail_tour_count function?
A:
Q: WHAT IS PEER-TO-PEER NETWORK AND HOW IS IT USED?
A: In its simplest form, a peer-to-peer (P2P) network is created when two or more computers are…
Q: A JK flip-flop has propagation delay (tpd) of 12 ns. What is the largest MOD ripple counter that can…
A: The question is to solve the problem related to JK-flip flop.
Q: What is meant by level triggered interrupt?
A: First, we understand what is triggering. Trigger means to activate the circuit. Circuit will…
Q: A is a part of B B is a part of A If an instance of A is deleted, all contained instances of B are…
A: We need to find the correct answer between 4 given options for the given image. The arrow used in…
Q: In stores, boxes should be placed in an organized way otherwise it will be messy. Given a collection…
A: As per the guidelines we have given answer for the first three subparts. Here we have given solution…
Q: The purpose of this question is to write a program that will perform these nutritional calculations.…
A: Note :- You have not mention the language of the program so i'm answering your question in C++. Your…
Q: an someone write a prolog program
A: Answer in next Step
Q: Define - Message queue
A:
Q: Exactly what benefits do circuit-switched networks have over their packet-switched counterparts? If…
A: Circuit-switched networks communicate across a designated channel or circuit. On-demand, data…
Q: Coded In PHP We need a blog to share our learnings and increase our marketability. Create a blog…
A: General Guidance There are many different ways to approach this problem, and there is no one correct…
Q: Brief about MY_avail_tour_count function?
A: Programming. The process of creating a set of instructions that tells a computer how to perform a…
Q: Example 1.3.2 Consider a relation R = {(1,1),(2,2),(3,4),(4,3)}, defined on set A = {1,2,3,4}.…
A:
Q: Write a C program that will take a string as input from you and change the cases of the…
A: ALGORITHM:- 1. Take input for a string from the user. 2. Traverse over the string and change the…
Q: b. How lack of quality adds a cost to the software. c. A good software has low coupling and high…
A: COSQ refer to both satisfying and not meetings customers quality expectations. Loosely coupling…
Q: lysis Demonstrate how to build a stack using two queues. Examine the stack operations' execution…
A: Introduction: Below C++ program Demonstrate how to build a stack using two queues. Examine the stack…
Q: Algorithm for Backtrack Search Using Known Subgroup Input : a group G with a base B=[~51,132 .....…
A: procedure search( G : group; P : property; s : 1..k+l; var K : group );(* Search G (s) for the…
Q: What is GAC? What are the steps to create an assembly and add it to the GAC?
A: Definition: A system's Global Assembly Cache (GAC) houses DLLs that are primarily intended to be…
Q: Q1) Write a MATLAB code to do the following: a) Solve a polynomial in the form of: 3x³-3x+14x-7-0,…
A: Here is the matlab code of the problem. See below steps.
Q: Consider the constellation below. If the symbol period is Ts, what is the bit rate? O a. O b. O Ś O…
A: The question has been answered in step2
Q: If you switch ISPs, how do you find out if your email will still function?
A: Introduction: In the world of email marketing, conversations often centre on mailbox providers and…
Q: Can you join the table by itself in sql?
A: Introduction: Structured Query Language, which is what SQL stands for, is a database language. This…
Q: What's a satellite assembly?
A: The above question that is what's a satellite assembly is answered in below step.
Q: What is the Difference between Web.config and Machine.config?
A: Introduction: Web.config is a configuration file used by ASP.NET web applications. It contains…
Q: Define - Message queue
A: The process of creating a set of instructions that tells a computer how to perform a task is known…
Q: #include #include void removeSubstr(char *string, char *sub){ char *match; int len =…
A: #include <stdio.h> #include<conio.h> #include<string.h> int countWords(char *s){…
Q: Let L be a language. It is clear from the definition that LL". Under what circumstances are they…
A:
Step by step
Solved in 5 steps with 3 images
- Instruction: Answer question 4 (a,b & c) only (1) Create a C++ project for your assignment 3, with the name format prescribed in the Information section. Add a source file and name it SwapCount. In this file, write the C++ program that will perform the tasks specified in question 2.(2) Declare and implement a function called sortSwapCount that passes three parameters, the array, the size and the reference of proportion, and returns the count. The functiondeclaration is int sortSwapCount(int data[], int size, double& proportion) (i) The function sorts the integers in data[] in ascending order using the bubble sort method. The purpose is to count or determine the number of exchanges (swaps) made by the bubble sort algorithm. (ii) The expected number of sorting swaps (expectedSwapCount) is size * (size - 1) if the array was unsorted. Calculate the proportion of the array status by first converting (or casting) the integers, swapCount and expectedSwapCount into floating-point,…Note:- Study this program and follow the given instruction and type execute the code and also give output for this java program as soon as possible. Modify example six to read file tooutfile2.txt compute and display the total. Then write the total to a file named tooutfile2A.txt exampleSix This program creates file tooutfile2.txt and stores 10 integers in it Please verify that the file was created along with the content package pwriter2; import java.util.Scanner; import java.io.*; public class Pwriter2 { public static void main(String[] args) throws IOException { PrintWriter tofile2 = new PrintWriter( "tooutfile2.txt" ); int i = 0; while (i < 10){ tofile2.println( i ); i = i + 1; } tofile2.close(); } }Write an ARM assembly program to convert temperatures from Celsius to Fahrenheit or from Fahrenheit to Celsius. Here are the two formulas for your reference. Use variable to read and store values, you can initialize any integer value into the variables (Do not expect decimal results we are only doing integer operations). C = 5 × (F − 32) / 9 F = (9 × C / 5) + 32 Name the file TempConvert.s add the below commenting statements in the program ;Name: ;Date: ;Give which expression you use Please use LDR/STR
- Write an ARM assembly program to convert temperatures from Celsius to Fahrenheit or from Fahrenheit to Celsius. Here are the two formulas for your reference. Use variable to read and store values, you can initialize any integer value into the variables (Do not expect decimal results we are only doing integer operations). C = 5 × (F − 32) / 9 F = (9 × C / 5) + 32 Name the file TempConvert.s add the below commenting statements in the program ;Name: ;Date: ;Give which expression you useCreate a Python (py3) code that accepts input from a text file, add matrices, and prints output to a text file. Use matrix.py and main.py modules.Note: When Matrix A and Matrix B are ordered to be added but they have unequal dimensions, print "Matrix addition cannot be performed; dimensions are unequal."Please annotate significant parts. Format of the input from text file:First Line: type of operation (add)Second Line: matrix A dimension (example: if 3 rows and 2 columns, type 3 2)Third Line: matrix A elementsFourth Line: matrix B dimension Fifth Line: matrix B elements Sample input 1:add2 2 53 -47 312 267 2-34 6 Sample output 1:120 -2-27 37read the instruction carefully- This file should have multiple lines, each line has first name, last name followed by multiple integers "data.txt" file Samantha Johns 43, 32,99, 79, 85 Michael Smith 98, 84, 70, 100, 76, 81 John Michael 82,92, 92 Mary Hernandez 88, 91, 92, 79, 78 George Johnson 92,93,75 Sara Anderson 83,74. Susan John 78, 84,65, 71,81 Mark Smith 69, 67,59,62
- Compulsory Task 1 Follow these steps: ● Create a new java file called MyFile.java ● Write code to read the content of the text file input.txt. For each line in input.txt, write a new line in the new text file output.txt that computes the answer to some operation on a list of numbers. ● If the input.txt has the following: Min: 1,2,3,5,6 Max: 1,2,3,5,6 Avg: 1,2,3,5,6 Your program should generate output.txt as follows: The min [1, 2, 3, 5, 6] is 1. The max of [1, 2, 3, 5, 6] is 6. The avg of [1, 2, 3, 5, 6] is 3.4. ● Assume that the only operations given in the input file are min, max and avg and that a list of comma-separated integers always follows the operation. You should define the functions min, max and avg that take in a list of integers and return the min, max or avg of the list. ● Your program should handle any combination of operations and any length of input numbers. You can assume that the list of input numbers are always valid integers and that the list is never empty. ●…PLEASE MODIFY THE BELOW CODE BY USING INTERRUPTS. #include <iostream>#include <cstdlib>#include <time.h>#include <chrono>#include <pthread.h> using namespace std::chrono;using namespace std;#define NUM_THREADS 40 struct AddTask{int *v1,*v2,*v3;int start;int end;}; void randomVector(int vector[], int size){for (int i = 0; i < size; i++){ vector[i] = rand() % 100;}} void *AddVector(void* arg){ AddTask *task = (struct AddTask *) arg; for(int i = task->start; i< task->end ; i++){task->v3[i] = task->v2[i] + task->v1[i];}} int main(void){ pthread_t threads[NUM_THREADS]; unsigned long size = 100000000; srand(time(0)); int *v1, *v2, *v3; auto start = high_resolution_clock::now(); v1 = (int *) malloc(size * sizeof(int *));v2 = (int *) malloc(size * sizeof(int *));v3 = (int *) malloc(size * sizeof(int *)); randomVector(v1, size); randomVector(v2, size); for (size_t i = 0; i < NUM_THREADS; i++) {struct AddTask *task = (struct…Follow these steps:● Create a Python file called amazon.py in this folder.● Write code to read the content of the text file input.txt.● For each line in input.txt, write a new line in the new text file output.txtthat computes the answer to some operation on a list of numbers.● If the input.txt has the following:o Min: 1,2,3,5,6o Max: 1,2,3,5,6o Avg: 1,2,3,5,6● Your program should generate output.txt as follows:o The min of [1, 2, 3, 5, 6] is 1.o The max of [1, 2, 3, 5, 6] is 6.o The avg of [1, 2, 3, 5, 6] is 34
- please use python language instruction- 1. Read the code from line 123 to line 137. This is the basically the selection. Remember how we talk about there are certain things about controlling population? Please explain how we make sure that the population, when going through a selection, does not shrink over generation. You may simply explain this as comments in a Python file as opposed to in a Word file:. Note that the code from line 123 to line 137 is divided into two small blocks. Use that as 2. The code we've just examined has one functionality of selection. So, we really should wrap that into one function nanied 'select'. Note that in this file there is no class named 'Population'. So, you should make this function a static method that belongs to the class named 'Individual', or a simple function that resides outside the class named 'Individual'. Please think about what the inputs and output of this function are before you start coding. Once you have created the…Complete the following sentences by filling the right word To check if two string variables string1 and string2 refer to the same memory address we use the command ………## This function is used to generate the input file Directory.txt# def generateInputFile():try:lines=['Springsteen, Bruce, 2587.\n','Hassan, Amir, 6958.\n','Homes, Rebecca, 5263\n','Smith, John, 5252\n','MacDonald, Mirna, 8965!\n','Pichai, Sundar, 9632.\n','Jobs, Steve, 1002\n','Goldsmith, Micheal, 5478.\n','Yassir, Ammar, 8885\n','Nicholas, Jack, 4696\n','Pang, Chee, 9898\n','Lee, Andrew, 7412.\n','Jimenez, Dragos, 6547\n'] outfile = open("Directory.txt",'w')for line in lines:outfile.write(line) except Exception as ex:print(ex)finally:outfile.close()generateInputFile() use this code to get the file and please match the answer with the sample run