Write a python program to create a list of even numbers and another list of odd numbers from an inputted list. Ask the user how many items helshe wants the initial ist to be. Display the final ists. And the sorted lists.
Q: Make a topic / problem that can be solved in terms of software engineering
A: Software developers work on a range of tasks, from pure coding to system-level design and troublesho...
Q: ements for using the AWS SDK S3 with a Spr
A: Below the requirements for using the AWS SDK S3 with a Spring Boot application?
Q: What is the matehmatical machine on which both top-down and bottom-up parser are based? Reduction Su...
A: Introduction: The question is about the matehmatical machine on which both top-down and bottom-up pa...
Q: What is the difference between the prefix and postfix increments?
A: prefix and postfix are increments are just two common simple ways to increment a value by 1 If the v...
Q: Use relational algebra (operation like selection, procejection, etc.) to find names, age, rating of ...
A: Relational algebra is also known relational query language Query languages: It allows manipulation a...
Q: Consider a 32KB direct mapping cache with a 32-byte block size. The CPU generates addresses that are...
A: number of bits needed for physical memory addressing: 10 number of bits needed for cache addressing ...
Q: Examine the order of the Boolean operators in SQ, as well as the strategy for ensuring that operator...
A: INTRODUCTION: BOOLEAN EXPRESSION: A Boolean expression is a programming language that returns a Bool...
Q: What are the most recent nanotechnology products? Give its benefits and drawbacks./
A: Intro The question is about What are the most recent nanotechnology products?Give its benefits and d...
Q: What is the process of implementing multifactor authentication? What role does it play in the preven...
A: Introduction: A physical token or card is a second element in the multi-factor authentication proces...
Q: Make a concept map about "Relationships between Job Stress and Employee Well-Being in the Implicatio...
A: INTRODUCTION: Information and communications technology (ICT) is a subset of information technology...
Q: Computer science What is the best way to install S3FS on Ubuntu?k
A: Introduction: Ubuntu is equipped with everything you'll need to run your corporation, school, home, ...
Q: Please define the structure of the relational database and provide an example to illustrate the stru...
A: Introduction: The question is about Please define the structure of the relational database and provi...
Q: What exactly does "define a system model" imply? What considerations should be taken into account wh...
A: The term system model' is used in a variety of domains, fields of application, and in a variety of w...
Q: Using the sequence programming concept, create a flowchart and a java program that will read four re...
A: Please find the java program below: import java.util.*; import java.util.Scanner; class SeriesPar...
Q: ose to compute a mode for a variable, which variability would you m
A: If you chose to compute a mode for a variable, which variability would you most likely report?
Q: B= 3 - J4 Calculate the following and plot using the compass() function. Hint: Read help for compass...
A: % assign the A and B A = 1 + 2i; B = 3 -4i; hold on % plot A compass(A','r'); % plot A - B compass(A...
Q: How is Computing Power era of AI different from 50 years ago?
A: The history of artificial intelligence (AI) dates back to antiquity, with myths, legends, and rumour...
Q: Explain the concept of a memory hierarchy. Why did the authors decide to make it a pyramid?
A: Introduction: Hierarchical memory is the mechanism through which modern computers deliver high perfo...
Q: Java programming help please. Thank you so so much. i have to Write a program that does the follow...
A: Input function to take array and rearrange. Rearrange positive ang negative elements of array. Shift...
Q: What does the (break) in the switch statement do?
A: What dose the break statement inside a switch statement: When we use break inside a switch statemen...
Q: Explain the GRANT statement and how it pertains to security. What kinds of privileges are available?...
A: Introduction; the question is about Explaining the GRANT statement and how it pertains to security. ...
Q: People find it easier to read time in hours, minutes, and seconds rather than just seconds. Write a ...
A: The number of seconds in an hour are 60 * 60 = 3600, the number of seconds in a minute are 60. These...
Q: Being a student taking up online courses, how much bandwidth do you recommend for the other online s...
A: Being a student taking up online courses, how much bandwidth do you recommend for the other online s...
Q: Which line(s) of the following code fragment will cause a runtime error? int *ipl int *ip2 *ipl *ip2...
A: A pointer is a variable which stores address. Working on direct address improves execution time. P...
Q: The student is preparing for the exam Controller of examinations has prepared a slot-based timetable...
A: SInce nothing is mentioned about number of slots, I am assuming there are 26 slots named from A-Z Fr...
Q: Laboratory Exercise Building C# Console Application Objective: At the end of the exercise, the ...
A: Declare a function. Declare variables. Ask for use input. Print the desired output statement.
Q: 3 Question 3 Write C code for a 3 processes A, B and C that communicate through shared memory segmen...
A: The following is the program written in c to process A, B & C processes using Fork Call .
Q: Lael is constantly looking for students who are interested in running for office in student organisa...
A: Intro Lael is constantly looking for students who are interested in running for office in student or...
Q: In order to transfer traffic from one VLAN to another, what steps must be taken?
A: Introduction: VLANs enable network administrators to automatically limit access to a set of users by...
Q: i. How is multimedia useful in our daily life, discuss? ii. Can you imagine a life without multimedi...
A: INTRODUCTION: Multimedia includes everything you see and hear in the form of text, photographs, aud...
Q: What exactly is an intrusion prevention system?
A: INTRODUCTION: Intrusion prevention system (IPS): An intrusion prevention system (IPS) is network se...
Q: Write a computer code (or using MS Excel or any technique) to sketch the curves given in polar as: r...
A: Introduction : Note: Answering in python as no language is mentioned. Given : •Range values of theta...
Q: create a new function that calls on the other two functions and outputs a password that is random wi...
A: // C++ program to generate all passwords for given characters#include <bits/stdc++.h> using na...
Q: Q2. Suppose $11 stores the base address of word array A and $s1 is associated with h, convert the fo...
A: Program : h =0run a loop till less than equal to 30inside loop write the value of A[h+3] to A[h]so w...
Q: Convert the given Conceptual ER Diagram into MYSQL (write code). Include and show primary key and fo...
A: Schema:- Staff(ID,d.o.birth,Age,Name,Phone,Address) Child(Name,ID) Wife(Name,ID) Company(Since,ID) T...
Q: 3. Write a Python script to save the dictionary words in the 'wordlist.txt' file, and then compress ...
A: Algorithm: Start Store "wordlist.txt" in wordlist Store "protected.zip" in zipFile Initialize the Z...
Q: Write an assembly program to set R0=1 if there's a 5 in one of ten memory locations, starting at x31...
A:
Q: ngine have?
A: given - What effects will features like the Apple Pay button and Taptic Engine have?
Q: Write a program that reads an arbitrary number of integers that are in the range 0 to 50 inclusive a...
A: To count occurrence of numbers between 0 and 50, create an array of size 50 and for each entered num...
Q: What data is stored in the C:WindowsSystem32LogFilesSRT SRT Trail txt file?
A: Introduction: Srttrail. txt in Windows 10 can be caused by incompatible hardware, an overloaded powe...
Q: Will the necessity for in-house systems analysts decrease as more organisations outsource system dev...
A: Introduction: As more organisations outsource system development, there may be less demand for in-ho...
Q: d) Feature scaling speeds up gradient descent by making each iteration of gradient descent less expe...
A: There are some of the algorithms for example, the algorithms of Neural network gradient descent conv...
Q: node in the linked list is defined as follows: node begin data: element of any datatype link: pointe...
A: Here the statement p=f.link.link means take 3rd node with respect to f. That is p will be pointing...
Q: he term cache pollution refers to the situation where more than one process is running concurrently ...
A: Introduction: Here we are required two choose the correct option of the question given above.
Q: Given the Sailor, Boat, and Reservation tables. Sailor Table Reservation Table ID (PK) NAME RATING A...
A:
Q: Explain how many programing language are there?
A: The programming language is a set of rules that have a specific syntax and are used for creating sof...
Q: Most machines can replicate data in both directions, from and to another register. The Memory Addres...
A: Introduction: Given this, most machines are capable of data replication in both directions, from and...
Q: Why do we use Big-Oh in defining the time complexity of our algorithm and not Big-Theta or Big-Omega...
A: We are going to understand why we prefer using Big-oh notations rather than Big-theta or Big-omega n...
Q: b) How many permutations of the letters ABCDEFGHIJ contain: i) the string EF? ii) the strings BCA an...
A: Below is the answer to above question. I hope this will be helpful for you...
Q: What does system model mean? What should be considered while making basic models?
A: Given: What does the term "system model" imply? What should be kept in mind when creating basic mode...
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
- Write a Java program to create a singly linked list of n nodes and display it in reverse order. Sample Output: Input the number of nodes:3 Input data for node 1:5 Input data for node 2:6 Input data for node 3:7 Data entered in the list are: 5 6 7 The list in reverse are: 7 6 5Write a program in Java to implement the Insertion sort algorithm to sort a given set of elements and determine the time required to sort the elements. Repeat the experiment for different values of n, the number of elements in the list to be sorted, and plot a graph of the time taken versus n. The elements can be read from a file or can be generated using the random number generatorFor this exercise, a list of non-negative numbers will be given, for which the following operation can be done: subtract 1 from two contiguous elements from the list. It must say whether after any number of operations the list can be converted to a list of zeros. EntryThe input will be a list of non-negative integers x_i such that 0 <= x_i <= 2000000000. ". DepartureIf the given list can be converted to a list of zeros with the operation defined above, print "YES", otherwise, print "NO". Examples Input Example 1 1 2Output Example 1 NOT Input Example 2 2 4 2Output Example 2 YES
- Write a python program that takes a list from user containing both positive and negative numbers. The program then finds two pairs of values whose summation is closest to zero. ===================================================== Sample Input 1list_one = [-10, 15, 2, 4, -4, 7, -8] Sample Output 1Two pairs which have the smallest sum = 4 and -4 ===================================================== Sample Input 2list_one = [1, -8, 4, -7, -20, 26, 70, -85] Sample Output 2Two pairs which have the smallest sum = 4 and -7a. Write a version of the sequential search algorithm that can be used to search a sorted list. (1, 2) b. Consider the following list: 2, 20, 38, 41, 49, 56, 62, 70, 88, 95, 100, 135, 145 Using a sequential search on ordered lists, that you designed in (a), how many comparisons are required to determine whether the following items are in the list? (Recall that comparisons mean item comparisons, not index comparisons.) (1, 2) 2 57 88 70 135 Write a program to test the function you designed. Note: Have the function,seqOrdSearch, return -1 if the item is not found in the list. (return the index of the item if found).write a java program: You have been given the head to a singly linked list of integers. Write a function check to whether the list given is a 'Palindrome' or not.Input Format:Elements of linked listOutput Format:True or FalseSample Input 1:9 3 2 2 3 9Sample Output 1:trueSample Input 2:0 2 3 2 5Sample Output 2:false
- Write a python program for double linked list sorting algorithm by using below logic If else , while , functions. Output Before list - 42,57, 84,12,90 After list - 12,42,57,84,90Write a pyhton program that starts with an empty list. Your program must ask theuser for a positive integer n, generate n random integers in the range [1-10] (inclusive),store them in that list, and print it.Your program then must repeatedly ask the user to enter a number and a string to replaceall occurrences of that number in the list with that string (e.g., replace all 1’s with "hello",all 8’s with “hi”, etc.). At every iteration, print the updated list and the number of times anumber was replaced. Your program stops when the user enters ‘q’. Input validation isoptional. Hint: use a for (counter controlled) loop inside a while (event-controlled) loop. Sample output:n >> 13List: [1, 3, 3, 9, 5, 7, 8, 2, 10, 8, 4, 1, 1]Enter a number to change ['q' to quit]>> 1with string >> helloList: ['hello', 3, 3, 9, 5, 7, 8, 2, 10, 8, 4, 'hello', 'hello']The number 1 was replaced 3 timesEnter a number to change ['q' to quit]>> 8with string >> hiList: ['hello', 3, 3,…Write a Python program to create a list by taking input from user and then find thedifference between consecutive numbers in the list. Let’s assume that the list is: [1, 1, 3, 4, 8, 5, 6, 7], then the output list will be as follows:Difference between consecutive numbers of the list: [0, 2, 1, 4, -3, 1, 1]
- Write a program to find all pairs of numbers in a given list which add up to a given sum eg. if list = (1,3,8,12,7,11,9,4,2,10,5)and sum = 12pair: (1,11), (2,10), (3,9), (4,8) Input: a list of numbers and a sum Output: The list of pairs with the respective sum 2 . Extend your program to include all possible sums eg. Sums = 5, 6, 7, 8, ..., 23Input: A list of numbersOutput: a list of tuples where each tuple is the sum followed by the list of pairs e.g. [(12,[(1,11),(2,10),(3,9)), (11, [(3,8)]]Given a string formed with 0’s and 1’s. The string is marked with a special character X that represents the middle of the string (for example: 0101011X1101010). Write an algorithm to check whether the string is palindrome or not: (a) If the string is stored as an array (b) If the string is stored as a singlv linked listGiven the head of a singly linked list of integers, write the function to arrange the elements such thatall the even numbers are placed after all the odd numbers. The relative order of the odd and eventerms should remain unchanged.Input Format:Elements of linked listOutput Format:Resultant linked listSample Input 1:1 4 5 2Sample Output 1:1 5 4 2Sample Input 2:1 11 3 6 8 0 9Sample Output 2:1 11 3 9 6 8 0 in java