1. Write a program that will display the following menu A. Use void and return function for Bubble, Insertion and Selection Sort. You may use the sorting algorithm from our Sorting Module. Use switch statement for the selection of choices in the menu. Sample Output Menu a. Bubble Sort b. Insertion Sort c. Selection Sort Input Choice: a
Q: Construct an NFA for following REs: (b*ab* + a)*.
A: A regular expression (RE) is a sequence of characters that define a search pattern. NFAs, or…
Q: What is the main function of router?
A:
Q: What is the main function of router?
A: A router is a networking device that plays a crucial role in connecting multiple computer networks…
Q: Databases use different keywords for searches than the web does. How are various queries answered…
A: Databases and the web use different keywords and search terms to answer queries. While the web…
Q: What are the two most important things that you need to concentrate on while you are learning a new…
A: Every programming verbal communication is built around a set of center concepts and principles, and…
Q: Software development stages in waterfall? Barry Boehm's history, philosophy, and spiral model…
A: The waterfall model is a linear sequential approach to software development, where the development…
Q: What are the waterfall methodology's software development stages? Barry Boehm's history, philosophy,…
A: When creating software, the Waterfall model is all about doing things in a certain order, which was…
Q: Think about connectionless protocols as an alternative to connection-based ones, and weigh the pros…
A: Network protocols are a set of rules outlining how connected devices communicate across a network to…
Q: Create a MATLAB program to read input the length of the side of a cube(in cm) and then it displays…
A: Resultant algorithm to find volume of cube is:StartInitialise the variableRead the value of length…
Q: Write a program in the Python language to find the sum of all natural numbers in the range n to 150…
A: Here's a Python program that calculates the sum of all natural numbers in the range from 1 to the…
Q: "Race Condition" in a computer programme?
A: Race conditions occur in a computing context when two or more operations must execute in a specific…
Q: Make use of current events to drive home the relevance of dynamic programming.
A: Dynamic programming relevance and applicability can be demonstrated by drawing connections to…
Q: Why is it important for an IT worker to be familiar with the ins and outs of local law? Can we, as…
A: Being familiar with local laws is important for IT workers as it helps ensure compliance, data…
Q: Is it typically good or harmful for individuals to play computer games? Is there evidence to back up…
A: Online video gaming is a popular hobby with a number of psychological benefits and downsides.On the…
Q: Analyse the idea of abstraction by comparing it to many real-world instances from the field of…
A: Abstraction in computer science is the process of hiding the complex details of a system while…
Q: provide me some real-world scenarios in which you found SQL Database to be helpful.
A: SQL databases are widelyy used in a variety of real-world scenarios, thanks to their ability to…
Q: Where do I even begin when looking for software to use in the creation of applications? Correct? It…
A: When embarking on the journey of creating applications, it's important to have the right software…
Q: Comparison of OLTP (online transaction processing) and data warehouse (DW) technologies. Analyse the…
A: OLTP (Online Transaction Processing) and data warehousing (DW) are two distinct technologies used in…
Q: Why does your company use highly accessible DHCP options? Why this improvement? Any drawbacks? Why…
A: With DHCP (Dynamic Host Configuration Protocol), a member of staff serving at table may…
Q: Because of its cumbersome nature, traditional Turing architecture is famously energy inefficient.…
A: 1. Energy Inefficiencies in Traditional Turing Architecture: The Major Drawback:Turing machines, the…
Q: In the event that troubleshooting is unsuccessful, provide the following three potential solutions:
A: Troubleshooting is a systematic approach to diagnosing and resolving problems with a system or a…
Q: What is Hadoop, and how has it changed since it was first created? What are the distinctions between…
A: Hadoop is an open-source software framework for managing and analyzing massive datasets in a…
Q: Does the Compiler's each Phase adhere to a set process, or does it deal with issues as they arise?…
A: Does the Compiler's each Phase adhere to a set process, or does it deal with issues as they arise?…
Q: So, I was curious about your take on which of the Compiler Phases is essential. This structure would…
A: In the process of compiling source code into machine-executable code, several distinct phases are…
Q: How does creating a video differ from other methods of creating media? Clearly explain how you…
A: In the realm of content creation, there are various mediums such as text, images, audio, and video.…
Q: xplanation of what LSI processors are and how they work in modern com
A: Large Scale Integration (LSI) represents a stage in the evolution of integrated circuits (ICs) and…
Q: Many Linux commands have Unix counterparts. What's up?
A: Unix genetics and Linux coming out:Unix is an influential operating system intended in the late…
Q: When the CMP instruction sequence is executed, what is the final value for AL register ? MOV AL, 25h…
A: In the given instruction sequence:MOV AL, 25h - This instruction moves the value 25h into the AL…
Q: What are the advantages of learning more programming languages if a developer already knows a few?
A: Learning more programming languages can offer several advantages to developers, even if they already…
Q: define the difference between an assault and a threat?
A: 1) An assault refers to a deliberate and unauthorized attempt to breach the security measures of a…
Q: Write program to enter and draw, as a CT signal, the following two sequences: A-[3, 6, 9, 12] and…
A: I'm providing the answer of the above question with the program & figure. I hope this will be…
Q: What is the most affordable approach to licencing software? Do you not agree that it would improve…
A: The most affordable approach for licensing software based on the various factors this includes…
Q: Summarise the value of knowing compilers in six bullet points.
A: Bridges the Gap: knowledge about compilers is important as they viaduct the gap flanked by…
Q: It is recommended that a report on the adoption of agile techniques as well as surveys of agile…
A: Since their arrival, Agile approaches have altered the world of package growth, delivery forth…
Q: How well do you comprehend software development metrics? Extra details, please.
A: Software development metrics are measurable measures that enable software developers to gain vision…
Q: When you use the word "metadata," what precisely do you mean by that? The following is an…
A: Metadata is frequently referred to as "in order about in arrange." A dataset represents information…
Q: Does an experienced programmer benefit from being able to learn even more programming languages?
A: Learning programming languages is a continuous process for programmers. They often acquire expertise…
Q: Does a programmer who already understands many languages benefit from being able to learn more?
A: A programmer's knowledge base and skills are directly proportional to the number of languages they…
Q: It's important to understand the heap's role in processing dynamic data. Why would a developer…
A: Static and dynamic data are two types of data in software development. Static data is fixed in size,…
Q: Create a MATLAB program to read input the length of the side of a cube(in cm) and then it displays…
A: - We need to create a Matlab code for the cube volume.
Q: What use is there in knowing how to get into a computer and steal your data?
A: In today's digital age, Information security has become an increasingly critical concern. With the…
Q: There are Unix counterparts for many Linux commands. Why is that?
A: *) The Unix operating system predates Linux and served as a foundational system for many subsequent…
Q: 2. When managing a switch using an dedicated RJ45 connection on the switch, the management approach…
A: When it comes to managing a switch using a dedicated RJ45 connection, there are different approaches…
Q: What exactly does it mean when the forwarding table of a router is enabled?
A: When the forwarding table of a router is enabled , it signifies that the router is prepared to…
Q: Added functionality or space might emerge. To differentiate between the two, provide specific…
A: When discussing added functionality or space in the context of technology, it generally refers to…
Q: Figure out what goes into a computer and how to explain it.
A: Explaining what goes into a computer involves describing the various hardware components that make…
Q: whether a programmer is already fluent in numerous languages, doesn't it make less of a difference…
A: while fluency in numerous programming languages provides a programmer with transferable skills, it…
Q: Modelling software is not the same as making software. Distinguishing features? The development of…
A: Software modelling and software creation are two stages in the multi-faceted process that goes into…
Q: Why does it important whether a programmer can quickly learn new languages if they are fluent in…
A: In the rapidly evolving field of skill adaptability is of utmost meaning. New languages, frameworks,…
Q: Given a hard drive with the following characteristics: 1024 B sector
A: The rotational speed is 15000 rpmThat is,15000 rotation 60 second1 rotation x…
C++
Step by step
Solved in 3 steps with 5 images
- It is used to filter data with certain criteria. a. custom sort b. advanced filter c. custom filter d. data filter1. Write the function below per the docstring. def rollUntil3ConsPrimes (): **'Use the random module to roll a fair dice until there have been 3 consecutive prime numbers rolled. The starting score is 100. The final score is the starting score decreased by 5 for every non prime roll made. Returns the list of dice rolls made and the final score as a tuple. Use a while loop and a list accumulator. Use appropriate helper functions - you MUST use at least one helper function. Hint: in the while loop, ue a counter to count the number of consecutive primes rolled by using a counter that increases its count if a prime is rolled, but if a prime is not rolled the counter is set back to zero. .. print('Q1') print('Sample runs:') for i in range(5): Rolls,Score = rolluntil3ConsPrimes () # note how return is received from # a function that returns a tuple print('Rolls made:', Rolls) print('Ending score is:',Score) print() Q1 Sample runs: Rolls made: [5, 2, 2] Ending score is: 100 Rolls made: [4, 3,…Find an even number Complete the following function according to its docstring. Use a for loop. The lists we test will not all be shown; instead, some will be described in English. If you fail any test cases, you will-need to read the description and make your own test. 1 def first_even(items: list[int]) -> int: """Return the first even number from items. Return-1 if items contains 3. no even numbers. 4 5. >>> first_even([5, 8, 3, 2]) 8 7. >>> first_even([7, 1]) -1
- AskForNumbers Declare an integer array locally with the size of 200. Create a program that asks the user how many numbers the have. Use your getChoice() function from before. Make sure it does not exceed 200 as the locally declared array has the size of 200 Use a for loop and ask the user to enter each value that must be stored in the array Use a second loop to display each number, and also determine the average of all values in the array After the for loop, display the average of all numbers. This program will let you enter a list of numbers into an array. It will then display all of the numbers, and finally display the average of all numbers. How many numbers would you like to enter?5 Please enter a number: 22 Please enter a number: 33 Please enter a number:44 Please enter a number: 55 Please enter a number: 66 lumber 1 is 22 lumber 2 is 33 lumber 3 is 44 lumber 4 is 55 lumber 5 is 66 The average is 44The function last_words in python takes one parameter, fname, the name of a text file, and returns a list containing the last word from each line of the file. For example, if the file contents are: apples are red bananas are yellow limes are green then the list ["red", "yellow", "green"] should be returned. NOTE: You may assume the file will contain no blank lines. BIG HINT: If line is a string representing a line of text (inside a for loop!), then L = line.split() creates a list of the words in the line. For example: Test Result L = last_words("wordlist1.txt") print(L) ['happy', 'sad', 'angsty', 'euphoric', 'maudlin']Please follow the instructions The function first_words in python takes one parameter, fname, the name of a text file, and returns a list containing the first word from each line of the file. For example, if the file contents are: apples are red bananas are yellow limes are green then the list ["apples", "bananas", "limes"] should be returned.NOTE: You may assume the file will contain no blank lines.BIG HINT: If line is a string representing a line of text (inside of a for loop!), then L = line.split() creates a list of the words in the line. For example: Test Result L = first_words("snakes.txt") print(L) ['Cottonmouth', 'Timber', 'Black', 'Tiger', 'Copperhead', 'Eastern', 'Western', 'Eastern', 'Prairie', 'Mojave']
- A for loop is commonly used to iterate over all elements of an array.A. True B. FalseA for construct is a loop that handles a list of items. So long as there are items to process, it continues to execute. Is this assertion true or false?Write the program that has the following menu. This menu should continue to come up until the user selects Quit. 1) Add new user info. 2) Print complete report. 3) Print conditional report. 4) Sort the data by Name. 7) Quit (Option 1) If the user Selects option 1) Add new user info the following questions should be asked. After this information has been input the program should go back to the menu. This information should be stored in an array of records. Input Name -> Input Phone Number -> Input Salary-> 25000.00 (Option 2) // Use bubble sort If the user Selects option 2) Print complete report the following output should appear. This is an example report assuming three users were input. Name Phone Number Bob Tim Bob's Number Tim's Number Salary 25000.00 65000.95 (Option 3) If the user Selects option 3) Print conditional report the following question should be asked, followed by the report. This report assumes the same three user from above. Created by Paint S Print user with a salary…
- 3. lookup_friends_heights This function takes a friends database (a list of dictionaries, like the previous functions) and a list of friends names, and it returns a list of heights for the specified friends. If a given friend's name is not present in the friends database, we put a None in the corresponding slot. We assume that there will be at most one friend with a given name in the list. You may want to use nested for-loops for this function. Sample calls should look like this. >>> lookup_friends_heights([{"name":"todd","height":170},{"name": "sarah", "height":165},{"name":"dweezil", "height":175}], ["dweezil", "sarah"]) [175, 165] >>> lookup_friends_heights([{"name": "todd","height":170},{"name": "sarah","height":165},{"name": "dweezil", "height":175}], %3D ["sarah", "elíza", "dweezil"]) [165, None, 175]This program needs 3 parts Read in this attached inputFile.txt (75 50 60 80 90) from a file into your Grade array. Use a bubble sort to sort the array (Print to console each pass of the array until the array is sorted.) Write out to console the low score the high score and the average score3. lookup_friends_heights This function takes a friends database (a list of dictionaries, like the previous functions) and a list of friends names, and it returns a list of heights for the specified friends. If a given friend's name is not present in the friends database, we put a None in the corresponding slot. We assume that there will be at most one friend with a given name in the list. You may want to use nested for-loops for this function. Sample calls should look like this. >>> lookup_friends_heights([{"name":"todd","height":170},{"name": "sarah","height":165},{"name":"dweezil","height":175}], ["dweezil", "sarah"]) [175, 165] >>> lookup_friends_heights([{"name": "todd","height":170},{"name": "sarah","height":165},{"name": "dweezil", "height":175}], ["sarah", "elíza", "dweezil"]) [165, None, 175]