1- write the removeLast function which removes the last digit from a given number, if the number < 10 return the number it self. */ //removeLast :: Int -> Int //Start = removeLast 1223 //Start = removeLast //Start = removeLast 23 //Start = removeLast 9 //Start = removeLast –58545 // -58545 // 122 // 1 // 2 // 9 10
Q: 12. One scenario of cryptanalytical attack is "ciphertext only" in which the attacker has only the e...
A: There are many cryptanalyst attack ,the three scenario that need to be consider while analyzing the ...
Q: 286 to the nearest 10
A: So here we to find 286 to the nearest 10 :- Given :- 286 so as we can see , the tens place is two m...
Q: EMPLOYEE (EmplD, LName, MName, FName, Phone, HireDate, MgrNum, EType) HOUSEKEEPER (HKID, Shift, Stat...
A:
Q: How are the words "receive" and "returns" used in the suggested procedure?
A: Receive : Receiver (album), the second and last album by the band Farmer Not So John, released in 19...
Q: one-dimensional array, how do you refer to all of the elements
A: here in this question we will be discuss about what is actually meaning of 1D array and how we can...
Q: Display the reversion (also called vision) of the operating system.
A: So you ran : "cat/etc/os-release" ? This is wrong command. The corrent command to get the Operating ...
Q: all three of the procedures, and the total charges of the three procedures. 15. Dice Game Write a pr...
A: Solution: In this question, firstly we have to create the patient class which has fields, constructo...
Q: can you please answer number 4 for me 1. Create a class called Student, with the following attri...
A: Class declaration is given below: public class Student{private String studentName;private int studen...
Q: ing characteristics: 5 surfaces 1024 tracks per surface 256 sectors per track 512 bytes/sector Track...
A: Suppose a disk drive has the following characteristics: 5 surfaces 1024 tracks per surface 256 sect...
Q: What is the output of the following code. Enter the numbers with only one space between them for(int...
A: the answer is
Q: Write a query to display first name, last name, package number and internet speed for all customers ...
A: We need to write a query to display the first name, last name, package number, and internet speed fo...
Q: TOPICS: Data and Expressions MUST BE IN JAVA. PLEASE USE COMMENTS AND WRITE THE CODE IN SIMPLEST FO...
A:
Q: label1: beq $t1, $t2, label3 (23 instructions here) label2: bne $t3, $t4, label1 (60 instructions he...
A:
Q: 2. Write an application that reads the (x,y) coordinates for two points. This should prompt for and ...
A: Use a class Points to represent the coordinates of two points and then create objects and print dist...
Q: Vhat will be the impact of the inter of a smart gadget or application.
A: given - What will be the impact of the internet of things (ToT) on our everyday lives? Justify your ...
Q: Write a java script program that would generate all possible combinations for a length of 3-5 charac...
A: The solution to the given problem is below.
Q: How does neural machine translation work in the context of language translation? Like in Google Tran...
A: The explanation of the neural machine translation work in the context of language translation is exp...
Q: If you wanted to know the position of the letter v (i.e. return 2) in the String str containing the ...
A: Ans: If you wanted to know the position of the letter v (i.e. return 2) in the String str containing...
Q: Why is it critical to analyse and minimise a community's exposure and vulnerability?
A: Introduction: Local communities establish plans for immediate and long-term risk reduction by assess...
Q: What is computer network? Describe the significance of computer network in 21st centur
A: Interconnected computer equipment that may exchange data and share resources is referred to as compu...
Q: Imagine that a government wants a software program that helps to keep track of the utilization of th...
A: the answer is given below:-
Q: The code below prompts the user to enter their full name, and then converts the name to a list. Comp...
A: I give the code as per your requirement along with output and code screenshot
Q: In the following Deterministic Finite Automaton (DFA): Sı S2 1 What statement(s) correctly describe(...
A: Because of guidelines we have to answer first three MCQ 1. False 2. True 3. False
Q: Write a program that prompts the user for a radius and then prints the diameter, circumference, and ...
A: logic:- display coloured message using color code 34 for blue. read radius from user display 2*ra...
Q: What will be the impact of the internet of things (IoT) on our everyday lives? Justify your position...
A: Introduction: IoT is a network of networked, internet-connected devices that can gather and transmit...
Q: digits), state (two
A:
Q: Consider the following Deterministic Finite Automaton (DFA) with the 5-tuple of (Q,E,90,F,6): 91 q3 ...
A: A string is said to be accepted when we end at one of the final states from the initial state q0. Th...
Q: /** * This class will use Nodes to form a linked list. It implements the LIFO * (Last In First Out...
A: Here, I have to provide a complete solution to the above-given program.
Q: Binary Tree: 18,20,3,17,28,50,6,55,4,9,1 Q1)Draw a Binary-Tree Q2) if not balanced, balance it. Q3) ...
A: Below is the answer to above question. I hope his will be helpful for you....
Q: You have the IPV6 address: fe80 : 7285: c2ff: fea7: a4c7 What kind of address is this and how is it ...
A: Find the solution below of above question. I hope this will meet your requirements.
Q: 2. Using Divide and Conquer technique, sort the given number using quick sort 9,1,3,5,2,6,4
A: Quick Sort: This technique uses the divide and conquer technique, this uses the pivot to make partit...
Q: We are interested in finding outlier temperatures and comparing t run average.
A: SOURCE CODE #!/usr/bin/python3import csv CSV_FILE = input("Temperature anomaly file name:") with ope...
Q: Use the below description of a Car Club System (CCS) to answer the following questions. A Car Club ...
A: Functional Requirements are the type of requirements that tells about what system has to do. These r...
Q: Write a C program that prints the numbers 1 to 100 using 5 columns. Have each number separated from...
A: We need to write a C language program to print the numbers from 1 to 100 using 5 columns. Also, each...
Q: gorithm emonstrate, step by step, how to construct a max-heap for the list of integers 1..8] = (12, ...
A: Solution:
Q: An 8-bit register contains the Hex value A9. What is the register value after an arithmetic shift ri...
A: Hexadecimal is a position that acquires the base 16 values consisting of 16 symbols. For eg, the hex...
Q: What exactly does a grey hat hacker do?
A: Given :- What exactly does a grey hat hacker do?
Q: Who was the first to come up with the idea for a mainframe computer?
A: Introduction: The Harvard Seal According to most sources, I was the first mainframe computer. The ma...
Q: Write a C Program to demonstrate pointers to functions in a menu-driven program. The program should ...
A: The solution is given below for the above given question:
Q: What is the definition of IP spoofing? Is IP spoofing regarded as a security risk?
A: Introduction: Spoofing is a type of cyber-attack in which hackers gain access to systems in order to...
Q: Using a binary search tree, store the words and keep count of number of occurrences per word. The ma...
A: Include a header file. Take the string as input and pass it to the function of count occurrence. Ins...
Q: 1. Where do you go to connect to an OpenVPN server in Windows 7? 2. Where do you configure user acco...
A: Connecting the OpenVPN on Windows 7 do the followingfollowing:- Double click on the OpenVPN GUI i...
Q: Suppose that you are given a list of four integers (8, 7, 2, 3). Assume that the allowable operation...
A: For Search Tree, we need to know the following things. State Space: State-space is a Graph whose nod...
Q: i just want to know true or false dont write complicated process. please quickly , thanks ! 2.Abstra...
A: the answer is given below:-
Q: Create a descriptive note about Software Testing Concepts, Issues, and Techniques.
A: Introduction: The methods used to test the programme under test against the functional or non-functi...
Q: Consider we have a stack that has the numbers 4, 1, 3 stored in that order. This means 4 is on top a...
A: Stack looks like [1,2,1,7,3,1,3] (top to bottom)
Q: What is the distinction between a White Hat and a Black Hat Hacker?
A: Introduction: While white hat hackers look for and solve security flaws in a system, black hat hacke...
Q: What happens if the processor issues a cache request while a write buffer block is being sent back t...
A: Introduction: Because the cache will be idle while the writing buffer writes back to memory, it will...
Q: Write a program named guess.cpp that generates a random number between 1 and n, where n is the upper...
A: Use srand for generating different number every time and for guessing use a loop till the guess and ...
Step by step
Solved in 3 steps with 1 images
- 7- ______ is the alternate of sizeof(); function. a. strtolower(); b. strtoupper(); c. isset(); d. count();palindromes Write a function palindromes that accepts a sentence as an argument. The function then returns a list of all words in the sentence that are palindromes, that is they are the same forwards and backwards. Guidelines: • punctuation characters .,;!? should be ignored • the palindrome check should not depend on case Sample usage: >>> palindromes ("Hey Anna, would you prefer to ride in a kayak or a racecar?") ['Anna', 'a', 'kayak', 'a', 'racecar'] >>> palindromes ("Able was I ere I saw Elba.") ['I', 'ere', 'I'] >>> palindromes ("Otto, go see Tacocat at the Civic Center, their guitar solos are Wow!") ['Otto', 'Tacocat', 'Civic', 'solos', 'wow'] >>> palindromes ("Otto, go see Tacocat at the Civic Center, their guitar solos are wow!")==['Otto', 'Tacocat', 'Civic', 'solos', 'wow'] TrueIn c++, please and thank you! Write a function that dynamically allocates an array of integers. The function should accept an integer argument indicating the number of elements to allocate. The function should return a pointer to the array.
- In C++ Create a function called CopyAndInsertArray. It should take in two arrays (the first array should be of size n and the second array should be of size n+1). The function should also take in a position and a number. It should copy the first array into the second array and place the new number at the proper position. In other words, you are creating a function that inserts a value into an array.Brussel's choice def brussels_choice_step(n, mink, maxk): This problem is adapted from another jovial video "The Brussel's Choice" of Numberphile (a site so British that you just know there has to be a Trevor and a Colin somewhere in there) whose first five minutes you should watch to get an idea of what is going on. This function should compute and return the list of all numbers that the positive integer n can be converted to by treating it as a string and replacing some substring m of its digits with the new substring of either 2*m or m/2, the latter substitution allowed only when m is even so that dividing it by two produces an integer. This function should return the list of numbers that can be produced from n in a single step. To keep the results more manageable, we also impose an additional constraint that the number of digits in the chosen substring m must be between mink and maxk, inclusive. The returned list must contain the numbers in ascending sorted order.Topic: pointers, dynamic array and command line arguments Write a complete C++ program named “showHelp” that accepts command line arguments. It checks whether there is a command line argument of “/help” or“/?” or “-help” followed by a topic number. It will print out “yes, topic number(<number>) if there is one. Otherwise, it prints out “no, topic number(N/A) For example, if you run this program with correct arguments as follows, it willprint out yes and its associated topic number respectivelyshowHelp /? 101showHelp /debug /help 102showHelp /print /help 103 /verboseshowHelp -verbose -debug -help And if you run the program with invalid arguments, it will print no, in all casesshowHelp -helpshowHelp 101 /?showHelp 101 102 /help /verboseshowHelp /? /help -helpNote: command line arguments are simply an array of pointers to C-string. example code: #include <iostream> using namespace std; int main(int argc, char** argv){...}
- in C++ Write a function that allows you to modify a Planet in the SolarSystem class. You can choose to pass a Planet into this function, or have the function prompt for planet information. Either way, you need to be able to specify the Planet at a specific index to be modified. This is an example of how it could potentially look in the main: // code that declared a SolarSystem the_system// and assigned planetsPlanet p("X", 2000, 4000);int index = 2;the_system.changePlanet(p, index);In C++Using the code provided belowDo the Following: Modify the Insert Tool Function to ask the user if they want to expand the tool holder to accommodate additional tools Add the code to the insert tool function to increase the capacity of the toolbox (Dynamic Array) USE THE FOLLOWING CODE and MODIFY IT: #define _SECURE_SCL_DEPRECATE 0 #include <iostream> #include <string> #include <cstdlib> using namespace std; class GChar { public: static const int DEFAULT_CAPACITY = 5; //constructor GChar(string name = "john", int capacity = DEFAULT_CAPACITY); //copy constructor GChar(const GChar& source); //Overload Assignment GChar& operator=(const GChar& source); //Destructor ~GChar(); //Insert a New Tool void insert(const std::string& toolName); private: //data members string name; int capacity; int used; string* toolHolder; }; //constructor GChar::GChar(string n, int cap) { name = n; capacity = cap; used = 0; toolHolder = new…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: false
- // MichiganCities.cpp - This program prints a message for invalid cities in Michigan. // Input: Interactive // Output: Error message or nothing #include <iostream> #include <string> using namespace std; int main() { // Declare variables string inCity; // name of city to look up in array const int NUM_CITIES = 10; // Initialized array of cities string citiesInMichigan[] = {"Acme", "Albion", "Detroit", "Watervliet", "Coloma", "Saginaw", "Richland", "Glenn", "Midland", "Brooklyn"}; bool foundIt = false; // Flag variable int x; // Loop control variable // Get user input cout << "Enter name of city: "; cin >> inCity; // Write your loop here // Write your test statement here to see if there is // a match. Set the flag to true if city is found. // Test to see if city was not found to determine if // "Not a city in Michigan" message should be printed.…Instructions: In the code editor, you are provided with a main() function that asks the user for a string and passes this string and the size of this string to a function call of the function, preserveString(). This preserveString() function has the following description: Return type - void Name - preserveString Parameters The string Length of the string Description - this is a recursive function that prints the string repeatedly. Each time it prints the string, it excludes the last character of the string until only one character is left. This preserveString() function has already been partially implemented. Your only task is to add the recursive case of this function. Please Finish the code ASAP: This is my current given code: #include<stdio.h>#include<string.h> #define STR_MAX_SIZE 100 void preserveString(char*, int); int main(void) { char str[STR_MAX_SIZE]; printf("Enter string: "); fgets(str, STR_MAX_SIZE, stdin); preserveString(str,…PROGRAMMING LANGUAGE: C++ Write a program which has a class named FileHandlerto read StudentName, MarksObtained from the attached picture. The class should have a function which calculates grade for a student and then adds it in a new column i.e. Grade. The grade should be calculated considering the following criteria. A: 87-100, B+: 80-86, B: 72-79, C+: 66-71, C: 60-65, D: 50-59, F: 0-49 The file should be saved once grade for all students is calculated. Write the driver program for executing the task.