Programming question and answers for July 06, 2023
- Q Java the goal is to create a list class that uses an array toimplement the interface below. I'm having trouble figuring out theremove(T element) and set(int index, T element). I...
- Q An Armstrong number is a number that is the sum of its owndigits, each raised to the power of the number of its digits. Forexample, 153 is considered an Armstrong...
- Q Provide a brief (1- to 3-paragraph) analysis of the Heartbleedvulnerability. In your response, be sure to address thefollowing:Describe the cause of the vulnerability.Identify the secure coding principles that were violated.Recommend...
- Q Describe how the Heartbleed attack happens. What is the type ofthis attack? Where does the vulnerability exist? Describe thevulnerability and how it is exploited? Describe the consequences ofthe attack?
- Q Coding Project 2: UDP PingerIn this lab, you will learn the basics of socket programming forUDP in Python. You will learn how to send and receive datagrampackets using UDP sockets...
- Q Modify the program to double each number in the vector.#include <iostream>#include <vector>using namespace std;int main() { const int N=8; vector<int> nums(N); // User numbers int i=0; //...
- Q In my object java class the question is that it is possible tohave direct inputs and outputs within the setters and getters, itis highly discouraged to achieve full portability of...
- Q We are trying to use two stacks to implement a queue. Name thetwo stacks as E and D. We will enqueue into E and dequeue from D.To implement enqueue(e), simply...
- Q Part1:1.An algorithm is .a) a series of actions that solve a particular problem.b) an english description of a problem to be solved.c) the process of converting between data types.d) None...
- Q what type of research do you think is best suited for the topicarea you are interested in follows a bottoms-up or top-down fortheory verification or theory generation? Why?
- Q You need to apply multiple photoshop techniques on animage.The following techniques to be applied:Image retouchingImage stretching and equify techniqueChanging background (white)The above techniques need to be applied to an image...
- Q ObjectivesAbility to receive input from keyboardUse the printf statement as an alternative to cout.Ability to use For loopAbility to use Do-while loopProgram1:Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Create a program called CountUpBy5.Input: The program should accept...
- Q •A theater owner agrees to donate a portion of gross ticketsales to a charity•The program will prompt the user to input:−Movie name−Adult ticket price−Child ticket price−Number of adult tickets sold−Number...
- Q This violates the ISP principle in SOLID, can someone explain why and refactor? Thank you! public interface IGesture { void OnClick(); void...
- Q Discuss how demultiplexing is carried out using TCP andUDP. Please make a table, one side FULLY explaining howdemultiplexing is carried out using TCP and the other side FULLYexplaining how demultiplexing...
- Q what is the most use applications of Natural language processing, could you describe it?
- Q Develop an algorithm to demonstrate hashing using hash table withmodulo as the hash function. Assume the size of the hash table as10. To avoid collisions in case of identical keys...
- Q A customer brings you her laptop computer and tells you that itwill not connect to any Wi-Fi networks. She tells you that it wasworking yesterday, and that she was on...
- Q import tkinter as tkimport mathwindow = tk.Tk()window.title(\"RSA Encryption/Decryption\")window.geometry(\"500x500\")#screen.configure(background=\"black\")#functionsdef Modulus():p = int(p_input1.get())q = int(q_input1.get())n = p*q  open_text = tk.Label(text=\"Keep your Messages Secure\", fg =\"white\", bg = \"blue\")open_text.pack()Encryp_text = tk.Label(text=\"Encryption\", fg=\"white\",bg=\"red\")Encryp_text.place(x=200, y=35)Decryp_text =...
- Q When using scapy in python how can I get the same result as the snippit bellow? (which in run in terminal)>>> sr(IP(dst=\"192.168.8.1\")/TCP(dport=[21,22,23]))Received 6 packets, got 3 answers, remaining 0 packets(<Results:...
- Q Using form events functions to answer this question. Use theattached form html file which contains 2 html radio buttons. Whenthe first choice is chosen, display the text â€First†under thefirst...
- Q The BEST way to ensure information security efforts andinitiatives continue to support corporate strategy is by:A. including the CIO in the information security steeringcommitteeB. conducting benchmarking with industry best practicesC....
- Q Develop a recursive algorithm to find the smallest and largestelement in an array and trace the recursive function withappropriate message.using c++add comment to the code
- Q 1. (10 pts) Define the nodes in the LinkedList. Create theLinkedList using the ListNode class. Create a method to find a nodewith given value in a LinkedList. Return the value...
- Q The computer has important parts such as the input/output,memory and CPU. The human has similar attributes making it possibleto interact with computers. As an expert in Human ComputerInteraction: a. How...
- Q Write code in Python that does the following : An anagram iswhen the order of a word can be changed to create a new word(evil,live, and vile for example). Using...
- Q What type of the combinational circuit is described by thefollowing VHDL process?process (A,B)  begin  if (A = '0' and B = '1') OR (A='1' AND B='0')then  Y <= '1';  else  ...
- Q DO THIS IN C#. Design and implement a program (name itMinMaxAvg) that defines three methods as follows: Method max (intx, int y, int z) returns the maximum value of three...
- Q 3. The Hofstadter Conway sequence is defined by a(1)=a(2)=1 and (for n>2 by) a(n)=a(a(n-1))+a(n-a(n-1)). Write a function to quickly compute this sequence.>>> [hc(i) for i in range(1,20)][1, 1, 2, 2,...
- Q Write a functionCOTtupleRange(xstart,xend,xstep) that returns a tuple that has:              - as index 0 item, the value of xstart              - as index 1 item, the value xstart+xstep              - as index 2 item, the value...
- Q Of the primary areas of US concern surrounding cybersecurity,what do you think is the most important issue facing policymakers?
- Q Write a program that generates a random number between 1 and100 and asks the user toguess what the number is. If the user’s guess is higher thanthe random number, the...
- Q In this unit, you learned about some of the benefits ofweb-based applications. What are some potential disadvantages?Consider this URL: https://www.nasa.gov/topics/humans-in-space.What does each part of it mean?Can you imagine a system...
- Q I need the following C code converted to java or C++#include <stdio.h>#include <stdlib.h>typedef struct node {struct node *left;struct node *right;long data;long leftSize;} node;void btreeInsert(node *new, node **rootptr) {node *parent =...
- Q The following code must be written using matlabHow to get the elements that are different in two set withoutusing the setdiff function in matlbab?
- Q Write a program in NASM that turns a 32-bit numeric value (e.g.,0xFFFFh) and converts it to a byte array such that it can beprinted to the screen using a system...
- Q Program DescriptionWrite and test a MASM program to perform the followingtasks:Display your name and program title on the output screen.Display instructions for the user.Prompt the user to enter three numbers...
- Q c++ \"Programming For Big Data [DvcScheduleV2.cpp andStaticArray.h and/orDynamicArray.h ]Assignment 5's runtime was too slow -- a couple of minutes or so.It's because of the duplicate-checking, with over 4 billioncompares.Rewrite the...
- Q Write the code in Java:1. Create a method that displays your name in the console. Thismethod is void and takes no parameters. Make an app that runs themethod in response...
- Q Using Selection Sort on an any array of size 7, what will be theminimum/maximum number of comparisons and number of exchanges?1 for i = 1 to A.length-12 for j =...
- Q Programming ProblemDesign a program in java that can perform three differentarithmetic operations based on the user’s input.The three operations are1. Summation of integers from 1 to m2. Factorial of a...
- Q The game of Pig is a simple two-player dice game in which thefirst player to reach 100 or more points wins. How to play: Playerstake turns rolling one six-sided dice...
- Q Create a class and name it MyArray. This class must have aninternal array of integers and the consumer should specify themaximum capacity when instantiating. MyArray class must providefollowing functions:1- insert:...
- Q This assignment will give you more experience on the use of:1. integers (int)2. floats (float)3. conditionals(if statements)4. iteration(loops)Functions, lists, dictionary, classes CANNOT BE USED!!!The goal of this project is to...
- Q Discuss whether a small business environment should use aworkgroup network or a domain network setup. Describe theadvantages and disadvantages of either option.
- Q die's job is to output an error message alarmingly and terminatethe program. You may copy myfunction definition, or use your own:// The following 4 lines should be present if we...
- Q You have been requested to design a schema (as an E/Rdiagram) for the contact-tracing database. Your group is busyworking to design and field a contact-tracing database tobe able to trace...
- Q 1.6. Discuss the capabilities that should be provided by aDBMS.1.7. Discuss the differences between database systems andinformation retrieval systems.
- Q In visual Studio C++ Create a program that uses a for loop toinput the high temperature, and low temperature for each day of theweek.The high and low will be placed...
- Q Take into account robotic space exploration. Please describe whyan engineer would decide to use C or C++ over a higher levellanguage such as Python? What are some benefit an object-orientedlanguage...
- Q Q18.// This program finds the average time spent programming by a student// each day over a three day period.// PLACE YOUR NAME HERE#include using namespace std;int main(){ ...
- Q Write a method called printIsMultiple that receives apair of integers and prints true if the second is a multiple of thefirst; false, otherwise
- Q EXCEL VBAABC company gives discount as follows:Purchase > $400Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Discount rate = 5%Purchase between $300 and$400Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Discount rate = 4%Purchase >= $100 and <$300Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Discount rate = 2%Purchase <100Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â No discountPurchase = Price *...
- Q You are hired to design a database for a fitness center. As thefitness center is expanding with more than one branch, they want tocreate a database to keep track of...
- Q Q20. Using C++ style string to write a program that reads asentence as input and converts each word of the sentence followingthe rule below:For every word in the sentence, the...
- Q A multiple-choice examination consists of 20 questions. Eachquestion has five choices, labeled A, B, C, D and E. All data forthat exam is stored in a file exam.txt. The first...
- Q Write an Assembley Language.Given a number x, determine whether thegiven number is Armstrong number or not. A positive integer ofn digits is called an Armstrong number oforder n(where order is...
- Q Your (turtle) program in python must include: Create four Redturtles and four Blue turtles using one or more lists. • Start eachof the Red turtles at a different random location...
- Q Python please Questions #3, #4 and # 5 pleaseA string is one of most powerful data types in programming. Astring object is a sequence of characters and because it is...
- Q Create a new folder called CSCI130_A3_yourname. Createall of the files indicated below within this folder.For this assignment you will be creating a total of 2 classesthat meet the definitions below....
- Q KNAPSACK Optimization Problem using GreedyMethodProblem 1:Item Weight Value1 14 202 6 163 10 84 5 105 4 12Allowed weight = 24 KgProblem 2:Item Weight Value1 6 302 8 403 15...
- Q We continue from the two tables in lab3 part 2, and practice with functions and the GROUP BY statement.The data in each table should be as belowTable Product:PROD_IDPROD_NAMEPROD_PRICEPROD_VENDOR1101Table10021102Chair8031103Armchair9021104Nightstand11011105Bed20031106Dresser15031107Daybed19021108Ash Table12021109Cherry Table13021110Table...
- Q using 8 bits and 2s complement integer arithmetic, show how aprocessor would calculate 63 - 17
- Q For this question, you are given a negotiated statement ofrequirements and asked to produce a structural model.Here is the negotiated statement of requirements (NSR) for thePickMeNow System (PMNS):PickMeNow is a...
- Q What is a clocked RS Flip-flop, explain its concept
- Q Python please Questions #6 and # 7 pleaseA string is one of most powerful data types in programming. Astring object is a sequence of characters and because it is asequence,...
- Q I'm have trouble change JRadioButton and do not want to selectall at the same time just one at a time. if one of them isunselected, then set the font as...
- Q You will create a program with 3 methods. For the previoushomework with three problems, you will create a method for eachproblem.In the main method, you will declare the three arrays...
- Q Exercise 9 – Writing values from a list into a file Complete thefunction design for the write_most_frequent() function, which takes4 parameters, a string, a list of tuples, an integer, and...
- Q Write the RE for identifiers that can consist of anysequence of letters (l) or digit (d) or \"_\"but the first char must be a letter and the last charcannot be...
- Q The top-left section of the spreadsheet is designed for summarystatistics for one condition. You will calculate average sellingprices and the number of houses sold in each city (thecondition).In cell B2,...
- Q What are some deadlocks examples that are frequentlyobserved on Windows and on Linux?
- Q C ++ code that accepts any measurement in meters entered by the user through the keyboard and displays the equivalent measurement in feet on the console (1 Meters = 3.2808...
- Q Quicksort - Divider and ConquerIllustrate the operation of PARTITION on the array:A = {9, 19, 13, 5, 12, 8, 7, 4, 21, 6, 11}.Let A[1] = 9 be the pivot...
- Q 1You're entering records into adatabase, and you realize you don't have the information for one ofthe fields. What do you do?Use letters in alphabetical order toselect optionsAIn the Field Properties...
Get Answers to Unlimited Questions
Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!
Membership Benefits:
- Unlimited Question Access with detailed Answers
- Zin AI - 3 Million Words
- 10 Dall-E 3 Images
- 20 Plot Generations
- Conversation with Dialogue Memory
- No Ads, Ever!
- Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!