write a program to implement an genetic algorithm that targets a number n (where n will be user input ) from the finite number of genes , which are as follow: [1,2,3,4,5,6,7,8,9,0] Take population size from user input. python
Q: Create a java program that enters 5 adjectives. Count and print all the adjective that ends with the...
A: Algorithm: for (initialExpression; testExpression; updateExpression){ // body of the loo...
Q: Assume that there isn't any software code that can be moved in this scenario. So, what can be done t...
A: Introduction: Memory paging is a term that refers to the act of collecting and accessing data and in...
Q: Task 2. Capitalize and reverse Program asks user to input a string to capitalize and reverse each wo...
A: Step-1: StartStep-2: Declare a string variable str and reverseWordStep-3: Take input from user and s...
Q: The results of a recent IBM survey of 585 mobile application developers and managers revealed that j...
A: Introduction: FIMC is a market-leading provider of turn-key benefit plan solutions that enable finan...
Q: When surfing online, you get some strange data on an apparently secure website, and you realize you ...
A: Answer: The Certificate Authority is the organization that issues all the digital certificates for w...
Q: Explain why professional software designed for a customer isn't just a collection of programs that h...
A: Introduction: Professional software is more than simply basic programmed, as shown by the following ...
Q: The question is, whether kind of program-level parallelism (data or control) is best suited to SIMD....
A: Introduction: Thus, when we consider whether triangles or triangles may have a Vertex as a point of ...
Q: List 5 computer problem research topics
A: There are many research topics for the Computer science however some of them are listed below along ...
Q: When implementing PPP authentication, you have the choice of utilizing either PAP or CHAP as your au...
A: Introduction: Use the encapsulation ppp interface configuration command to make PPP the encapsulatio...
Q: Specify the architecture of a computed unified device.
A: Introduction: Compute Unified Device Architecture (CUDA) is an acronym for Compute Unified Device Ar...
Q: The database has not been normalized to its full extent. Please explain how. What kind of complicati...
A: Introduction: Database: It is a collection of data that has been organized to make it easier to acce...
Q: Students in a software engineering programme are usually required to complete a major project at the...
A: Introduction: The advancement of software and the creation of intelligent, efficient information tec...
Q: What is the first general-purpose computer which consumes a huge room as its storage? a) EDVAC b) EN...
A: Your answer is given below with explanation.
Q: Design and implement a set of classes that define various types of reading material: books, novels, ...
A: The Answer start from step-2.
Q: a) Explain the importance of tracing the requirements to the solution elements. b) Explain the imp...
A: A Requirements Traceability Matrix ensures completeness and consistency with the software specificat...
Q: composition? Co
A: Decomposition Decomposition is one of the four cornerstones of computer science. It comprises break...
Q: An application programming interface (API) is referred to as a programming interface. What exactly i...
A: An application programming interface is referred to as a programming interface.
Q: Take the two numbers from the user and try to multiply both of them using lambda function in python.
A: We are going to write a Python code which will find the product of two numbers using lambda function...
Q: PYTHON] Define a function named sharpen that performs this operation: The function should expect an...
A: Brief Description: def is the keyword used for defining a function. The def function name is follow...
Q: Specify the architecture of a computed unified device.
A: The question is to specify the architecture of a Compute Unified Device Architecture.
Q: Inform me about your preference for interfaces versus abstract classes.
A: Introduction:Computer programming is the process of creating a set of instructions that tells a comp...
Q: Suppose Professor X claims to have written a program that can read a function f written in Java and ...
A: ans is given below
Q: Differentiate each by giving an examples i. Alphabet ii. Strings iii. Language
A: Given: We have to differentiate each by giving an example i) Alphabet ii. Strings iii. Language
Q: create a view named major_ customer. it comsists of the customer num, name, balance, credit_limit an...
A: CREATE A VIEW : To create a view, use the create view command, which includes the wordsCREATE VIEW, ...
Q: quick overview of cybercrime as well as a conclusion?
A: Cybercrime is also called computer crime.
Q: a) Categorize FOUR (4) main layers of automata theory, and explain each layer briefly. b) List ONE (...
A: Introduction: Automata is a machine that can accept the strings of a language L over an input alpha...
Q: A regular polygon has n number of sides with each side of length s. The area of a regular polygon is...
A: The program is written in C++. Please check the source code and flowchart in the following steps.
Q: 3. Write a script that will accept the sides of a triangle, let it be “a”, “b”, “c”. Based on these ...
A: BeginDeclare three variable a,b and cTake input from user for a,b and cif square of c is equal to su...
Q: What is an operating system and how does it work?
A: Introduction: The operating system is the backbone of every computer or mobile device when it comes ...
Q: Write a Java program to search an element in an sorted array. You have to take the sorted array from...
A: Required:- Write a Java program to search for an element in a sorted array.You have to take the sort...
Q: When it comes to ensuring the resilience and availability of a LAN network, what are the most effect...
A: Introduction: LANs are computer networks that range in size from a few computers in a single workpla...
Q: Theft nearly always results in some kind of physical damage. For example, if your car is stolen, you...
A: Introduction: Theft.—Whoever takes any moveable property out of a person's possession without that p...
Q: Customers that don't have a clear understanding of the systems they'll require for their operations ...
A: Introduction: An incremental method divides the software development process into tiny, manageable c...
Q: Another Problem Python Assume that s1 and s2 are initialized strings. Write code that prints them in...
A: I give the code in Python along with code and output screenshot
Q: What are the benefits of utilizing a compiled language as opposed to an interpreted language, and wh...
A: Introduction: Compilation into native machine code produces programmes that are often quicker than i...
Q: Is cloud computing capable of addressing all of a company's worries about its information technology...
A: Answer :
Q: Take the two numbers from the user and try to multiply both of them using lambda function in python.
A: Write a Python program to input two numbers from the user and multiply both the numbers using the la...
Q: When the CMP instruction sequence is executed, what is the final value for AL register ? MOV AL, 25h...
A: 1) The CMP instruction compares two operands. It is generally used in conditional execution. Its syn...
Q: Take a list of String from the user and sort that in list in alphanumerically ascending order. The S...
A: Since the question doesn't include the programming language use to code the problem so I am using Ja...
Q: An HDD disk head is initially positioned over track 100 and is moving in the direction of decreasing...
A: #include <bits/stdc++.h>using namespace std; int size = 8;int disk_size = 200; void CSCAN(int ...
Q: (a) Convert the following grammar to Greibach Normal Form. S- ABA | AB | BA | AA | B A → aA | a B bB...
A: The Answer is
Q: Differentiate between manually matching transactions and Advanced Mode transactions in QuickBooks De...
A: Introduction: Bank feeds can be set up and managed in a variety of ways. After obtaining your electr...
Q: The parent class is A, and the subclasses are B and C. The parent class is A, and the subclasses are...
A: Introduction: Abstraction is a method of shielding the user from certain implementation details. Thi...
Q: How does a data breach effect cloud security? What are some possible countermeasures?
A: According to the question a records breach exposes personal, sensitive, or blanketed facts to an una...
Q: iv) Input a string str from the user. Write a C++ program, to replace all the occurrences(if any) of...
A: Start Take input the string. Input the substring from the full string. Take input the string to be r...
Q: 2. Write an 8085 program to add two 8-bit numbers Al and CO. Then store the final result into the Ac...
A: Given: Two 8-bit numbers A1 and C0 are given. Requirement: Write an 8085 program to add the given 8-...
Q: Draw a structured flowchart and write pseudocode that describes the process of guessing a number bet...
A: In the given question the players consist of two gueese I.e too long or too low.
Q: What protocol, besides SSL or TLS, is used to protect browser-to-webserver connections?
A: Introduction: It is safe to send and receive text through the Hypertext Transfer Protocol, which is ...
Q: Write code to perform the CRUD (i.e. Insert, Update, Delete, and Read) utilizing the MVC Entity fram...
A: MVC stands for Model View Controller. It is a design pattern that is employed to separate the busine...
Q: Suppose you start with an empty queue and perform the following operations: enqueue 1, dequeue, enqu...
A: In step 2, I have provided correct answer with brief explanation ---- In step 3, I have pro...
write a
[1,2,3,4,5,6,7,8,9,0]
Take population size from user input.
python
Step by step
Solved in 2 steps with 2 images
- using python Use a Lambda function to take a list of numbers and get the square root of each number rounded to two decimal places. For example: nums = [2,4,6,8] result = [1.41, 2.0, 2.45, 2.83]Write a python function that takes one integer (n) parameter and prints the first n digits from the Fibonacci series using recursion.Sample input: 5Sample output: 0, 1, 1, 2, 3 Write a function that takes one integer parameter, makes sure it is an integer, prints sum of every two digits and return the sum of digits from the number entered by the user up to 1, using recursion.Sample input: 4 Sample output: 4+3 = 77+2 = 99+1 = 10Implement a function rollsToRepeat in Python that simulates a dice game in which a pair of dice are rolled repeatedly until some total on the dice occurs the specified number of times. Details: accepts one integer argument, n , the number of repeats required before the game ends rolls a pair of dice repeatedly until some dice total has repeated n times returns the total number of times the pair of dice was rolled For example, using a random seed of 85 , the sequence of rolled pairs will be : (2, 6), (5, 1),(3, 2), (2, 4), (3, 5), (2, 6), (4, 5), (5, 2), (6, 5), (5, 5), ... If you runrollsToRepeat with n=1 , only 1 repeat is required. On the first roll, the total 8=2+6 is repeated once (as wouldany first roll). So the simulation stops and the function returns 1. This always happens whenn=1 . n=2 , some total must repeat twice. This first occurs on the 4throll, when the total of 6occurs for the 2ndtime. n=3 , some total must repeat three times. This first occurs on the 6throll, when…
- Implement the vacuum cleaning agent function in Python/Java for the scenario described below: Consider two-dimensional Boolean array of size m x n (m and n can each be equal to 4) where m is the number of rows, and n is the number of columns. Obtain numerical positive integer values for m and n as inputs from the user. Generate random numbers and scale them down to either a “0” or a “1” according to whether they represent “Clean” or “Dirty”, respectively. After filling the array with 0s or 1s, start at some random array position indicating the initial position of the vacuum cleaner. First check if at that current position, there is the presence of a “Dirt” or not determined by whether 0 or 1 is filled in at that initial position of the vacuum cleaner. If there is a “Dirt”, clean it, and if there is no “Dirt” do a No-operation. After this is done, generate random numbers modulo 4 to obtain random numbers 0, 1, 2, 3 indicating whether to take a left, right, up or down correspondingly. If…Write in python programming language: The Longest Subsequence Problem is a well-studied problem in Computer Science, where given a sequence of distinct positive integers, the goal is to output the longest subsequence whose elements appear from smallest to largest, or from largest to smallest. For example, consider the sequence S= [9,7,4,10,6,8,2,1,3,5]. The longest increasing subsequence of S has length three ([4,6,8] or [2,3,5]), and the longest decreasing subsequence of S has length five([9,7,4,2,1] or [9,7,6,2,1]). And if we have the sequence S = [531,339,298,247,246,195,104,73,52,31], then the length of the longest increasing subsequence is 1 and the length of the longest decreasing subsequence is 10. Question: Find a sequence with nine distinct integers for which the length of the longest increasing subsequence is 3, and the length of the longest decreasing subsequence is 3. Briefly explain how youconstructed your sequence. Let S be a sequence with ten distinct integers. Prove by…Implement a program that reads two integers (n and k). The program must output the binomial coefficient as follows: Print every coefficient that is before binomial coefficient for given k; Example: Insert n: 5 Insert k: 3 Result: 10 Coefficient-array: 1 5 10 10 Print Pascal Triangle for the given n: Example (n=5): 1 11 121 1331 14641 15 10 10 5 1
- In python, Problem Description:Sheldon and Leonard are physicists who are fixated on the BIG BANG theory. In order to exchange secret insights they have devised a code that encodes UPPERCASE words by shifting their letters forward. Shifting a letter by S positions means to go forward S letters in the alphabet. For example, shifting B by S = 3 positions gives E. However, sometimes this makes us go past Z, the last letter of the alphabet. Whenever this happens we wrap around, treating A as the letter that follows Z. For example, shifting Z by S = 2 positions gives B. Sheldon and Leonard’s code depends on a parameter K and also varies depending on the position of each letter in the word. For the letter at position P, they use the shift value of S = 3P + K. For example, here is how ZOOM is encoded when K = 3. The first letter Z has a shift valueof S = 3 × 1 + 3 = 6; it wraps around and becomes the letter F. The second letter, O, hasS = 3 × 2 + 3 = 9 and becomes X. The last two letters…Python Consider algebra: (N-1)2 = N2 - 2N + 1 Rearranged to get: N2 = (N-1)2 + 2N - 1 This means: 52 = 42 + 2 * 5 - 1 but 42 = 32 + 2 * 4 - 1 but 32 = 22 + 2 * 3 - 1 etc. Create a function, square(n), that uses the equation above to calculate the square of an integer number recursively and returns the result. Consider 0 and positive integers first and get your function code to work. Enhance your code to handle negative integers also.Use Java Programming Make a program that accepts a triangle pattern of numbers. From the, you are tasking with finding the longest path from top to bottom that produces the hghest sum. Print out the numbers included in the path and the sum Example output: Enter the number of rows: 3 Enter element 1 for row 0: 5 Enter element 1 for row 1: 4 Enter element 2 for row 1: 3 Enter element 1 for row 2: 9 Enter element 2 for row 2: 3 Enter element 3 for row 2: 1 Path: 5 -> 4 -> 9 = 18
- need help in python PYTHON PROGRAMMING Submit a code snippet for a function (in the coding sense) that accepts as an input a list of size n and prints all the integers from 1 up to n. This function must have complexity O(n^2). Hint: Efficiency isn't always the answer. Restraints that have corresponding deductions if not followed are listed below: You must only print each number once (-4/20) The algorithm/code function must have complexity to O(n^2) (-20/20) Update: It needs to be O( n^2 ) hence -20/20 The input must be a list not an integer (-4/20) Example: If the input is a list of size 4, the output is 1 2 3 4Write a Python code WITHOUT USING NUMPY to generate a random matrix A of size m x n with m >n and calculate its Frobenius norm, Il · IF . The entries of A must be of the form r.dddd (example 5.4316). The inputs are the positive integers m and n and the output should display the the dimensions and the calculated norm value. Deliverable(s) : The code with the desired input and output.Python Please. An interesting puzzler for chess buffs is the Knight’s Tour problem, originally proposed by the mathematician Euler. Can the knight piece move around an empty chessboard and touch each of the 64 squares once and only once? We study this intriguing problem in depth here. The knight makes only L-shaped moves (two spaces in one direction and one space in a perpendicular direction). Thus, as shown in the figure below, from a square near the middle of an empty chessboard, the knight (labeled K) can make eight different moves (numbered 0 through 7). A: Draw an eight-by-eight chessboard on a sheet of paper, and attempt a Knight’s Tour by hand. Put a 1 in the starting square, a 2 in the second square, a 3 in the third, and so on. Before starting the tour, estimate how far you think you’ll get, remembering that a full tour consists of 64 moves. How far did you get? Was this close to your estimate? B: Now let’s develop a script that will move the knight around a chessboard…