Using Common Lisp, complete the following programming exercises: Write a function that computes the maximum and minimum of a list of integers. Write a function that collects integers from the user until a 0 is encountered and returns them in a list in the order they were input. Use the functions you wrote for Numbers 2 and 3 to write a program to input a 0-ended list of integers, print the list in the order entered, and print the maximum and minimum of the list.
Q: Which conditional jump instruction is the JNGE instruction's equivalent?
A: JNGE stands for jump if not greater than or equal to. This instruction is used to jumps to the desti...
Q: In the uniform cost algorithm, which values are stored in the priority queue for each cell? ...
A: In the uniform cost algorithm, which values are stored in the priority queue for each cell?
Q: Does Dijkastra's Algorithm work on every kind of graph ?
A: - We need to talk about Dijkastra's algorithm if it works on all types of graphs or not.
Q: What is the following code executing on inputlist? ... for i in range(len(inputlist) - 1): currMinIn...
A: //lets analyze given code for i in range(len(inputList)-1)://runs for i=0 to n-1, where n is len(inp...
Q: bierre turns on his computer and receives the "Disk Boot Failure" error message. In panic, he calls ...
A: bierre turns on his computer and receives the "Disk Boot Failure" error message. In panic, he calls ...
Q: 10. What would Kasiski's method suggest concerning the length of the key for the ciphertext: "PRUTAE...
A: 10. What would Kasiski's method suggest concerning the length of the key for the ciphertext: "PRUTAE...
Q: Describe specific programming situations that require a posttest loop.
A: Posttest loop is a loop in which the block of code is repeated until the the specific condition is n...
Q: Write the shortest condition in the if-statement below that will make the unshaded values of row six...
A: From the given figure, For row six, the unshaded values are 6-14 For row six the value is valid if ...
Q: 2. When hydrogen gas reacts with iodine gas at elevated temperatures, the following equilibrium is e...
A: Solution ::
Q: What are some of the advantages of pagers?
A: Let us see the advantages of pagers.
Q: Fast Food Restaurant Make a program that has several food items on the menu with prices. The user ...
A: Answer: C++ Source Code: #include <iostream> using namespace std;int displayMenu(){ int opt...
Q: In general terms, describe the main logical database design techniques and how they relate to each o...
A: In general terms, describe the main logical database design techniques and how they relate to each o...
Q: What is the difference between pattern and anti-pattern?
A: Let's understand pattern and anti pattern separately: Patterns: We all know what patterns generally ...
Q: Given a 100 x 100 image, (1) write a 3 x 3 geometric transformation matrix that rotates the image by...
A: Given a 100`x 100 image, (I) write a 3 x 3 geometric transformation matrix that rotates the image by...
Q: What is the shortest path between A and Z in the graph below? (The length of a path is the sum of th...
A: Given a weighted graph , we have asked to find the shortest path from A to Z .Here we will use Dijka...
Q: A single processor system has to execute six jobs L, M, N, O, P and Q having priorities 4, 7(high), ...
A: Given :- A single processor system has to execute sixjobs L, M, N, O, P and Q having priorities 4,7(...
Q: ncoding technique solves the loss of synchronization because of long 0’s and 1’s? A. Manchester B....
A: given - Which encoding technique solves the loss of synchronization because of long 0’s and 1’s?
Q: Dear tutor Please note: I need all three answers with correct option with proper explanation. If yo...
A: Due to company policies I am compelled to solve only one question and that is the first question. Pl...
Q: What is the Matlab formula to change the amplitude of a wav file?
A: The formula is y=ammod(x,fc,fs)
Q: Write a single if else if statement with the following criteria: reading -10 to -1 output Fails the ...
A:
Q: a) explain backtracking, with examples, advantages and disadvantages of backtracking b) Back tracki...
A: Ans a) Backtracking is the algorithm that is the brute force algorithm that is based on the construc...
Q: Internet is based on an open standard called __. It is a store-and-forward packet switching techniq...
A: Below is the answer to above question. I hope this will be helpful for you.
Q: Describe the clocking methodology.
A: Please find the detailed explanation and details in the following steps.
Q: Computer Science Question
A: Please check the step 2 for solution
Q: ***** *本本本本本*本本 事**本事*本事*本本容* ********* *****
A: give more information for question 2
Q: 2.25 Let L be a regular language, let M be a DFA whose language is equal to L, and let p be the numb...
A:
Q: What information do you think would be particularly important to your analysis for Inu + Neko?
A: Inu neko is an immense worldwide web based gaming stage that is available to each and every individu...
Q: Step 1: Creating a New Project in Visual Studio 2019. Step 2: Design the Graphical User Interface (G...
A: Given The answer is given below. The code for the calculator in Visual basic.net is given in code wi...
Q: Which of the following commands inserts an integer operand into ST(0)?
A: Introduction: The FIELD (Load Integer) instruction converts an integer operand in memory to extended...
Q: Consider the following edge-weighted graph G with 9 Vertie 40 60 90 50 70 20 30 80 10 130 150 120 10...
A: Steps: 1. Sort all the edges in non-decreasing order of their weight. 2. Pick the smallest edge. Che...
Q: ction is performed, what is the first
A: When the INT instruction is performed, what is the first thing the CPU does
Q: Explain what is a "Resource" in a REST
A: REST architecture treats every content as a resource. These resources can be Text Files, Html Pages,...
Q: QI Choose two correct answers for the missing step of the algorithm below to find the result of solv...
A: Options were not given, hence I have provided with the possible answer. Please match the answer as t...
Q: What is the height of an empty BST
A: Given What is the height of an empty BST?
Q: The student wishes to make the code work and display as follows: List List 1: · BB218 · Internet in ...
A: python code for the following above list displaying
Q: Q)what is the description of SWIFT and explain how it works ? Explain it correctly and not copy pas...
A:
Q: 1. Given the first 2-bytes of Intel Instruction format opcode D W MOD REG R/M 10 9 8 7 ---- 6 5 --- ...
A: Part a) Instruction: MOV SI, DI The above instruction moves the 16 bit content of Register DI to the...
Q: 1. explain in details Query optimization 2 . Examples of Query Optimization 3. Explain in detail...
A: Answer 1: A relational DBMS's most critical job is query optimization. Alternate plans generated by...
Q: Write a Python program that will ask the user to input a string(containing exactly one word).then yo...
A: Algorithm: Start Read a word 's' Iterate through the loop from i=0 to i=len(s)-1 Inside the loop, p...
Q: Design a code converter that converts a decimal digit from the 8, 4, -2, -1 code to BCD
A:
Q: Modification of the Tractor project. Make a copy of your testTractor Package name it testLoader and ...
A:
Q: Relationship between supertypes and subtypes. Where does the rule of disjunction apply?
A: A supertype is a generic entity type it has a relationship with one or more than one subtypes. A su...
Q: Q5: For the Binary search tree given below. 30 15 60 7 22 45 75 17 27 In-order Travetrsal Pre-Order ...
A: In Inorder traversal, the root is traversed in between the left and right subtrees and the same rule...
Q: What style is better for use
A: Below are the leadership style and their advantages and disadvantages :- 1) Democratic leadership In...
Q: Q1) Gram-Schmidt Algorithm and QR decomposition ii) Write python code (without numpy) to decide if ...
A: “Since you have asked multiple questions, we will solve the first question for you. If you want a...
Q: it is required to develop an application in lava to perform some operations to store information abo...
A: the program is an give below : import java.util.Scanner;abstract class Item{ private String ...
Q: 6. Create a function called word_intersection that prompts the user for two English words, and displ...
A: The user input will be string and then we have to parse them to set and then we can use intersection...
Q: ecution for each line using "call by need" an
A: Draw the run-time stack after the execution for each line using "call by need" and "call by name". A...
Q: a) With respect to Lehman's laws of software evolution, state the two most fundamental laws and expl...
A: Note: as per company guidelines, only first question answer can be given if multipart question are p...
Q: 13. What are the similarities and differences in terms of spoken and written language of their varie...
A: Varieties and Registers- Registers are a sort of computer memory that is used to accept, store, and ...
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
- Please answer it in Python Write a function min_odd that takes a list as an argument and returns the smallest even integer contained in the list. If the list contains no even integers, the function will return None. For Example : min_odd([45, 62, 19, 22, 26, 18, 3, 5, 14])Expected answer is 14 min_odd([])Expected answer is None Write a function index_of that takes as an argument an integer (supposedly even) and a list, and returns the index to which this integer appears in the list. If the integer does not appear, the function will return None. It is assumed here for simplicity that the integer searched for does not appear several times in the list. Hint: if the for e in list loop doesn't suit you, remember that you can make a for + range or a while. .. For Example: index_of(34, [3, 67, 62, 34, 19, 24])Expected answer is 3 index_of(16, [2, 6, 104, 5, 25, 18, 50, 16])Expected answer is 7Define a function below called make_list_from_args, which takes three numerical arguments. Complete the function to return a list which contains only the even numbers - it is acceptable to return an empty list if all the numbers are odd.Help writing an emacs/lisp function Write a function that takes one parameter that is a list of numbers and returns true (t) if all the elements of the list are multiples of the first one and nil otherwise. This said, a list generated by the function make-multiples could be passed to this new function and the result should be true. On the other hand, show an example of a list that could not have been generated by the first function for which the result is still true.
- Please answer it in Python Write a function extrait_pairs that takes as an argument a list l1 and returns the list obtained from l1 keeping only the even integers (and without changing their order). Be careful, l1 must not be modified by the function. Example: extrait_pairs([4, 7, 12, 0, 3]) is [4, 12, 0] and extrait_pairs([21, 17, 3]) is [ ].Please answer it in Python Write a decale function that takes as an argument a list l and a number d and returns the list obtained from l by adding an offset of d to each element of l. Example: decale([4, 17, 12], 3) is [7, 20, 15]. Write a function intercale_zeros that takes as an argument a list l and returns the list obtained from l by inserting a zero after each element of l. Example: intercale_zeros([4, 17, 12]) is [4, 0, 17, 0, 12, 0].Please answer it in Python Write a function min_pair that takes a list as an argument and returns the smallest even integer contained in the list. If the list contains no even integers, the function will return None. Example: min_pairs([4, 7, 12, 0, 21, 5]) is 0 min_pairs([9, 3, 1]) is None. min_pair([16, 13, 10, 102, 7, 23]) is 10
- Write two Lisp functions using memory allocation methods 1. The first function should return the first element in the list that is larger than or equal to the value. For example,(first-fit '(3 8 6 4 9) 5)should return 8. The second should return the element of the list that best fits the value. Look for the smallest value in the list that is larger than or equal to the value. Do not use the built-in function sort, nor sort the list in some other way. The solution should be linear For example,(best-fit '(3 8 6 4 9) 5)should return 6.Write a function called `filler(A, l)` that takes an integer `A`, and a list of integers `l` and if some of the numbers in `l` sum up to `A` then it returns a list of these numbers. Otherwise, it returns `None`. For example, filler(5, [1,6,3,4]) returns [1,4]. filler(5, [1,6,3,7]) returns None. filler(0, [-1,-1,2,-3]) returns [-1,-1,2]. filler(10, [2,3,2,3,1]) returns [2,3,2,3]. If there are multiple answers, then return any of them. You can use each number in the list once for each occurence. """ def filler(A, l): # remove the following line to solve this question returnuse haskell haskell haskell haskell to write following : --> A function that is passed in a function f and a list. It should apply f to every element of your list and return the resulting list. --> A function that is passed in a list and returns the count of the smallest value of the list.
- Implement the following functions in the same application in C#: 1. Given a number (integer) N (greater than 1). Implement a Fibonacci sequence of length N. (Function name ComputeFibonacciSequence )ComputeFibonacciSequence receives N.2. Given a list L with n numbers (integers), implement a function that returns whether that list is even prone or not (i.e.: the number of even numbers in the list must be higher than that of the odd numbers.) (Function name ComputeEvenProne) - Return 1 if the list is even prone, return 0 if it is not.ComputeEvenProne receives L.Please answer it in Python Write a function insere_milieu that takes as an argument a list l and an element elem and returns the list obtained from l by adding elem "in the middle" of l, that is: If the length of l is even, the item is added once, in the middle of the list. If the length of l is odd: the element is added on either side of the central element. Example: insere_milieu([4, 7, 12, 3], 0) is [4, 7, 0, 12,3] insere_milieu([9, 3, 5, 6, 2], 1) is [9, 3, 1, 5, 1, 6, 2].Write a Haskell function descending that receives a list and returns whether its values are in descending order. For example, given [], [42, 9, 9, 7] and "ymca" the function returns True; given [11, 5, 3, 4], "utopia" and "yummy" it returns False. ghci> descending "utopia" False