LEASE USE C PROGRAMMING LANGUAGE ONLY AND NEED FOR USER INPUT.
Q: II. Pushdown Automata. Draw a PDA that recognizes the following languages. All machines should be…
A: In this question we will answer about PDA.
Q: Welcome to ADVISE! SIGN IN Username (School email): Password (A#): SIGN IN CANCEL
A: Answer: WE have done code in HTML and CSS based on the given layout of Registration form and also we…
Q: Question # 1 : Compute the complexity of the following implementations : a) for (int i = 0; i <= n;…
A: Answer : a) variable i go from 0 to n and variable j go from 1 to n-1 so total complexity of the…
Q: Prove that a binary tree that is not full cannot correspond to an optimal prefix free code
A: Solution- To ensure that binary tree T is not full, let's assume that T is a binary tree that…
Q: Provide a directory structure starting with htdocs as the website root directory for an application.…
A: I have used Unix operating system that consists of root directory as well as other directories. The…
Q: Comment on data dependency in matrix and Vector multiplication.
A:
Q: Analyze complexity of the QUICK SORT and apply to sort the list U , N , I , V, E, R, S, I, T, Y in…
A: Quicksort is a very efficient sorting technique that splits a large array of data into smaller…
Q: In the RSA, Bob is considering the following choices for the values of p,q and e: p = 13, q =5, e =…
A: 1. In the RSA algorithm, Bob is considering the following choices for the values of p,q, and e: (i)…
Q: List the factors that distinguishing evaluation techniques.
A:
Q: nswer in linux grep command can be used for this purpose. The required command will be as follows,…
A: Description: 1- grep command is used to search the content from the file. 2- The purpose, grep…
Q: = 10^6 μs 1m = 60 x 1s log n Vn nlogn n² 2. For each function f(n) and time t in the following…
A: FUNCTIONS:- Functions are mathematical relationships between inputs and outputs. In other words, a…
Q: Please answer the ques with showing the code: (There is only 1 ques with 2 steps ) Q1: Step 1:…
A: NOTE: As per the company rules we are supposed to answer only first question please post your…
Q: Use the strategy of the decimal to binary conversion implemented in Project 4, and the bit shift…
A: Answer: We have done code in python with the correct output and also attached the working code
Q: For each number, perform the following bitwise operations. You don't have to show work for each…
A: Solution: a) Given, signed 8-bit binary number = 1110 0101 Performing right sift- To Perform…
Q: Please follow instructions Using the IEEE standard for the 32 bit float register, place this decimal…
A: According to the information given:- We have to follow the instruction in order to use IEEE standard…
Q: 3- The below program has errors, trace the below program and mention the errors: #include int…
A: The error is of % d, i.e. for printing int we have to use %d only we can't use %c . Below is your…
Q: Q.26 What Influence does the social environment in which you work have on your Interaction with the…
A: The answer is given below.
Q: Use dictionary comprehension, write one line python code to take this tuple x= (('a', 1), ('b', 2),…
A: Here in this question we have asked to write a python code which take tuple as input and output…
Q: in order to achieve respect for user privacy which among the following may not be an acceptable data…
A: After finishing their studies, all educated individuals will be able to find a job with a good…
Q: Explain bag of words model.
A:
Q: Write a query to display the average number of days a book is kept during a checkout (Figure…
A: Solution: Given, Schema structure is-
Q: Define feedback
A:
Q: python: T1 = ( a, b, c) T2= a, b, c where a, b, c are numbers. Question 17 options:…
A: The above question that is python: T1 = ( a, b, c) T2= a, b, c where a, b, c are numbers. among…
Q: How is parallelism achieved in CUDA?
A:
Q: , C , O , M , M , U , N , I , C , A , T , E in alphabetical ord
A: Steps to solve quick sort Step 1 – Select the highest index value that has a pivot Step 2 − Take the…
Q: Search the internet for the terms Paessler and PRTG, and look for a feature list. Give examples of…
A: The question has been answered in step2
Q: 3. Consider a 4 x 3 matrix A: 1. A (:,1) *A (:,2) A = II. A (:,1). *A (:,1) 10 6 3 a) Determine the…
A: We need to find Matlab code for the given scenarios.
Q: Based on the following Entity-Relationship Diagram with the following requirements: There are…
A: Answer: 1) ER-Diagram:-
Q: 9.3 (Recommended: Using Composition Rather Than Inheritance) Many programs written with inheritance…
A: :: Solution::class BasePlusCommissionEmployee { private CommissionEmployee…
Q: This question concerns block cipher modes. We will use a simple affine cipher, which can be…
A: Python Code def ofb(string): xs = list() ys = list() ss = list() for character in…
Q: Will you fill in the missing code in Marie Assembly language.
A: Solution- An complete marie code with their instuction is given as-
Q: 5. Write a script that will print the following multiplication table: 1 2 1
A: MATLAB: Approach and Logic: Here, we will use nested loops to print required numbers. We want…
Q: 21. Suppose we have 2 bytes of virtual memory and 2° bytes of physical main memory. Suppose the page…
A: In this question, it is asked to calculate the Number of pages in virtual memory Number of page…
Q: Code doesn't work need help fixing it in C It s
A: The compiler saying "getMoveCol is not defined" because you didn't write the function properly or…
Q: iN PYTHON PLEASE 1. Write a line of code to get an int from the user and assign it to variable x.…
A: Python introduction:- Python can simulate real-world entities since it is a general-purpose…
Q: Write a program using Python Language. Looping Problem: If you have values 1-10, print these…
A: Answer: Algorithms: Step1: we have run the loop from 1 to 11 Step2: then we check n is even of odd…
Q: Write a void function that takes a linked list of integers and reverses th order of its nodes. The…
A: Answer:
Q: A dapper young decision maker has just purchased a new suit for $200. On the way out the door, the…
A:
Q: Given the following expression, what is the equivalent in POS canonical form? Y = ~ABC +A~BC +A~B~C
A: given expression Y = ~ABC +A~BC +A~B~C
Q: Programming Exercise 6-4 w Instructions ..... Write a program named CheckZips that is used by a…
A: C# A component-oriented, object-oriented programming language is C#. C# is a natural language for…
Q: The Atbash cipher is a type of monoalphabetic cipher formed by taking the alphabet and mapping it to…
A: This question comes from Cryptography which is a paper of Computer Science. Let's discuss it in the…
Q: f(x)=-3x + 4
A: f(x)=-3x+4 is bijective or not
Q: II. Pushdown Automata. Draw a PDA that recognizes the following languages. All machines should be…
A: Answer: We have drawn the PDA for the given Language and we have explain each and every point…
Q: identify one or more tools you would choose for monitoring your network. List the tools and explain…
A: An application or software known Network Monitoring Tool collects important data from various…
Q: How to allocate processor for different sub problems?
A: Operating system dispenses resources when a program need them. At the point when the program ends…
Q: Is it possible to perform encryption operations in parallel on multiple blocks of plain- text in CBC…
A:
Q: Is it possible to perform encryption operations in parallel on multiple blocks of plain- text in CBC…
A: Answer the above question are as follows
Q: What properties must a hash function have to be useful for message authentication?
A: Message Authentication:- Data integrity, or the ability of the receiving party to confirm the source…
Q: This has to be in C++ You have decided to use your skills to develop a program that will allow you…
A: C++ programming language : Performance, efficiency, and flexibility of usage were the design pillars…
Q: Consider a desktop publishing system used to produce documents for various organizations. a. Give an…
A: “Since you have posted a question with multiple sub-parts, we will solve first three subparts for…
Step by step
Solved in 4 steps with 1 images
- 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}], ["sarah", "elíza", "dweezil"]) [165, None, 175]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_heightsC[{"name":"todd","height":170},{"name":"sarah","height":165}, {"name":"dweezil","height":175}], ["sarah", "eliza", "dweezil"]) [165, None, 175] 4. class definition for Friend For the next version of the friends database (coming soon!), we want to use classes rather than dictionaries. Define a Friend class , where each Friend object…randdf.py -> using "sys.argv" Create a program called randdf.py that has a function that takes two integer arguments and prints a Pandas dataframe. The two arguments will correspond to the number of rows and number of columns, respectively. The dataframe should be filled with random integers from 0 to 100. Set your random seed to 56.
- C language. Function write the arraylist_sort function This generic function sorts an array list using the given compare function. l An array list compare Pointer to the function which compares two elements If you cannot write down a generic function which works for all types, write down a function which sorts resturants. If you cannot use function pointers, you can write down multiple functions which sort using different criteria.Q1:- Passing by reference (z, j )using pointers when a= 54 , b=45 show me (1) a ,b before swap.(2)a,b after swap. call me your status. * 1 Add fileProgramming language: C/C++, Java, Python, or any other advanced programming languages Project Description: the file “IntegerArray.txt” included in this project folder contains all the 100,000 integers between 1 and 100,000 (inclusive) in some order, with no integer repeated. Your task is to compute the number of inversions in the file given, where the i-th row of the file indicates the i-th entry of an array. Because of the large size of this array, you should implement a divide-and-conquer algorithm.
- In C++ Write a code snippet to automatically increase the size of the dynamic array prayerBox[10] if it becomes full while reading data in from a file.phyton Topics: list and list processing You will write a program to read grade data from a text file, displays the grades as a 5-column table, and then print the statistics (min, max, median, and median). You can assume that the input file only one number per line. You can assume the user always enter a file that exists. The median is the value in the middle of a sorted list. To sort a list, use list.sort() function. It’s computed as below. For a list of odd length, the middle number is just the length divide by 2. For the list, [1,2,3], the median is 2 since 2 is in the middle of the list. The middle index is 3//2, which is 1. Remember that // is the integer division operator. When the length of the list is even, there are two middle numbers. The median is the average of the two middle numbers. For example, [1,2,3,4], the median is (2+3)/2 = 2.5. The two middle indexes for this example are (4//2)-1 = 1 and (4//2) = 2. Functions you need to write: read_grades() Prompts…c++ data structures In this problem, you need to implement Merge sort algorithm. You need to perform following tasks: Generate 1000 random numbers using srand (defined in cstdlib) in between 0-1000 You can set any seed for random number generation Apply Merge sort algorithm on this these numbers. After sorting you need to write sorted numbers in simple .txt file.
- In C++: Trace all the passes for the selection sort on the array: { 22, 65, 9, 15, 55, 27, 33, 45}File Handling with Array: C++ Language: Write a c++ program to read the data from the file into array and do calculation. Note: Take a general word problem and write syntax which will use in all problems related to file handling with array.C++ Progrmaing Instructions Redo Programming Exercise 6 of Chapter 8 using dynamic arrays. The instructions have been posted for your convenience. The history teacher at your school needs help in grading a True/False test. The students’ IDs and test answers are stored in a file. The first entry in the file contains answers to the test in the form: TFFTFFTTTTFFTFTFTFTT Every other entry in the file is the student ID, followed by a blank, followed by the student’s responses. For example, the entry: ABC54301 TFTFTFTT TFTFTFFTTFT indicates that the student ID is ABC54301 and the answer to question 1 is True, the answer to question 2 is False, and so on. This student did not answer question 9 (note the empty space). The exam has 20 questions, and the class has more than 150 students. Each correct answer is awarded two points, each wrong answer gets one point deducted, and no answer gets zero points. Write a program that processes the test data. The output should be the student’s ID,…