Using heap, create a java code that does the following: Create a menu that contains the following operations: 1. Add element to heap 2. Remove element from heap 3. Create max heap 4. Create min heap 5. Exit
Q: I have a simple network; what are some troubleshooting methods and network commands that I could use…
A: The process or the approach which use to identify the problem of the computer and solve that problem…
Q: Make an algorithm and flowchart of the following problem set. 3. Draw a flowchart that calculates…
A: An flowchart is graphical representation of algorithm.
Q: What exactly is the goal of artificial intelligence, and why is its implementation necessary? Please…
A: Artificial intelligence is a computer system that performs tasks that would otherwise require human…
Q: Demonstrate with the help of "Command Prompt" and Display all the files and folders in the directory…
A: The command to list all the files and directories in the current directory you are working on varies…
Q: What are the four most important characteristics that may be categorized as part of the software…
A: Answer: The study separates the 53 qualities into four categories, with the most fascinating in each…
Q: ROBLEM: Given the Logic expression X = [ (A+B) + (CC) ] [(CC) & (BOD)] 1.) Draw the Logic circuit…
A:
Q: 1) At the beginning of each week, a machine is either running or broken down. If the machine runs…
A: Dynamic programming is a computer programming technique that efficiently solves a class of…
Q: It was developed as alternative to SCSI. Select the correct response: FireWire Thunderbolt Lightning…
A: it was develope as alternative to SCSI
Q: What kinds of troubleshooting strategies and simple network commands have you utilized in the past…
A: The following are some troubleshooting methods for a basic network: - Check whether the Wi-Fi switch…
Q: what are independence variables comparing to conditional independence variables? Give 3 real-world…
A: We need to explain what are independence variables comparing to conditional independence variables…
Q: What's the difference between a software development process and a business process? Give an example…
A: Despite their apparent dissimilarity, business processes and software development processes are…
Q: Which problems were hoped to be remedied by the preliminary investigation conducted through the…
A: A preliminary investigation is a kind of investigation where police first respond to a report when…
Q: There is a difference between methodologies and the SDLC. Describe the Software Development…
A: Methodologies and the SDLC: SDLC is a process, whereas Agile is a methodology. Both must be…
Q: Why is the internet considered to be one of the most outstanding examples of ICT? Every contention…
A: The Internet is an excellent instrument for social movements. It is perhaps the most effective…
Q: Make an algorithm and flowchart of the following problem set. 3. Draw a flowchart that calculates…
A: ALGORITHM: Declare the required variables. Start the loop by taking the value of loop variable from…
Q: A user enters a list of positive integers until it enters -1 which marks the end of input and wants…
A: The program is written in C Programming. Check the program screenshot for the correct indentation.…
Q: Which code will define the size(number of elements) of an array where the name of the array is arr?…
A: Mcq.
Q: Exactly what are some of the goals of the authentication process? Analyze how various methods of…
A: Let us look at the solution. The act of identifying an individual process or entity trying to log in…
Q: The Influence That Information Technology Has Had And Continues To Have On Our Everyday Lives As…
A: Over the past few years, technology has become part of our Everyday Lives As Well As On Society…
Q: Which heuristics can you use to improve the architecture of your system so that it works better?
A: Heuristics in Design: System standing visibility Users should be able to learn about system…
Q: Alice and Bob use the ElGamal scheme with a common prime q= 131 and a primitive root a = 6. Let…
A: Key generation Common prime q=131 primary root α = 6 Bob's public key YB =3 Random integer chosen k=…
Q: We spoke about techniques and the software development life cycle throughout the semester (SDLC).…
A: Introduction: SDLC: SDLC is the practice of breaking down software development work into different…
Q: antages and disadvantages associated with using a cloud storage program as opposed to the…
A: IntroductionData is stored on the Internet by a cloud computing provider who maintains and…
Q: Cloud computing has a slew of benefits, but only time will tell which ones are the most relevant.…
A: Cloud based infrastructure has gained a lot popularity recently.
Q: How will the rise of cloud computing effect its members' ability to work together in a more…
A: Cloud collaboration: Cloud collaboration is a sort of team collaboration in which employees…
Q: When setting up accounts for regular users, Windows administrators, and Linux root users on various…
A: Concerns to be Adhered to Manage Linux/Unix Accounts Proactively Implement Least Privilege.…
Q: Q21. Make two separate plots of the function f(x) = 0.6x² - 5cos(x) + sin(x²) + 3; the first plot…
A:
Q: Why should a program close a file after it has used it?
A: Three steps that must be taken by a program when it uses file is Open the file Process the file…
Q: Determine whether the following array declarations are valid. If a declaration is valid, write…
A: Introduction : Here we have to determine whether the following array declarations are valid or not.…
Q: What are the most important features to look for in software development? Please give your opinions…
A: Description: Metrics for software development are an important part of keeping track of quality,…
Q: Make an algorithm and flowchart of the following problem set. 5. Draw a flowchart that computes the…
A: An algorithm is a step-by-step process of solving a problem. Algorithm: Start Read a number n…
Q: Which of the following statements is FALSE regarding cryptography? a. Asymmetric ciphers use the…
A: Answer: DES algorithm is an example of block cipher. Hence choice c. DES algorithm is an example of…
Q: 2. Given F(a,b,c) = a'b' + bc + a'bc'. a. Obtain the truth table of F. b. Express F in sum of…
A:
Q: List at least three system software examples and five utility software examples.
A: We have to define what is system software and utility software and give examples as well. Question…
Q: Q.3.1 Identify the type of key represented by Attraction ID in table Attraction. Explain how it was…
A: Note : please repost question 4. Only one question allowed as per guidelines. A table is a structure…
Q: Make an algorithm and flowchart of the following problem set. 4. Draw a flowchart which will read…
A:
Q: To enable students to make understand how cognitive psychology is important to when designing an…
A: answers are given below
Q: 2. Create a Crow’s Foot ERD to include the following business rules for the ProdCo company:a. Each…
A: INTRODUCTION: Crow's foot notation (also known as IE notation) is distinguished by the use of…
Q: Recognize the functions shared by all database management systems, as well as prominent database…
A: There аre severаl funсtiоns thаt а DBMS рerfоrms tо ensure dаtа integrity аnd…
Q: Describe the steps followed by the interrupting device and the CPU in the case of an interrupt…
A: Interrupts An interrupt signal is generated when a process or event requires immediate attention. It…
Q: Question 3. Show that n³ +4n² + 1 n+3 = O(n*).
A:
Q: What is the ultimate aim of research and development efforts being put into Artificial Intelligence…
A: The inquiry asks what Artificial Intelligence's ultimate goal is: Giving an overview of the AI…
Q: What exactly is the goal of artificial intelligence, and why is its implementation necessary? Please…
A: Introduction: Artificial intelligence (AI) employs machine learning and deep learning approaches to…
Q: Are the following directed graphs strongly connected or not? Explain why in detail? 3 3 4 A 2 B
A: Answer in step 2
Q: How many item/key comparisons will the standard merge function (from merge sort) take to merge the…
A: Let's understand step by step : How merge function works ? 1. Let's say Left list named as L and…
Q: Which of the following statements is NOT true, concerning the practice of cyber risk management?…
A: a) Risk appetite allows the organization to determine how much they are willing to take risks. Risk…
Q: Given a DSP system in which a sampling rate of 8,000 Hz is used and the anti-aliasing filter is a…
A:
Q: Write a Python program that will ask the user five (5) times using a WHILE Loop to input the full…
A: Your python program is given below with an output.
Q: Which of the following I/O technique is appropriate to use for wireless printer? Select the correct…
A: d.DMA
Q: How many different ways can you think of that you utilize computers and other information systems in…
A: Information systems in day-to-day life: Globally, the use of computers and information systems is…
Step by step
Solved in 2 steps
- Q.Create an interesting educational information chat box that asks the user to give an input question and then answers the question given by user with a suitable answer. It should match the question of user with a suitable answer avaliable . You can make use of list for different questions and answers. (if possible) Save two to three answers for a single question and then for random selection of elements from those answers use random choice(list) method from random module that returns a random element. Also for a user question that doesn't matches with the questions present in the chat box it should display statement like "oops i can't answer that" "sorry i am not intelligent enough" "could u please ask something else" using random method so that every time one of these statements appear **coding language python ***try using basic programming techniques in python without using arrays and pointers * * * copy paste the program itself and also the screenshot of program and output…Q.Create an interesting educational information chat box that asks the user to give an input question and then answers the question given by user with a suitable answer. You can make use of list for different questions and answers.Save two to three answers for a single question and then for random selection of elements from those answers use random choice(list) method from random module that returns a random element. Also for a user question that doesn't matches with the questions present in the chat box it should display statement like "oops i can't answer that" "sorry i am not intelligent enough" "could u please ask something else" using random method so that every time one of these statements appear **coding language python ***try using basic programming techniques in python without using arrays and pointers * * * copy paste the program itself and also the screenshot of program and output * * * use any type of data for questions such as name details of cities species etc depends on…a. The mean of a list of numbers is its arithmetic average. The median of a list is its middle value when the values are placed in order. For example, if a list contains 1, 4, 7, 8, and 10, then the mean is 6 and the median is 7. Write an application that allows you to enter five integers and displays the values, their mean, and their median. Save the files as MeanMedian.java. b. Revise the MeanMedian class so that the user can enter any number of values up to 20. If the list has an even number of values, the median is the numeric average of the values in the two middle positions. Save the file as MeanMedian2.java.
- Do not copy froom outside sources as they have different instructions. In python. please include docstring. The Strawberry Stand methods are:* init method - takes one parameter, the name of the stand; initializes the name to that value, initializes current day to zero, initializes the menu to an empty dictionary, and initializes the sales record to an empty list* a get method for the name: get_name()* add_menu_item - takes as a parameter a MenuItem object and adds it to the menu dictionary. New items can be added to the menu on any day* enter_sales_for_today - takes as a parameter a dictionary where the keys are names of items sold and the corresponding values are how many of the item were sold. If an item in the menu doesn't appear in the dictionary, then there were no sales of that item on that day. If the name of any item sold doesn't match the name of any MenuItem in the dictionary of MenuItem objects, this method should do nothing except raise an **InvalidSalesItemError** (you'll…Using phyton code: First, ask the user the following three questions and store the answers in a nested list. What is your name? What is your quest? What is your favorite color? Store at least 6 sets of responses. Example nested list: [ ['Sir Robin' , 'to find the Holy Grail' , 'red'] , ['Matt' , 'to travel the world' , 'blue'], etc...] Second, sort the list alphabetically by color and print out the results: Sample output:1. Create a .NET Class Library Maximum Implement three methods in it: a. the max method that finds a maximum among 2 integers, and displays their max b. the max method that finds a maximum among 3 integers, and displays their max c. the max method that finds a maximum in array of 10 integers and displays their max 2. Write a Console Application TestMaximum.cs that references Maximum Library. Implement the following: a. prompt the user to enter the number of integers they will provide, b. get the integers from the user c. call the Maximum library methods based on the number of integers. d. Call each of the implemented methods at least 1.
- In python. please include docstring. The Strawberry Stand methods are:* init method - takes one parameter, the name of the stand; initializes the name to that value, initializes current day to zero, initializes the menu to an empty dictionary, and initializes the sales record to an empty list* a get method for the name: get_name()* add_menu_item - takes as a parameter a MenuItem object and adds it to the menu dictionary. New items can be added to the menu on any day* enter_sales_for_today - takes as a parameter a dictionary where the keys are names of items sold and the corresponding values are how many of the item were sold. If an item in the menu doesn't appear in the dictionary, then there were no sales of that item on that day. If the name of any item sold doesn't match the name of any MenuItem in the dictionary of MenuItem objects, this method should do nothing except raise an **InvalidSalesItemError** (you'll need to define this exception class). Otherwise, it should create a new…Create a queue, size of queue will be dependent on the user. Insert the numbers in the queue till the queue reaches the size. Create a menu and perform the following function on that queue.Enqueue: Add an element to the end of the queueDequeue: Remove an element from the front of the queueIsEmpty: Check if the queue is emptyIsFull: Check if the queue is fullPeek: Get the value of the front of the queue without removing itsubject:internet fundamentals and scripting Make a Polling game. A poll has a question, an array of options from which people can choose, and an array with the number of replies for each option. This data is stored in the starter'poll' object below.Your tasks:1. Create a method called 'registerNewAnswer' on the 'poll' object. The method does 2 things:1.1. Display a prompt window for the user to input the number of the selected option. The prompt should look like this:What is your favourite programming language?0: JavaScript1: Python2: Rust3: C++(Write option number)13FINAL EXAM1.2. Based on the input number, update the 'answers' array property. For example, if the option is 3, increase the value at position 3 of the array by 1. Make sure to check if the input is a number and if the number makes sense (e.g., answer 52 wouldn't make sense, right?)2. Call this method whenever the user clicks the "Answer poll" button.3. Create a method 'displayResults' which displays the poll results. The…
- The mean of a list of numbers is its arithmetic average. The median of a list is its middle value when the values are placed in order. For example, if an ordered list contains 1, 2, 3, 4, 5, 6, 10, 11, and 12, then the mean is 6, and their median is 5. Write an application that allows you to enter nine integers and displays the values, their mean, and their median.Load your bag with some initial values, but do not fill it. Your client code should give the user the option to: display the contents of the bag using the class method “toVector” add values to the bag remove values from the bag sort the bag search for a value using their choice of either the iterative search or the recursive search - both need to be tested Allow the user to keep doing these things until they are done. Do not automatically sort the bag if the user chooses to search. Your program should give the user a message telling them they must first sort the bag before they can search.You decide what the user interface will be. Make it clear and easy to use. It can be very basic; nothing fancy. A menu driven program works well. Each value in your array should be unique - no value will appear in the array multiple times. Your array elements can be any data type – use a template class put in place in the code provided. You can write your client code to process a bag holding any…python: numpy def not_stealing(items): """ While you're shopping, you notice that some items you've picked up do not have a price tag. Do you steal them? NO! Instead, you decide to be a good person and replace them with another item that does have a price. - Items with no price will have a value of np.nan. - Replace np.nan values with a random price between $5 and $9, inclusive. - Return the average of the new prices in the array, rounded to 2 decimal places. - DO NOT REMOVE random.seed(1) Args: items (np.array) Returns: float >> items = np.array([4.63, np.nan, 3.78, 7.12, 12.35, 7.19, np.nan, 1.50, 2.41]) >> not_stealing(items) 5.66 """ #DO NOT REMOVE# random.seed(1) ############## # items = np.array([4.63, np.nan, 3.78, 7.12, 12.35, 7.19, np.nan, 1.50, 2.41]) # print(not_stealing(items)) # items = np.array([np.nan, np.nan, 6.18, np.nan, 18.42, 2.67, 9.14, np.nan, 14.32]) #…