Create a function(or you can do this on your main function) that users input a string, interger1 and integer2 (index, length) and output the substring based on index and length. For example the user will have to put Example 1) hello world my friend 14 7
Q: Write the function of crossbar switch?
A: In this question we need to explain the functions of crossbar switch.
Q: Which email protocol allows an email client to read mail stored on the mail server? IMAP4 ● TCP SMTP…
A: Protocol:- Protocols are consented procedures and regulations for sharing information via electronic…
Q: What input must be provided to the following “ for Loop With Sum” fragment for it to display 182?…
A: In the given above program, you can try the hit and trial method also to get the 182, or…
Q: Describe the function of the inside the von Neumann model. a) A processing unit is a device used for…
A: Describe the function of the inside the von Neumann model. a) A processing unit is a device used for…
Q: What are the four tasks that each router carries out?
A: Router: A router is a network device used to forward data packets. It reroutes data packets between…
Q: hat is the relationship between InventoryItem and Book? A.- Dependency B -…
A: A database management system (or DBMS) is essentially just a computerized data management program. A…
Q: How can NFA and DFA be differentiated?
A: Basically both are types of Finite automata and accepts only regular language but let's understand…
Q: Please provide an example that works for all 3 sub-questions
A: Given functional dependencies are, If A -> B then B -> A If AB -> C and A-> C, then…
Q: Why is cloud scalability so difficult to comprehend? How does cloud computing increase with demand?
A: Introduction: Let's use an everyday example to clarify. Nowadays, everyone has a phone. Smartphones…
Q: PYTHON PROGRAMMING ONLY PLEASE Use inheritance to create a student object and inherit from your…
A: Below is the program implementation in python, further comments are included in program for better…
Q: Modeler to model any FUNCTIONAL PERSPECTIVE part of the registration process and include both…
A: The solution is an given below :
Q: Are sessions really secure? Are there any risks involved? What are the pros and cons of using…
A: We need to discuss: 1. Are sessions really secure? 2. Are there any risks involved? 3. What are the…
Q: Do you have a preferred network architecture for practical use? If yes, then which?
A: Computer network architecture is defined as the physical and logical design of software, hardware,…
Q: What kind of storage structure does Android employ?
A: We know that every project in Android includes a manifest file, which is AndroidManifest. xml,…
Q: What distinguishes Sequential Access from Direct Access? For illustration
A: Direct Entry: The value is immediately available in this form of access thanks to the index. The…
Q: You are the director of information and technology for a business that routinely hires student…
A: Tools for systems management are the solutions that facilitate the enterprise-wide execution of…
Q: True or False? You can use a dependency relationship to represent precedence, where one model…
A: This question comes from Database Management System which is a paper of Computer Science. Let's…
Q: In this task you are required to write a function that will generate a column array (a variable…
A: Here is the c++ code of the above problem. See below step for code.
Q: Based on the above s SquareCode, generate a code fragment “firstTriangle” in your main() that reads…
A: The required code is as follows #include <iostream> using namespace std; int main() { int…
Q: Let A1, A2, and A3 be attributes in a relation R. If both of these functional dependencies hold: A1…
A: A functional dependency (FD) is a relationship between two attributes.
Q: 4. For each of the following functions, indicate the class (g(n)) the function belongs to. a) √(10n²…
A:
Q: what are the characteristics of Azure Domain? There are alternatives for Microsoft. What is the…
A: introduction: Microsoft Azure was designed to be a combined tool suite that incorporates a variety…
Q: What is the significance of an active bit? What is the worth of a bit that has been disabled?
A: Number Representation: The computer system operates using just the binary form, which consists of…
Q: Explain the differences between IoT and M2M using a Health Band as an example. Compare the major…
A: Definition: The Internet of Things (IoT) is being increasingly used in the healthcare industry for…
Q: How does an operating system (OS) function? What occurs when the operating system, software, and…
A: Operating System "OS" A program that manages all other application programs in a computer after it…
Q: What does overflow indicate for unsigned numbers?
A: Unsigned numbers: Positive numbers that are not signed. Numbers that are not signed do not need an…
Q: d. 01101111 11100011 OC TC e. 11101101 11110001
A: d. One's Complement: 01101111 + 00011100 ------------- 10001011 Now take the 1’s complement of…
Q: Numerous professions and industries have been altered by the advent of digital technology. What does…
A: Start: In particular, the study seeks to understand how information technologies impact those in the…
Q: Describe a database management system and its constituent parts in a few sentences
A: According to the definition, a Database Management System (DBMS) is a technology solution for…
Q: Compute time complexity of Sequencial Search algorithm using Python language implementation. Explain…
A: Answer is
Q: What are the most recent breakthroughs in infrared technology? What does the term "multimedia"…
A: Infrastructure refers to the organization's facilities and services. Typical infrastructure such as…
Q: e function of crossbar switc
A: Solution - In the given question, we have to write the functions of crossbar switch.
Q: Big data is a word used to describe voluminous amounts of data. What business challenges does big…
A: Introduction : What is Big Data : Big Data is a body of information that is enormous in volume and…
Q: Why is normalized form often used to store floating-point numbers? What are the advantages of…
A: The normalised version provides a unique representation for a number and allows maximum precision…
Q: How may physical and virtual networking devices be configured and managed? What sort of network…
A: Virtual network devices: A virtual device that is defined in a domain and linked to a virtual switch…
Q: n a relational schema, relationships between relations (or tables) are created using _______.…
A: A relational schema is a set of interrelated relational tables and related elements. All base…
Q: What is translation software and why is it required? Describe its many varieties
A: Given: Define the Translation software and their requirements. Also provide different types of…
Q: You are the director of information and technology for a business that routinely hires student…
A: Definition: The tools for operating distributed systems using computer systems on an enterprise-wide…
Q: Programming language: C++ Implement a main function that profiles the performance of insert (See…
A: <code>#include &lt;iostream&gt; #include &lt;ctime&gt;#include…
Q: Give four instances of interfaces for external disks.
A: Answer:-
Q: How is SEH used for hidden flow management?
A: 'SEH (Structure Exception Handling) Structure is represented by the initials SEH. Structured…
Q: Any attributes that allow us to identify unique rows (tuples) in a given relation are known as super…
A: ANSWER: Any attributes that allow us to identify unique rows (tuples) in a given relation are…
Q: Create a use case diagram for the DLSL hotel reservation system. The processes and procedures are…
A: USE CASE Use case is portrayal of steps is activities between a user or entertainer and a product…
Q: Take a look at the role and importance of a company's commission for the investigation of abuse of…
A: The authority abuse commission (CIAA) The Commission for the Investigation of Abuse of Authority…
Q: Provide at least one explanation for running an application in the cloud, which may result in a…
A: Computing on the Cloud: The term "cloud computing" refers to the on-demand availability of computer…
Q: pute time complexity of Binary Search algorithm using Python language implementation. Explain your…
A: In algo, Binary search is an efficient search algorithm to search any key in a sorted data. This…
Q: Name three types of mental illnesses associated with internet addiction. Describe two ways to reduce…
A: Internet: Internet is a interconnection of computer networks that uses internet protocol to…
Q: In Javascript, Given an array of fast food restaurants, return a new sorted array ranked by the…
A: function sortBySatisfaction(restaurants) { let satisfaction = restaurants.map(restaurant => {…
Q: What are the disadvantages of utilizing attribute grammar to define the whole syntax and static…
A: Introduction: However, if you are going to use the Grammar Check, you should be aware of both the…
Q: A description of the Soft Systems Methodology must be provided (SSM)
A: A computer system is a "complete" computer including the hardware, "primary" operating system…
c code
Screenshot and output is must
Step by step
Solved in 3 steps with 1 images
- Python task You must write a function control (p_nr) that calculates and returns the control digit in a 10-digit social security number if you send in the first 9 digits in the form of a string. The rules for calculating the check digit in a social security number are as follows:The numbers are multiplied alternately by 2 and 1 and then the products are summed. For a two-digit product, the sum of its numbers is calculated. The sum is then subtracted from the nearest higher tens to obtain the check digit.To calculate the check digit for the social security number with the first 9 digits 811218987, perform the following setup: 8 1 1 2 1 8 9 8 7 2 1 2 1 2 1 2 1 2 16 1 2 2 2 8 18 8 141 + 6 + 1 + 2 + 2 + 2 + 8 + 1 + 8 + 8 + 1 + 4 = 44The check digit is 50-44 = 6 # test personal_number = input () control_digit = control(personal_number) print(control_digit)in c language Write a program which performs the following actions: Write the header of the C program Write the beginning of the main function Initialize a string called first_string with the constant value "C programming is nice**" using a string pointers Initialize a string called second_string with the constant value "C language is difficult" using a string pointer Display first_string and second_string in two consecutive lines Display a message that shows if the two strings have the same length (hint: use sizeof). Assume now that both strings have the same size. Write only three statements to swap the two strings’ contents (swap means the content of the first string becomes the content of the second string and vice-versa) Display again the two strings to check whether they have been swapped Write the correct symbol to close the main functionIn c language Using function strtod(), Create a character string that contains the following string: “78.3% is the average success rate” Divide this string into double and display the rest of the string The output will be: The original string is: 78.3% is the average success rate The extracted double value is: 78.3 The remainder of the string is: % is the average success rate
- Questions: Computer-Assisted Instruction) The use of computers in education is referred to as computer- assisted instruction (CAI). Write a program that will help an elementary school student learn multiplication. Use the rand function to produce two positive one-digit integers. The program should then prompt the user with a question, such as How much is 6 times 7? The student then inputs the answer. Next, the program checks the student’s answer. If it’s correct, display the message "Very good!" and ask another multiplication question. If the answer is wrong, display the message "No. Please try again." and let the student try the same question repeatedly until the student finally gets it right. A separate function should be used to generate each new question. This function should be called once when the application begins execution and each time the user answers the question correctly. PLEASE IN C++ LANGUAGE// write a function that takes the input string and reverses it// example// argument: Hello// return: olleHfunction reverseThisString(string){ } // write a function that takes the input string and switches all uppercase characters to lowercase and lowercase charcaters to uppercase// example:// argument: Hello World// return: hELLO wORLDfunction swapCase(string) { } //convert array of numbers from farenheit to celcius// example:// argument: [23, 32, 41, 50, 59]// return: [-5, 0, 5, 10, 15]// hint: use Array.mapfunction toCelcius(array){ } //write a function that takes an input array and returns an array of booleans (>=75) or fail (<75)// example:// argument: [20, 30, 50, 80, 90, 100]// return: [false, false, false, true, true, true]// hint: use Array.mapfunction passOrFail(array){ } //write code that loops through the two variables returns an array ['2 is zwei', '3 is drei', '4 is vier', '5 is fünf', '6 is sechs']// example:// return: ['2 is zwei', '3 is drei', '4 is vier', '5 is…LISP Function help please LISP Programming only A function that generates a random day of the week, then displays a message saying that "Today is ... and tomorrow will be ...". Then use the built-in function random first to generate a number between 0 and 6 (including). The expression (random) by itself generates a random integer. You can call it with one parameter to return a value within the range from 0 to the value of the parameter-1. For example, (random 10) will return a value between 0 and 9. Next, use the number generated at the previous step to retrieve the symbol for the day of the week from the list. Use the built-in elt. Extract the symbol-name of the day first, then apply the built-in function capitalize to it. Use the result in the princ function call, and do the same thing for the next day. Make the function return true (t) instead of the last thing it evaluates, to avoid seeing the message printed more than once.
- In C programming language: Write a function that takes 3 int arguments and returns the largest of the 3.C Programming Language Write a function that takes 2 strings, word1 and word2 as parameters. The function must return if,starting from word1, by only deleting some characters you can get word2.Example: word1: pineapple and word2:nap result: true; word1: orange, word2: one; results: true;word1: cyberspace; word2: peace, result: falseFunction Name: compliments Parameters: answer1 - a boolean (True or False) representing whether the user is "smart" answer2 - a boolean (True or False) representing whether the user is "awesome" answer3 - a boolean (True or False) representing whether the user is "fun" Description: Write a function that outputs a string of compliments based on the adjectives selected by the inputs. Use the inputs True and False. The function should return the string “You are” concatenated with the compliments that are true. The three compliments should be: "smart" "awesome" and "fun". If none of the compliments are true, print the string “Goodbye.” instead. Test Cases: >>>compliments(True, True, True) You are smart awesome fun. >>>compliments(False, True, False) You are awesome. >>>compliments(False, False, False) Goodbye.
- In C programming language Question (Strings) Write a function find_Substring() that finds a substring into a string. Pass array s1 and s2 to this function and prints if the substring is present or not. Expected Output 1: Enter string This is a javascript Enter substring script The substring is present Expected Output 2: Enter string This is a javascript Enter substring Jscript The substring is not presentDomino's Time Function Name: dominosTime() Parameters: N/A Returns: None Description: During the summer, you ordered a lot of food from Domino's. Pizzas are $12, an order of pasta is $6, and chicken wings are $8. Write a function that asks the user how many of each food item they would like, and then print a response telling them what their order to- tal will be. The order total should be an integer. >>> dominosTime() How many pizzas do you want? 3 How many orders of pasta do you want? 2 How many orders of chicken wings do you want? 2 By ordering 3 pizzas, 2 orders of pasta, and 2 orders of chicken wings, your order total comes to $64.PYTHON Problem Statement Implement a function which takes two arguments: the first is a string and the second is a single character (as a string). This function should move every instance of the given character in the string to the end of the string, and then return (do NOT print) the final string. NOTE: Only write code within the function. You do not need to utilize the "input()" function. The autograder passes inputs directly to the function as arguments, and the checked output is the returned value from the function. Sample Input "hello how are you?", "o" Sample Output "hell hw are yu?ooo" Starter Code def move_character(word, character):