4. Write a program that prints all the composers in the list ['Rzewski', 'Ruggles', 'Carter', 'Stockhausen', 'Stravinsky'] whose name has at least 10 characters. >>> ========================= RESTART ========================= >>> Stockhausen Stravinsky
Q: Prove P(AUBUC) = P(A)+P(B)+P(C) − P(ANB) – P(ANC) – P(BNC)+P(ANBNC)
A: The proof has been provided in Step 2.
Q: Write a function named select-multiples value 1st in Scheme that takes an integer and a list of…
A: In the select-multiples function, we use fold to iterate through the list of integers lst. For each…
Q: Q.5 How firewalls are configured and managed?
A: Introduction: In keeping with the guidelines said in the security policy, it determines whether to…
Q: This discussion assignment examines variable scope. For this assignment, we will be examining the…
A: As clearly written the num variable in Beverage2 class is static. It can be called without creating…
Q: Given the following Binary Tree, reverse the Tree as in the diagram below. Similarly, invert the…
A: Binary Tree : A binary tree, also known as the left child and the right child, is a type of tree…
Q: For the given parameters 'P' = 3 and 'Q' = 19 find the value of 'e' and 'd' using RSA algorithm and…
A: Introduction: RSA algorithm: The RSA algorithm is an asymmetric kind of cryptography that requires…
Q: Please complete the code of binary search algorithm
A: Binary Search is a recursive searching algorithm which works on sorted arrays where the search space…
Q: Media outlet that use two or more modes of communication of their costumers.Do a comparative…
A: Let's see the answer:
Q: In Java Create a class DoWhileEvent3, write code that ask the user to enter a positive or negative…
A: We need to write a Java code for the given scenario.
Q: Q.13 What is authentication? Explain various methods for authentication.
A: Authentication techniques are used to verify identity. The authentication of authorised users…
Q: Q.4 Discuss different standards related to information security.
A: These question answer is as follows
Q: Write an algorithm to print all ways of arranging eight queens on an 8x8 chess board so that none of…
A: We have eight queens that must be arranged on an 8x8 chess board so that no two of them share the…
Q: ld of Krebs Consulting is in the process of making a recommendation to a client regarding the…
A: Lets see the solution.
Q: question 3: 3. Create a program using function and tuples that will return the following given a…
A: ALGORITHM:- 1. Declare and initialise as string. 2. Pass it to the function. 3. Print the result. 4.…
Q: the HR department needs the department name, manager first name, manager last name, and job title.…
A: SQL: SQL stands for Structuref Query Language. It is used to access and manipulate the database…
Q: 1. Let's suppose there is an organization with two departments with each department requiring 120…
A: Let's suppose there is an organization with two departments with each department requiring 120 host…
Q: In Java Create a class WhileEvent3, write code that asks the user to enter a positive or negative…
A: Solution: Given, Create a class named WhileEvent3. take user input as a string value and take…
Q: Explain RSA algorithm used for public key cryptography.
A:
Q: Q.1 What is security? Explain need of security in computer technology.
A: We have to explain, what is security, and the need of security in computer technology.
Q: What is PGP? Explain operations of PGP.
A: Solution PGP - Pretty Good Privacy PGP is an email encryption scheme. It only requires the client…
Q: Please do it with regular expression. Don't use loops please. Do fast, I have no time left Write a…
A: The program is written in Java. Check the program screenshot for the correct indentation. Please…
Q: O What is the difference between a DFA and a NFA? the following automata is a NFA and not a DFA.…
A: Here is what's the difference between the NFA and DFA?
Q: For the given parameters 'P' = 3 and 'Q' = 19 find the value of 'e' and 'd' using RSA algorithm and…
A: The steps include in the RSA algorithm Choose two large primes p, q Compute n=p*q, ϕ(n)=(p-1)*(q-1)…
Q: IPv4 address is a 32-bit string of numbers separated by periods. Which addresses are valid IPv4…
A: We need to identify the valid IPv4 addresses out of given ones.
Q: class String ( private: int size; // the actual size of the string (number of characters) char* str;…
A: the code is an given below :
Q: Synopsis In this assignment, you will have a parent process that will create children processes to…
A: SynopsisIn this assignment, you will have a parent process that will create children processes to…
Q: what us the genus and differentia of the word OBJECT CODE? using formal definition
A: Genus-differentia:- An intensional definition that consists of two components is called a…
Q: Let A = [a] be a m × m matrix, B = [aij - i] be a m × m matrix. Give the formula to calculate AB,…
A: In a m x m matrix, the number of rows and the number of columns both are equal to m. A=[aij] where i…
Q: 5. Consider the following Knowledge Base and use resolution to derive the conclusion: "Every coyote…
A: The question has been answered in step2
Q: allowed language: C language
A: I have provided C CODE along with CODE SCREENSHOT and OUTPUT SCREENSHOT-----------------
Q: Let C be a binary linear code. Show that either every member of Chas even weight or exactly half the…
A: Let's see the solution.
Q: import java.util.ArrayList; public class Main { public static void main(String[] args) { Market…
A: The question has been answered in step2
Q: Select which network to which each IP address is a part of, either Network A or Network B. Network…
A: For Network A - Number of IP address assignable is found by subtracting 24 from 32 which is 232-24 =…
Q: Can't a relational database include connections like this, as shown by the examples?
A: A many-to-many relationship is the name given to the situation in which numerous records from one…
Q: Write Image Recognition python code using opencv.
A: Basically, object recognition is a modern computer technology related to image processing, deep…
Q: How to do the kSum in O(1), i only can do it like public long ksum(int k) { long sum = 0; for(int…
A: Here I have written a python code that takes input from the user and asks the user how many elements…
Q: Questions regarding the 4-bit right shit register built in the experimental part. A) How many bits…
A: 4-bit right shift register: A shift register (serial-in parallel-out type) is made up of a…
Q: What is PGP? Explain operations of PGP.
A:
Q: similarities between weebly and cloud computing?
A: Cloud computing It is the conveyance of various administrations through the Web. These resources…
Q: Define a recursive function merge: Ord a => [a] -> [a] -> [a] that merges two sorted lists of values…
A: Lets see the solution.
Q: ifndef SEQUENCE_H #define SEQUENCE_H #include // provides size_t namespace…
A: C++ which refers to the object oriented programming languages. C++ also provides the cross platform…
Q: Imagine that your current working directory within a terminal only contains a single, empty folder,…
A: There are various commands used in linux to perform to various kinds of operations.
Q: software development methodologies the topic is car printing system Analyze the system. Write the…
A: UML diagram (Unified Modeling Language): The UML Class diagram is a visual notation used to create…
Q: 2. With the growth of internet service providers, a researcher decides to examine whether there is a…
A: Dear student, the answer is provided below.
Q: C++ Program Subject: Compiler Construction Create a function named Lexical with no arguments. And…
A: ALGORITHM:- 1. Create a enum TokenType and function Lexical. 2. Call it from the main function. 3.…
Q: List 5 most important agility principles. Why do you think they are important?
A: Introduction: The software development process takes a sizable part of the entire software…
Q: Q. 12 Explain TLS.
A: TLS stands for Transport Layer Security.
Q: How to Define the test cases in coding?
A: Define the test cases in coding
Q: "Although you always wanted to be an artist, you ended up being an expert on databases because you…
A: We are given the artist and related details and we need to write SQL statements corresponding to the…
Q: the Thompson construction that is able to recognize the sentences generated by the expression…
A: The solution is an given below :
['Rzewski', 'Ruggles', 'Carter', 'Stockhausen',
'Stravinsky']
whose name has at least 10 characters.
>>> ========================= RESTART
=========================
>>>
Stockhausen
Stravinsky
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
- Can you write a new code in C ++ language with the values I sent you, just like this output? There are two files named group1.txt and group2.txt that contain course information and grades of each student for each class. I will calculate each course average for each group and show in simple bar graph. Use "*" and "#"characters for group1 and group2, respectively. I will see the number -999 at the end of each line in the input files. This value is used for line termination and you can use it to verify that you have arrived at the end of the line. The averages of each group should also be calculated and printed at the end of the file. All of the results will be printed to the file. There will be no screen output. Sample output is shown in Figure 1. Group 1: CSC 80 100 70 80 72 90 89 100 83 70 90 73 85 90 -999ENG 80 90 80 94 90 74 78 63 83 80 90 -999HIS 90 70 80 70 90 50 89 83 90 68 90 60 80 -999MTH 74 80 75 89 90 73 90 82 74 90 84 100 90 79 -999PHY 100 83 93 80 63 78 88…Can you write a new code in C ++ language with the values I sent you, just like this output? There are two files named group1.txt and group2.txt that contain course information and grades of each student for each class. I will calculate each course average for each group and show in simple bar graph. Use "*" and "#"characters for group1 and group2, respectively. I will see the number -999 at the end of each line in the input files. This value is used for line termination and you can use it to verify that you have arrived at the end of the line. The averages of each group should also be calculated and printed at the end of the file. Group 1: CSC 80 100 70 80 72 90 89 100 83 70 90 73 85 90 -999ENG 80 90 80 94 90 74 78 63 83 80 90 -999HIS 90 70 80 70 90 50 89 83 90 68 90 60 80 -999MTH 74 80 75 89 90 73 90 82 74 90 84 100 90 79 -999PHY 100 83 93 80 63 78 88 89 75 -999 Group 2: CSC 90 75 90 75 80 89 100 60 80 70 80 -999ENG 80 80 70 68 70 78 80 90 90 76 -999HIS 100 80 80 70 90 76 88 90 90…Instruction: It should be a C++ PROGRAM INCLUDE THE HEADER FILE, MAIN CPP, AND BSTREE.CPP There is a real program developed by a computer company that reads a report ( running text ) and issues warnings on style and partially corrects bad style. You are to write a simplified version of this program with the following features: Statistics A statistical summary with the following information: Total number of words in the report Number of unique words Number of unique words of more than three letters Average word length Average sentence length An index (alphabetical listing) of all the unique words (see next page for a specific format) Style Warnings Issue a warning in the following cases: Word used too often: list each unique word of more than three letters if its usage is more than 5% of the total number of words of more than three letters Sentence length : write a warning message if the average sentence length is greater than 10 Word length : write a warning message if the…
- C++ ONLYTomorrow is the closing ceremony for the 2022 World Cup, and Cody and his friends want to know who the top scorer of the tournament is. John and the others insist that it Lionel Messi who is the top-scorer (scoring 10) but Cody, a Ronaldo fan, is stubborn and decided to make a list of all the players who scored goals and order them randomly. He then must look for the highest number and see if that number is higher than Messi’s goals. Input the number of players then input the number of goals scored for each. Print "Not Messi" if the highest goals exceed 10 and "Okay, fine, it's Messi" if it doesn’t.Enter·the·number·of·players:·4 Goals·score·by·player·#1:·7 Goals·score·by·player·#2:·2 Goals·score·by·player·#3:·5 Goals·score·by·player·#4:·1 Okay,·fine,·it's·MessiIn C++ Write a program that prints the count of all prime numbers between A and B (inclusive), where A and B are defined as follows: A = 12345 B = A + 5000 Note: A prime number is any number, greater or equal to 2, that is divisible ONLY by 1 and itself. Here are the first 10 prime numbers: 2, 5, 7, 11, 13, 17, 19, 23, and 29. Rules: You should first create a boolean function called isPrime and use that function in your program. This function should take in any int and return true if the number is prime, otherwise, return a false. In the main body of your program, you should create a loop from A to B (inclusive) and use isPrime function to determine if the loop number should be counted or not. Your program SHOULD NOT PRINT the individual prime numbers. You can print them for your own testing purpose, but in the final submission, comment out such print statements. Your program SHOULD ONLY PRINT the answer -- which is a number. Do not print extra characters in your answer (E.g.…Python: On-line Grocery Shopping Use grocery py in Canvas to start your program. It contains two dictionaries: stock and price EX: stock key/value pairs EX: price key/value pairs tomato soup 20 tomato soupP 1.85 cheese 10 cheese 3.99 Create a two functions: first called grocery_cost(food), where food can be one item or a list of items from the stock and price dictionaries, the second is called stock_check(stock_list) where a store manager can check if stock numbers are at a minimum value. The first function loops through the argument food, notes the price, checks the stock, calculates and prints the total cost and changes the stock number. You will need to use a for statement to loop through the items in food and an if statement to check and update the stock. The second function loops through each item in the stock dictionary and uses an if- statement to determine if stock is less than 5.
- In C++ write a program that generates three random numbers and then find the min number among the generated values, using these three functions: void getrandnum(int &n1, int &n2, int &n3), int findMin(int n1, int n2, int n3), and void printResult(int n1, int n2, int n3, int min). Make the main function drive all these functions.Help me homework c++ The shots file holds a list of shots (imagine some hitscan weapon in a video game like a shotgun or something). Each shot has an origin and a direction. The origin is an (x,y) coordinate, like (5,3). The direction is a slope and whether the shot is traveling along that slope or in the reverse. A slope of "Vertical" means that the shot is travellingstraight up and down. The format is:x_location y_location slope(either a number like 2.1 or a non-number meaning"Vertical") forwards(1 meaning forwards, 0 meaning backwards) 0 0 0 00 0 0 10 0 Vertical 00 0 Squirrel 110 10 -1 1-10.1 -100.01 2.1 0 The first line is a horizontal line shooting left from the origin (0,0).The second line is a shot also travelling horizontally from the origin, but forward along the x axis instead of backwards.The third line is shooting straight down out of the originThe fourth line is shooting straight up out of the origin (any non-number means Vertical, not just Vertical)The fifth line is…In C language / Please don't use (sprint) function. Write a function fact_calc that takes a string output argument and an integer input argument n and returns a string showing the calculation of n!. For example, if the value supplied for n were 6, the string returned would be 6! 5 6 3 5 3 4 3 3 3 2 3 1 5 720 Write a program that repeatedly prompts the user for an integer between 0 and 9, calls fact_calc and outputs the resulting string. If the user inputs an invalid value, the program should display an error message and re-prompt for valid input. Input of the sentinel -1 should cause the input loop to exit. Note: Don't print factorial of -1, or any number that is not between 0 and 9. SAMPLE RUN #4: ./Fact Interactive Session Hide Invisibles Highlight: None Show Highlighted Only Enter·an·integer·between·0·and·9·or·-1·to·quit:5↵ 5!·=·5·x·4·x·3·x·2·x·1·x··=·120↵ Enter·an·integer·between·0·and·9·or·-1·to·quit:6↵ 6!·=·6·x·5·x·4·x·3·x·2·x·1·x··=·720↵…
- Write a C++ program that simulates online shopping. Declare a variable cart to be an empty Array. The program should have a loop that continues as long as the user wants to shop. Each time through the loop read in the name, price, and quantity of the item the user wants to add to the cart. After adding an item to the cart, the cart contents should be printed. After the loop print a "Please pay ...” message with the total price of the items in the cart.please code in python Assume you own a small cafeteria with very limited menu and you want to automate the orders. You have a list of menu items, a list with the price of these items. The number of elements in both lists should be the same. The program then asks the customer how many elements he wants from each item, then it should summarize the order of the customer and announce the price to pay. You can use the function from the previous exercise to check that the user enters a non-negative quantity each time.Assuming that we have:MENU_ITEMS=['karak','tea','coffee']PRICE_LIST=[2,1,5]You should get a sample run similar to that:How many karak do you want? 3How many tea do you want? 2.5Please enter valid quantity.How many tea do you want? -2Please enter valid quantity.How many tea do you want? 0How many coffee do you want? 1Your order is: - 3 karak - 0 tea - 1 coffeeYour total bill is 11 QAR.python: def shakespeare_position(role, section): """ Question 2 - Regex You are reading a Shakespeare play with your friends (as one frequently does) and are given a role. You want to know what line immediately precedes YOUR first line in a given section so that you are ready to go when it is your turn. Return this line as a string, excluding the character's name. Lines will always begin with the character's name followed by a ':' and end in a "." or a "?" Each line is separated by a single space. THIS MUST BE DONE IN ONE LINE. "" Args: role (str) section (str) Returns: str section_1 = 'Benvolio: By my head, here come the Capulets. Mercutio: By my heel, I care not. ' + 'Tybalt: Gentlemen, good den - a word with one of you. Mercutio: And but one word with one of us?' >>> shakespeare_position('Tybalt', section_1) 'By my heel, I care not.' >>> shakespeare_position('Mercutio', section_1) 'By my head, here…