Example 1) In R programming language: -Create a ordinal factor named “Height” containing – high, low, mid, low, mid, low, mid, high, mid, high. -Using a logical index, create new factor of only those from “Height”" greater than low. -Replace the last index in “Height” with veryHigh and create new factor with those greater than mid
Q: A web service returns data based on the information that it receives from the client. What HTTP…
A: The client can use the "Accept" header toinform the web service of the client'spreference. The…
Q: Define function print_popcorn_time() with parameter bag_ounces. If bag_ounces is less than 3, print…
A: Coded using Python 3.
Q: Using HTML and JavaScipt, provide a script for the below screenshot. Note using the infromation…
A: Introduction: In this question, we are asked to create a web page by using HTML and JavaScript.
Q: Problem 3 Write a function buckets ('a -> 'a -> bool) -> 'a list -> 'a list list. that partitions a…
A:
Q: Sample Input 2 3 16 3 jun 3 Jin 1 Li 2 Kitty 2 Josh 3 Bob 1 Dave 2 Jose
A: #Check if name matches any name in list def checkIfNameExists(name,nameList):…
Q: Cloud computing has been around for at least two decades and despite the data pointing to the…
A: In Cloud computing, almost two decades: Despite statistics pointing to business efficiency, cost…
Q: Solve the following equations using Gaussian Elimination Method: 2x1 + 10x2 +6x3 = 4 x1 +x2 + 2x3 =…
A: Gaussian elimination (linear and polylinear algebra) solves a system of linear equations by first…
Q: Write generic ant algorithm. Describe application of particle Swarm Algorithm.
A: generic ant algorithm
Q: What is the output of: SELECT city, COUNT(id) As CountPerCity FROM employees e group by city HAVING…
A: Answer: We need to write the output of the given SQL Command . So we will see in the more details…
Q: If two Huawei S5700 switches are connected through10GEoptical modules, the connecting ports work in…
A: Here is the explanation for the above one
Q: How do you tell if binary data stored in a computer is a two’s complement number, a Gray code…
A: “Since you have asked multiple questions, we will solve the first question for you. If you want any…
Q: Given the default schema of a database:
A: Introduction:- The database is a collection of records. The DBMS is a software that is used to do…
Q: In Keil Assembly, write a program to implement a recursive function call to find the factorial of a…
A: In Keil Assembly, we need to write a program to implement a recursive function call to find the…
Q: definit_(self, lin, st, sz): # Initializing Variables self.start = st self.size = sz self.cir =…
A: Answer: We need to write the remaining code and we have done in python code and also have attached…
Q: What is main memory in a computer?
A: Solution : Random Access Memory (RAM) is the name given to a computer's main memory. RAM is another…
Q: 3. The city of Mawroke maintains a constant voter of 300,000 people per year. Apolitical science…
A: SOLUTION
Q: Simulated annealing requires a very small amount of memory, just enough to store two states: the…
A: Given: Simulated annealing requires a very small amount of memory, just enough to store two states:…
Q: class CircularArray: def __init__(self, lin, st, sz): # Initializing Variables self.start = st…
A: Here is the approach : Create the method to print the array one by one . Inside the method loop…
Q: asymmetric encryption
A: Given :- In the above question, the statement is mention in the above given question Need to…
Q: What is the longest common prefix array of the string "abbaba$"? Assume that the longest common…
A: The longest common prefix for an array of strings is the common prefix between two different…
Q: In the ETL process, one important step to process when transforming the data is to work with null,…
A: The question has been answered in step2
Q: For each number, perform the following bitwise operations. You don't have to show work for each…
A: As per the guideline, we will solve the first three subparts for you. To get the remaining sub-parts…
Q: Given the default schema of a database: CustomerInfo 123 Customerld ASC Name nac Address nac City…
A: The question has been answered in step2
Q: Come up with test cases for the RPN (RPNTest.java) to ensure it works correctly. A good way to test…
A: Java which refers to the object oriented programming languages. Java which is a high-level,…
Q: You need to write a function named shiftX. The function is described below: shiftX: takes an int…
A: The complete C++ code is below:
Q: Please answer both questions.
A: The question has been answered in step2
Q: 2. Why does FTP open a separate connection for transferring the file?
A: Answer is
Q: You may use the Java Library Queue class for Write a program to simulate checkout lines at a grocery…
A: In this question, it is asked to provide java code for this particular problem statement. The…
Q: 31...40 40 40 medium no low yes 31...40 medium medium yes 31...40 high ves medium ves no yes medium…
A: SOLUTION
Q: What is ergonomics?
A:
Q: Explain discovering cloud service development service and tools.
A: Solution: Given, Explain the discovering Cloud Services Development Services and it's different…
Q: i need run code please package cpuscheduling.in; class BubbleSort { // function to sort array a…
A: Your correct code is given below with an output.
Q: Explain Basic flow of Particle Swarm Optimizationle Compare Pso & G. A (Grenetic Algorithm).
A: Particle Swarm Optimization (PSO):- A population-based optimization technique called particle swarm…
Q: A secure MAC scheme can be constructed from any collision-resistant hash function H by choosing a…
A: Answer : True , this statement is correct.
Q: Given the default schema of a database: Customers 123 Customerld noc FirstName noc LastName noc City…
A: The SQL program for the given problem is as follows: use demo;Create table Suppliers(SupplierId int…
Q: Consider the following grammar : S a|b|(T) T T,S | S a) Whatisthetypeofthisgrammar? b)…
A: A parse tree is made up of nodes and branches.
Q: Problem 1: Working with Digital Circuits Suppose that you want to design a new flip-flop and name it…
A: The following below is the required explanation for the given question as follows:- Explanation:…
Q: Represent (−110)10 in eight-bit two’s complement notation.
A:
Q: The equals method of the Object class returns true only if the two objects being compared: None of…
A: The java.lang.Object.equals(Object obj) is used to compare the given objects.
Q: Positive integers start, stop, and step have been initialized. Write code using a loop to print out…
A: Solution- An C program is written to print out the interger from start to stop in step by step,but…
Q: Give Max-min | Max-Product Example.
A: The fuzzy composition can be defined as is crispy relation. Suppose R is fuzzy relation on X*Y, S is…
Q: uestion 4 Give the steps to set up your docker environment to complete this hw and store in…
A: Answer_____________ Docker is a software platform for building applications based on…
Q: Create a DWORD array named 'z' of size 3 using DUP operator. Leave the array 'z' uninitialized. You…
A: Code: .386 .model flat, stdcall .stack 4096 ExitProcess PROTO, dwExitCode: DWORD .data z DWORD 3…
Q: Which of the following applies to a Round Robin Scheduler is designed especially for timesharing…
A: There are various types of schedulers available in operating systems for scheduling various…
Q: This lab concentrates on learning to create and perform some basic operations on a singly-linked…
A: Answer: Our guidelines is answer the first three question from the first question .so we have done…
Q: JAVA Implement the equals method of the Arrow class. Two arrows are equal when they have the same…
A: The equals(Object obj) method of Method class compares this Method Object against the specified…
Q: For two functions f(n) and g(n), if there exist constants c, n >0 such that, for all n≥n, f(n) ≤c ·…
A: Asymptotic notations are used to measure the complexities of various algorithms.
Q: Given the default schema of a database: Orders 123 Orderld OrderDate ADC OrderNumber 123 Customerld…
A: The question has been answered in step2
Q: Given the default schema of a database: Customers 123 Customerld ADC FirstName ADC LastName ADC City…
A: What a column can include depends on its data type. Examples include integer, character, money, date…
Q: A 32-bit computer has two selector channels and one multiplexor channel. Each selector channel…
A: Solution : Only on device at a time can be serviced on a selector channel. Here select lines = 2
Example 1) In R
-Create a ordinal factor named “Height” containing – high, low, mid, low, mid, low, mid, high, mid, high.
-Using a logical index, create new factor of only those from “Height”" greater than low.
-Replace the last index in “Height” with veryHigh and create new factor with those greater than mid
Step by step
Solved in 3 steps with 1 images
- Create a PAYROLL MANAGEMENT SYSTEM IN C++ There will be two Log in cases: log in as: Admin-employer User-employee Functions of Admin Login: 1.Add new record of employee 2.Edit a record 3.Delete a record 4.Search a record 5.View the list of Employee 6.Print the salary slip Functions of User Login: 1.Search a record 2.View the list of Employee 3.Print the salary slip Note: Code should be run in Codeblocks C++. Make the code in the link as your basis: https://drive.google.com/file/d/1bKmRLh8hO2lcNHRbomOpK3YnComWZGrd/view?usp=drivesdk33. Illustrate an example of a function that returns another function in swift.34. Illustrate an example of tableview with different looking cells. 35. Illustrate an example of a stackview to be horizontal when landscape andvertical when portrait36. What is difference between computed property and stored property? 37. Illustrate an example creating a class in swift and instantiating it in objectivec.38. What is @objc39. Make a case for using JSONSerialization vs Codable and wise versa40. Difference of Let and Var in swiftCreate a PAYROLL MANAGEMENT SYSTEM IN C++ There will be two Log in cases: log in as: Admin-employer User-employee Functions of Admin Login: 1.Can add new record of employee 2.Can edit a record 3.Can delete a record 4.Can search a record 5.Can view the list of Employee 6.Can print the salary slip Functions of User Login: 1.Can search a record 2.Can view the list of Employee 3.Can print the salary slip Note: Code should be run in Codeblocks C++
- Please answer it in C ++ Follow all code styling and submission instructions as outlined for previous labs. Declare and implement a BSTNode ADT with a data attribute and two pointer attributes, one for the left child and the other for the right child. Implement the usual getters/setters for these attributes. Declare and implement a BST as a link-based ADT whose data will be Dollar objects - the data will be inserted based on the actual money value of your Dollar objects as a combination of the whole value and fractional value attributes. For the BST, implement the four traversal methods as well as methods for the usual search, insert, delete, print, count, isEmpty, empty operations and any other needed. Your pgm will use the following 20 Dollar objects to be created in the exact order in your main to seed the tree: $57.12 $23.44 $87.43 $68.99 $111.22 $44.55 $77.77 $18.36 $543.21 $20.21 $345.67 $36.18 $48.48 $101.00 $11.00 $21.00 $51.00 $1.00 $251.00 $151.00 Also, create an…write this program with c++ in (opp) Write program for a Pharmaceutical store; where attributes are medicine name, price and expiry date. These attributes can be declared and initialized. The system provides following relevant functions to the users for managing the store such as Add, Update, Delete and Insert.Write the following function in PYTHON a) display_PHU_summary() takes three input parameters, a 2D-list (similar to database), a dictionary (similar to dict), and an integer for the PHU_ID. Your function must print the following information, the id, name, city, website, and the total number of cases reported at this PHU. If the given PHU_ID is invalid, it should print a message and exit the function. >>> display_PHU_summary(database, dict, 2241) PHU id: 2241 PHU name: Kingston Frontenac and Lennox & Addington Public Health PHU city: Kingston, K7M 1V5 PHU website: www.kflaph.ca Total cases: 1 >>> display_PHU_summary(database, dict, 3895) PHU id: 3895 PHU name: Toronto Public Health PHU city: Toronto, M5B 1W2 PHU website: www.toronto.ca/community-people/health-wellness-care/ Total cases: 2 >>> display_PHU_summary(database, dict, 3800) The PHU Id is invalid
- Python Need help with code A rule has three parts: •name –a simple name for the rule (e.g., up, left, down, right) •precondition function –a Boolean function that accepts a state and returns true if the rule is applicable to state •action function –a function that accepts a state and returns the successor state obtained by applying the rule. You can use these rules to implement functions such as applicable-rule, which returns a list of the rules applicable to a given state, and successor-state, which returns the successor state for a given state and rule. Question: Encode the rules for the sliding-tile puzzle. Remember that it is easiest to consider moving the empty space up, left, down, or right. Using these rules, write routines to determine the rules applicable to a state and the successor state given a state and rule to apply. Note that you could implement these as iterators or have them return lists (or vectors) or rules and states.Define the function print_trophic_class_summary(tli3_values) that accepts a list of trophic level index values and prints a summary outlining the number of lakes in each trophic classification, in order from highest trophic classification to lowest. See the examples for the required format. Notes: Your function must print the summary, not return it. In each state line, the initial number should be formatted with width 3. (Hint: :3 will be helpful) All possible states must be included in the output, even states with zero lakes. The following list will be helpful: ['Hypertrophic', 'Supertrophic', 'Eutrophic', 'Mesotrophic', 'Oligotrophic', 'Microtrophic', 'Ultra-microtrophic'] You must include and use one of your number_in_trophic_class functions (take your pick!), plus your trophic_class function. Basically, you can start with your answer to Question 5 or 6 and add your print_trophic_class_summary function definition after your previous definitions. For example: Test Result…Need help with these assignments, I use C++. Thank you. Lab 4: Declare and implement a BSTNode ADT with a data attribute and two pointer attributes, one for the left child and the other for the right child. Implement the usual getters/setters for these attributes. Declare and implement a BST as a link-based ADT whose data will be Dollar objects - the data will be inserted based on the actual money value of your Dollar objects as a combination of the whole value and fractional value attributes. For the BST, implement the four traversal methods as well as methods for the usual search, insert, delete, print, count, isEmpty, empty operations and any other needed. Your pgm will use the following 20 Dollar objects to be created in the exact order in your main to seed the tree: $57.12 $23.44 $87.43 $68.99 $111.22 $44.55 $77.77 $18.36 $543.21 $20.21 $345.67 $36.18 $48.48 $101.00 $11.00 $21.00 $51.00 $1.00 $251.00 $151.00 Also, create an output file to write program output as specified…
- (C Language) The Fibonacci sequence begins with 0 and then 1 follows. All subsequent values are the sum of the previous two, for example: 0, 1, 1, 2, 3, 5, 8, 13. Complete the Fibonacci() function, which takes in an index, n, and returns the nth value in the sequence. Any negative index values should return -1.### Q8: Matrix Operations def create_matrix(lst): """Create matrix will take matrix represented as a list of list. And output a function which will index the input matrix Args: lst (List of List): A list of list representation of matrix. There will be more than one element of list type in lst. Returns: [function]: An indexing function. >>> matrix_index1 = create_matrix([[1, 2], [2, 3]]) # a 2 x 2 matrix. >>> matrix_index2 = create_matrix([[1, 2, 3], [2, 3, 1]]) # a 2 x 3 matrix. >>> matrix_index3 = create_matrix([[1, 2, 3], []]) # an invalid matrix """ ### Modify your code here ### Modify your code here def matrix_index(i=None, j=None): """Indexing function which will retrive (i, j) entry of the input matrix representation Args: i (int, optional): row index. Defaults to None. (0-index) j (int, optional): column index. Defaults to…For many data types and structures, how should software use pointers or references to a base class to invoke the same virtual function several times?