Programming question and answers for July 17, 2023
- Q please write a C program that implements Quick Sortalgorithm.
- Q One way to determine how healthy a person is by measuring thebody fat of the person.The formulas to determine the body fat for female and male are asfollows:Body fat formula...
- Q Write a function bracket_by_len that takes a word as an inputargument and returns the word bracketed to indicate its length.Words less than five characters long are bracketed with <<>>, words...
- Q Prove the following Closure Properties with respect to ContextFree Languages.1. Show that Context Free Languages are Closed under union(∪),concatenation(·), kleene star(*).(Hint: If L1 and L2 are Context Free languages then...
- Q 1.1 Describe the Marching Cubes algorithm using pseudo-code.What are potential issues of Marching Cubes.(I need pseudo code explaination)
- Q You are implementing a brand new type of ATM that provides exactamounts of cash (bills only, no coins). In order to maximizepotential revenue an algorithm is needed that will allow...
- Q JAVA MASTERMINDThe computer will randomly select a four-character mastercode.Each character represents the first letter of a color from thevalid color set. Our valid color choices will be: (R)ed, (G)reen,(B)lue and...
- Q In C++, create a class to hold a set of strings called setTree.setTrees contain copies of the strings inserted so that the stringscannot be changed due to the fact that...
- Q Write a program in assembly language that outputs the leap yearsbetween a beginning and an ending year.1. Initialize $a0 and $a1 with the beginning and endingyears.2. Print out the leap...
- Q Based on the particle example redo the areashapes assignment toimplement the polymorphism concept (via method overloading andoverriding) whereby the user selects a shape, and the programcalculates, and displays the shape's...
- Q What problems would be solved by moving from virtual machines tocontainers?
- Q Digital LogicSimplify:F = (x’∙ y’∙ z’) + (x’∙ y ∙ z’) + (x ∙ y’ ∙ z’) + (x ∙ y ∙z)F = (x + y + z’) (x +...
- Q what is Nmap?How to use Nmap ?. what the most famous nmap orders?
- Q What is the limiting factor in determining how many input/outputports a processor can access?A: the number of bits allocated to a port instructionB: the number of bits in the port...
- Q Create a file named sales_bonus.py2. Prompt the user for the amount of sales made, convert to afloat, and assign to sales.3. Prompt the user for number of days missed, covert...
- Q What are semi-weak keys for DES? Assume that the firstpermutation output of an original key to DES is semi-weak. Describea possible attack against DES encryption? Does this attacksignificantly reduce the...
- Q Write a complete main method that does the following:Takes any number, but at least two, command line arguments whichare words (represented as strings) and will print to the consolethe number...
- Q Scenario 13â€2: Upgrading a Cluster to Windows Server2016As an administrator at the Contoso Corporation, you manage acluster used as a file server that is running Windows Server 2012R2. You do...
- Q Use C languageWrite a program that reads in a seriesof lines of input character by character (using getchar()). Thefirst line of the input contains an integer which specifies thenumber of...
- Q 1) Please find and share one sorting/searching algorithm.Explain it, and discuss its efficiency2) Please find and share algorithm about red/black trees.Explain it, give 2 real world usages and discuss its...
- Q The following code has some syntax error. Please fixed theerror. Besides, I want the output in ASCII characters. Please giveme the corrected code along with the screenshot of the output.def...
- Q write a simple program to explain vector type inc++...use comments to explain plz
- Q RecursionPart//1. Write out theoutput for eaching of following:/*Consider this function.voidmyMethod( int counter){if(counter== 0)return;else{System.out.println(\"\"+counter);myMethod(--counter);return;}}This recursion isnot infinite, assuming the method is passed a positive integervalue. What will the output be?b.Consider thismethod:voidmyMethod(...
- Q Explain advantages and disadvantages of using kafka streams VSelastic search.
- Q write a simple program to demonstrate the use ofstatic type of variables in c++...use comments to explain plz
- Q def is_one_player_game(game_type)-> bool:\"\"\"The parameter represents the type of game being played: human,human-human,or human-computer. The function should return True if andonlyif this is a one-player game.  \"\"\"
- Q Implement the minimum priority queue UnsortedMPQ (using vector)that is a child class of the provided MPQ class. The functions fromMPQ that are virtual function (remove min(), is empty(), min(), andinsert())...
- Q 2. The Fibonacci sequence is defined asf(n) = f(n - 1) + f(n - 2)with f(0) = 0 and f(1) = 1.Find f(54) by a program or maually. Note that...
- Q USING PYTHON. Thank you in advanceWrite a program that allows the user to enter a series of stringvalues into a list. When the user enters the string ‘done’, stopprompting for...
- Q Alice is going to create a notebook including the profile of allher friends. For each of her friends, she would like to keepfirst-name, last-name, cell number, and birthdate (month and...
- Q Binary Search Tree (Part 1):Note: This is the first part of a 2-part lab. Onlythis part is due on Oct 29. But please get it working or you willstruggle with...
- Q You need to combine some small pieces of chocolate (1 ounce) andsome large pieces of chocolate (5 ounces) to make a goal. Assumingyou always use as many large pieces as...
- Q A) Is it important to have a break after every case in theswitch statement?)b) Explain lain your answer by writing an example of a switchstatement and showing the effect of...
- Q Step 3: Edit MultiSplit.javaDownload the MultiSplit.java file, and open it in jGrasp (or atext editor of your choice). You will need to write a method thatwill take an array of...
- Q Write a program to allow a user to play the game Hangman. DO NOTUSE AN ARRAYThe program will generate a random number (between 1 and 4581)to pick a word from...
- Q CSC 466 Spring 2017Assignment:: A6Basic Type System---------------------------------------------------------------Your assignment: Build the basic type system- type set at declaration- consult sym-tab on var usage- build type of expression based on parts- LHS...
- Q Latest version of CSS.What is the browser requirement to view the latest version ofCSS implemented web pages? Name 1 or 2 web browser types andversions that support the latest CSS.How...
- Q This is Python programmingFocus1. Classes and Objects2. Creating objects3. Manipulating objectsThis lab maps to learning the following objectives: Write a workingprogram that creates a Class, Instances of Objects from that...
- Q Create a Python program file and . Yourprogram will draw random circles with filled and non-filled color(random colors) and rectangles, fill andnon-fill color (also randomcolors) on the canvas. At least...
- Q Please comments this C++ code and show screenshots of theoutputsmain.cpp#include<iostream>#include<vector>#include<string>#include\"BST.h\"#include\"BST.cpp\"using namespace std;std::vector<std::string> tokenize(char line[]){Â Â std::vector<std::string> tok;Â Â Â Â Â std::string word = \"\";Â Â Â Â Â for (int i = 0; i <strlen(line); i++)Â Â ...
- Q Once the form in this file is submitted, createa new paragraph that will stack on top of the existing paragraphsand will contain the data entered into the textarea. Each newparagraph...
- Q C++How to make this code take a class object instead of int for the vector queue and be able to enqueue and dequeue the object?#include <iostream>#include <float.h>#include <bits/stdc++.h>using namespace std;...
- Q What type of defensive tools can we employ to protect ournetworks?
- Q Consider the following set ofprocesses, with the length of the CPU-burst time given inmilliseconds:ProcessBurst TimePriorityArrivalTimeP11030P21112P3240P4150P5520In the above table, a smaller prioritynumber implies a higher priority. Suppose that these processes arescheduled...
- Q determine the number of high outputs for a 4 x 16decoder with active low outputs
- Q Use Java programming to implement thefollowing:Implement the following methods in the UnorderedList class formanaging a singly linked list that cannot containduplicates.Default constructorCreate an empty list i.e., head is null.boolean insert(int...
- Q Discuss the concept of parameters. What are parameters for? Whatis the difference between formal parameters and actual parameters?Give an example in Java code that illustrates formal parameters andactual parameters.
- Q (c++) the constant velocity of an object moving in straight lineis defined as r= d/t, where r is the speed, d is the distance and tis the time it takes...
- Q *****In C++***** Exercise #3: Develop a program (name itAddMatrices) that adds two matrices. The matrices must of the samesize. The program defines method Addition() that takes twotwo-dimensional arrays of integers...
- Q Open the terminal and usingvi/vim create a new script and name itlab6Insert at the top of your filea comment with your name, class and section number(e.g. #John Doe, EMT 2390L...
- Q Objective: Set up a desktop for someone who is visually impaired.How and why would you change their experience? What are the stepsyou would take to setup a desktop to help...
- Q The following table represents the average temperatures in SanFrancisco for the first threemonths of 2017 and 2018. Use Python2017 Â Â 2018Days Jan Feb March Jan Feb March1 50 52 42...
- Q In this project you will be provided a set ofspecifications to create an entity-relationship diagram and designaccompanying table layout using sound relational modeling conceptsand practices. The relationships between the entities...
- Q Explain each conceptArtificial Narrow Intelligence (ANI)Self Aware, Artificial Superintelligence(ASI)In details, please don't copy from another chegganswer.
- Q 1. Which sorting algorithm can be improved with the followingsimple optimization? During each pass, you keep track of whether aswap was made. At the end of a pass, if no...
- Q How do I add white space in the beginning of my printf statementin C? I also need the white space to be dynamic by using an intvalue as reference for...
- Q On Android Studio, create a 4 function calculator. The onlybuttons you need are 0-9, *, /, +, -, a clear, and enter button.Use StringTokenizer or String.split for the calculator code.
- Q Implement two methods, find() andreplace() relating to Binary Search Trees. Both ofthese methods must be recursive functions. The signatures for thefunctions must be: /* This method takes a tree node...
- Q Question 1 (1 point)Which of the following property describe a good software?Question 1 options:User friendlyReliableProvide the required functionsEfficientAll of aboveQuestion 2 (1 point)Software crisis is caused by the programming languageselected.Question...
- Q Write a function which lets the user enter English words. Theuser can keep entering English words as long as the user has notentered the word “exitâ€. Once the user enters...
- Q Can you please explain loop invariant for Heapsort, in whichMin-Heapify and Build-Min-Heap are correct
- Q assume n = 2^100. consider the following problem. given anunsorted list of size n you can choose to sort it or not first.after this step, you get m queries q1,...
- Q List the policies thst a small business woupd need todevelop. Include in each of these policies what its contents wouldaddress. Provide a summarry of the business, its operations, and alist...
- Q please use C++Create a class named Byte that encapsulates an array of 8 Bitobjects. The Byte class will provide the following memberfunctions:Byte - word: Bit[8] static Bit array defaults to...
- Q state the input and output of the traveling salesman problem.give the best lower bound on length of optimal tour and prove
- Q In C++Define enumeration data type menuItemName with enumerators ofPlainEgg, BaconAndEgg, Muffin, FrenchToast, FruitBasket, Cereal,Coffee, and Tea.Use an array, menuList, of the struct menuItemType, with treecomponents: menuItem of type menuItemName, menuPrice...
- Q This assignment requires you to use at least one loop and anarray. You can refer to our book and any programs you have writtenso far. Make sure that your work...
- Q For the Boolean function F = x + yz’+x’zShow the truth table.Simplify F by using k-map as SoP form.
- Q Must be written in C++ in Visualstudios communityIn this lab, you will modify the Student class you created in aprevious lab. You will modify one new data member which will...
- Q You want to identify the purpose of a malware and possibledamages that it has done to a computer network, after theexecutable file is discovered. Explain step-by-step approach thatyou will follow...
- Q 1. Load the cpus dataset from the MASS package.Use syct, mmin , mmax , cach , chmin, chmax as the predictors(independent variables) to predict performance (perf)Perform the best subset selection...
- Q Implementing a cryptosystem:Choose one of the followingcryptography techniques and implement it using any programminglanguage you prefer. Your program should provide the user with twooptions Encryption and Decryption, with a simple...
- Q Write a function matchSuit() that simulates repeatedly drawing apair of playing cards from a shuffled deck (of 52 cards) until thepair of cards share the same suit (or you run...
- Q course: routing and switching5. Configure redistribution using valid routingprotocolsCisco networkObjectivesThis assessment task requires you to demonstrate your knowledge ofbasic Routing Redistribution concepts by completing a number ofexercise questions.5. Configure redistribution...
- Q Write a convertToMetric class that has the following field:standard - holds a double, standard length value in feet.The class should have the following methods:Constructor - that accepts a length in...
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!