please do in Haskal programing and explain how it is done ?
Q: Create a program with QB64 WITH THE FOLLOWING One foot equals 12 inches. Design a function named...
A: i give the code in Python along with output and code screenshot
Q: What are the three main components of CPU. Describe each component in detail.
A: 1) CPU stands for Central Processing Unit. 2) It is the most significant in a computer system. It is...
Q: What technological innovations in the fields of software engineering and computing have occurred bey...
A: Introduction: Software engineering refers to creating computer programs by using engineering princip...
Q: AVING count(*) = 34 SELECT a, sum(c) FROM xyz GROUP BY b HAVING sum(c) < 0 SELECT c, min(a), max(b...
A: Assuming all tables and columns exist, in which of the following SQL can the HAVING clause be writte...
Q: Write a Java program StringProg which creates a Scanner and then does the following: 1. Ask the user...
A: As per the answering policy i can only answer upto 3 question max at a time, so I'm answering first ...
Q: Buffers are used to minimise access latency between various levels of the memory hierarchy. List the...
A: Introduction: A designated memory section within a program for storing the data being processed. Eve...
Q: Which MS-Windows file system(s) supports disc mirroring, the process by which the same data is writt...
A: Disk mirroring is a simple technique that is used to safeguard the computer system from the possibil...
Q: Input alphabet = {a,b} 1. write the CFG for the language of palindromes 2. Convert this into PDA (st...
A: 1) CFG of the given palindrome
Q: What is the difference between an interrupt service routine and a regular service routine?
A: An interrupt service routine (duh!) services an "interrupt". An "interrupt" is pretty much that -- t...
Q: What are the references to the main key in the same relation?
A: Introduction: The primary key constraint requires that each row in the relational database managemen...
Q: Consider the adjacency matrix below. Upload a picture (it can be hand drawn) of the adjacency list o...
A:
Q: Need external CSS by making a style.css file and writing all css there for the code given below: ...
A: answer is
Q: Give the inverse, converse and contrapositive for each of the following propositions. a) If x + y = ...
A: For proposition p→q ( also read as "if p then q" ) Converse = q→p Contrapositive = ¬q→¬p Inverse = ¬...
Q: Complete the following Python code. #main.py import area1 def main(): =area1.carea print('Area:', _(...
A: main.py : #main.py import area1 def main(): ______________ = area1.carea print('Area:'...
Q: Consider the adjacency matrix below. Upload a picture (it can be hand drawn) of the adjacency list o...
A: Dear student, We valued your time but as per guidelines, I can answer the only first question. Pleas...
Q: Write a function that receives a string consisting of several lines of text (paragraph) and returns ...
A: Write a function that receives a string consisting of several lines of text (paragraph) andreturns a...
Q: Please describe the purpose of vulnerability scoring.
A: Introduction: The Common Vulnerability Scoring System (CVSS) allows you to capture the key aspects o...
Q: Is each relationship mapped into a relationship? whether true or false
A: Introduction: Is each relationship mapped into a relationship? whether true or false
Q: uppose you have a certain amount of money in a savings account that earns compound monthly interest...
A: According to the information given:- We have to follow the instruction to get desired outcome.
Q: What is the difference between a racial condition and a health condition?
A: Introduction: Being a member of a particular ethnic group affects one's physical and mental well-bei...
Q: In the following example, what lookup_ value should be used to return the value of 24.53 contained i...
A: what lookup_value should be used to return the value of 24.3 contained in cell G9
Q: 6. Augment your Matlab code to use Eqs. 5 - 8 to calculate and plot the four impedance matrix parame...
A: Syntax Y = fft(X) Y = fft(X,n) Y = fft(X,n,dim) Description Y = fft(X) computes the discrete Fourier...
Q: How does an application software restart execution when an interrupt service function has completed?
A: In order to understand this, we must first understand the two main types of interrupts: software and...
Q: Is there a way to conceal the cursor?
A: Here is the explanation:
Q: Is cloud computing having a detrimental impact on e-commerce?
A: Introduction: The benefits of cloud computing in the e-commerce business are numerous, ranging from ...
Q: Briefly explain what is meant by a ‘zero-day vulnerability’ and a ‘web shell’.
A: Zero-day vulnerability:- A zero-day vulnerability is one that has been discovered but not yet patche...
Q: Write implementation of the isEmpty() method for the well developed ArrayStackADT public boolean isE...
A: Ans: Implementation of the isEmpty() method for the well developed ArrayStackADT is: public boolean...
Q: What is the plural form of a computer mouse?
A: Introduction: The plural of a computer mouse: In computing, a computer mouse (plural mice, often kno...
Q: You will create a web application to store inventory for products. Choose your business name, logo, ...
A: Create a DbContext class and DbSet to map model classes to a database Seed data for your product ......
Q: Find the addresses of RSP, RBP // find_start.c unsigned long find_start(void) { __asm__(“movl %e...
A: RBP refers to the base pointer, which points to the base of the current stack frame i.e. memory addr...
Q: Consider the int Array below and determine the values of A and B so that Array[0] has an integer in ...
A: The question is to find the values of A and B.
Q: What are the advantages of technology in terms of education, the economy, and society?
A: Introduction: You can store a lot of stuff on a computer that you can't store in your head. It might...
Q: What are the two sorts of stack parameters that are often used?
A: What are the two sorts of stack parameters that are often used?
Q: Consider the int Array below and determine the values of A and B so that Array[0] has an integer in ...
A: The question is to find the values of A and B.
Q: Consider a two-link network where Host A is connected to the router by a 1 Mbps link with 10 ms prop...
A: Please refer below for the transmission delay:
Q: In what year did the computer first come out?
A: About first computer come out.
Q: Create a program that allows you to view and edit the sales amounts for each month of the current ye...
A: Python code for the given Question FILENAME = "monthly_sales.txt" # file name directory def read_sa...
Q: (a) Show that the following grammar is ambiguo- ::= | [ ::= 0 | 1 | 2 | 3|4|5|6|7|8 |9 (b) Find...
A:
Q: What is the ARM statement which correspond to the each following statement and find the value of RO
A: The answer is
Q: ite a PL/SQL program with an IMPLICIT cursor that goes through the table KUCERA and measures the len...
A: Please use below to meet the above req
Q: write an java code: Using quick sort algorithm to find the largest value in an unsorted array. give ...
A: I give the code in java along with output and code screenshot
Q: Infrastructure and architecture are two different things. What is the difference between the two?
A: Introduction : The Difference Between Infrastructure and Architecture: Architecture is a representat...
Q: Define the term "virtual machine" and explain why it is necessary.
A: Virtual Machine: It is a machine created on a physical hardware system (off-premises) that acts as a...
Q: Is computer gaming, on the whole, good or harmful to people? What are your arguments for and against...
A: Introduction: In terms of computer gaming, is it good or harmful to people
Q: Indicate the changes you need to make to the design of the BITS database to support the following si...
A: the answer is given below:-
Q: 13) What does the total number of pixels in the region defines? a) Perimeter b) Area c) Intensity d)...
A: The correct answer is given below:-
Q: Apply SSTF, SCAN and C-SCAN for the following data. Head starts at 53. 98,183,37,122,14,124,65,67
A: Given data is 53,98,183,37,122,14,124,65,67
Q: What UNIX utility can read an Execution and Linkable Format file's contents?
A: Executable and linkable format : In processing, the Executable and Linkable Format (ELF, previously ...
Q: Consider the int Array below and determine the values of A and B so that Array[0] has an integer in ...
A: According to the information given:- We have to choose the correct option to satisfy the statement.
Q: Buffers are used to minimise access latency between various levels of the memory hierarchy. List the...
A: Introduction: A designated memory section within a program for storing the data being processed. Eve...
please do in Haskal
Step by step
Solved in 2 steps
- Write a DECIMATOR function that takes a unit of character and minimizes it (i.e. removes the last 1/10 of characters). Always zoom in: if a bullet unit has 21 characters, 1/10 of the characters will be 2.1 characters, so DECIMATOR removes 3 characters. DECIMATOR is not kind! Examples decimator ("1234567890") 12 "123456789" # 10 characters, taken out 1. decimator ("1234567890AB") # 12 characters, 2 are released. "1234567890" decimator ("123") "12" # 3 characters, taken out 1. decimator ("123456789012345678901") # 21 characters, issued 3. Solve in Ruby "123456789012345678"Write a function verifsort that accepts a list as a parameter, check if the list elements are sorted and returns: 1 - if the list is sorted in ascending order, 2 – if the list is sorted in descending order, and 0 – if the list is not sorted. Write a function listsort which accepts a list as a parameter, and sorts it in ascending order. You can use any standard sorting algorithm, but don’t use built-in sort methods and functions. The function must sort and return the list. Write a script that asks user to enter 10 integer numbers, creates a list from those numbers, then calls verifsort function to detect if this list is sorted, prints message (list is sorted or list is not sorted) and if it’s not sorted then calls listsort function and prints the sorted list after listsortPYTHON!!! Write a function that receives 3 assignment grades, a1, a2, a3, and a final grade, f, for a student and returns the corresponding letter grade of the student. The weights for the assignments and the final are 0.2, 0.2, 0.2, and 0.4, respectively. You can use the following table for matching grades to letters: 95-100 -> A1 90-94 -> A2 85-89 -> A3 80-84 -> B1 75-79 -> B2 70-74 -> B3 65-69 -> C1 60-64 -> C2 55-59 -> C3 40-54 -> D 0-39 -> F For example, compute_letter(80, 60, 40, 70) returns "C2" because 80 * 0.2 + 50 * 0.2 + 40 * 0.2 + 70 * 0.4 = 62 and 62 corresponds to C2. Note that, you are expected to do rounding. For example, 39.4 is F, whereas 39.5 is D. You can use the builtin round() function for this. Please google this function and learn how to use it. """ def compute_letter(a1, a2, a3, f):
- Pb#1: For several values of x, confirm that eix = cos x + i sin x Pb#2: An object thrown vertically with a speed vo reaches a height h at time t, where h= vo*t - gt2 Write and test a function that computes the time t required to reach a specified height h, for a given value of vo. The function's inputs should be h, vo, and g. Test your function for the case where h=100 m, vo=50 m/s. and g=9.81 m/s2. Interpret both answers. (MATLAB)Code in Python Write a function, print_integers_less_than(n), which takes an integer parameter n and prints each integer k which is at least 0 and is less than n, in ascending order. Hint: use a simple for loop. For example: Test Result print_integers_less_than(2) 0 1 print_integers_less_than(5) 0 1 2 3 4 print_integers_less_than(-3)3. Find Relatively Prime Write a function to return a number that is relatively prime with the given number. /* return an integer that is relatively prime with n, and greater than 1i.e., the gcd of the returned int and n is 1 Note: Although gcd(n,n-1)=1, we don't want to return n-1*/int RelativelyPrime (int n) 4. Find Inverse Then implement the following function, which returns the inverse modulo, and test it.Note that you need to check whether a and n are relative prime before calling thisfunction. Recall that a and n are relatively prime means that gcd(a,n)=1, i.e., theirgreatest common divisor is 1. Also recall that the extended Euclidean Algorithm canfind the integer s and t for a and n such that as+nt=gcd(a,n), where s is the inverseof a modulo n. /* n>1, a is nonnegative *//* a<=n *//* a and n are relative prime to each other *//* return s such that a*s mod n is 1 */int inverse (int a, int n){int s, t;int d = ExtednedEuclidAlgGCD (n, a, s, t);if (d==1){return (mod (t,…
- Nationality. Prove the function works by testing it 2. BLACKJACK: Sample two cards from a "deck of cards" (ace, 2-10, jack, queen, king). Find the total of the two cards (ace counts as 11 and facecards count as 10). If the total is 21 print "BLACKJACK!" otherwise print "Try again". Keep drawing pairs of two cards until you get blackjack. Set your seed to 30 at the start of this problem ? Write 2 that ohe to frame for NAe If NA is found it should replace NA with theWrite a Convert() function that casts the parameter from a double to an integer and returns the result.Note that the main() function prints out the returned value of the Convert() function. Ex: If the double value is 19.9, then the output is: 19 Ex: If the double value is 3.1, then the output is: 3Templatize the fibonacci( ) function on the type of value that it produces (so it can produce long, float, etc. instead of just int).
- Write a function that sums all the numbers of the major diagonal in an nxn matrix of integers using the following header:def sumMajorDiagonal(m):The major diagonal is the diagonal that runs from the top left corner to the bottom right corner in the square matrix. Write a test program that reads a 4x4 matrix and displays the sum of all its elements on the major diagonal.There is a large pile of socks that must be paired by color. Given an array of integers representing the color of each sock, determine how many pairs of socks with matching colors there are. Example There is one pair of color and one of color . There are three odd socks left, one of each color. The number of pairs is . Function Description Complete the sockMerchant function in the editor below. sockMerchant has the following parameter(s): int n: the number of socks in the pile int ar[n]: the colors of each sock Returns int: the number of pairs Input Format The first line contains an integer , the number of socks represented in .The second line contains space-separated integers, , the colors of the socks in the pile. Constraints where Sample Input STDIN Function ----- -------- 9 n = 9 10 20 20 10 10 30 50 10 20 ar = [10, 20, 20, 10, 10, 30, 50, 10, 20] Sample Output 3 Explanation There are three pairs of socks.Complete the scramble_text() function that takes a single string parameter text. The function returns a new string consisting of the characters in text scrambled order - every pair of characters have their positions swapped. You can assume that the parameter text will have a length of at least 1. For strings with an odd length, the last character remains unchanged in the scrambled text. Some examples of the function being called are shown below. For example: Test text = "I". print (f"{text} --scramble--> {scramble_text (text)}") text = "Hello" print (f"{text} --scramble--> {scramble_text (text)}") text = "superb" print (f"{text} --scramble--> {scramble_text (text)}") Result I --scramble--> I Hello --scramble--> eHllo superb --scramble--> usepbr