Programming question and answers for July 11, 2023
- Q Translate these two LEGv8 assembly instructions to 32-bit binarymachine code. Give your answer in hexadecimal.CBZ X19, exitADD X10, X19, X20exit:
- Q We assume a superscalar pipeline capable of fetching anddecoding two instructions at a time, having two separate functionalunits (e.g., one integer arithmetic and one floating-pointarithmetic), and having two instances of...
- Q EDIT*****I figured it out. I will post the solution in a bit...I could use some help with the following problem that implementsthe Abstract Factory Pattern:Consider 2 SALES RECEIPT classes: RECEIPT1...
- Q I'm looking to calculate grades that allows me to enter a numberof grades and allows me to also calculate the average using javascript collections/array list. If possible, can someone lead...
- Q Consider a hypothetical Control Unit which supports 8 k words.The Hardware contains 64 internal control signals, 16 bus controlsignals, 8 Flags and 8 branch conditions. What is the size ofcontrol...
- Q Show that the following problem i undecidable:Input: A Turing machine M. Output: Yes if M eventually haltswhen started on a blank tape, no otherwiseInput: A Turing machine M and a...
- Q Write multiple if statements: If carYear is before 1968, print\"Probably has few safety features.\" (without quotes). If after1971, print \"Probably has head rests.\". If after 1991, print\"Probably has anti-lock brakes.\"....
- Q C++ prgram:The heating system in a school should be switched on if theaverage temperature is less than 17 degrees Celsius. The averagetemperature is found from the temperatures in the Art,...
- Q Write a static method remove(int v, int[] in) that will return anew array of the integers in the given array, but with the value vremoved. For example, if v is...
- Q what resources are used when LWP is created and how do theydiffer when  HWP is created?
- Q CODE USING LISP... No other language pleasetrim-to (symbol list) Write a function named trim-to that takesa symbol and list as parameters. Return a new list starting fromthe first occurrence of...
- Q This Module is mainly to practice If ... Then ... ElseIf ...with creating a project in Visual BasicsOpen Visual Basic and create a new Project. Select Windows FormNew Project window....
- Q Run Length EncodingIt is sometimes important to minimise the space used for storingdata. This idea of data compression can be implemented in manyforms. One of the simpler techniques is known...
- Q Control Flow1. What is the difference between 10 / 3 and 10 //3?2. What is the result of 10 ** 3?3. Given (x = 1), what will be the value...
- Q Briefly explain the process of documenting the scene of acomputer-related incident
- Q With respect to graphic functions and graphics programming,discuss the black box and the system it describes.
- Q Programing lanugaue is C++Purpose of code:Plan and code a menu-driven modular program utilizing an arrayAn input file has an unknown number of numeric values(could beempty too).Read the numbers from the...
- Q How do you respond to users within your company who think thatsecurity measures just get in the way of their work?What could you do to help users view security policies...
- Q Modify the code so that it provides a web form to collect thecookie values from the users. In other words, you will add two textboxes where users will enter the...
- Q For this lab, you are to construct a mock burglar alarm. Thesystem will have three states, armed, disarmed, and alarm, twoinputs in the form of push buttons, and two outputs...
- Q Discuss what web applications are and how they differ fromother operating system based applications (include the role of IIS)Also, explore at least three vulnerabilities to utilizing webapplications on a web...
- Q Create a car class with three attributes: year, mpg, speed andlist of owners. The class also should have 2 methods calledaccelerate and brake. Whenever the car accelerates, its speed isincreased...
- Q Explain the concept of information gain in the ClassificationAlgorithms. How is it used to develop a decision tree?
- Q 2.) Postfix to infix translator (NOTE: This is NOT the evaluatoryou have already coded!) • Create a java class calledPostfixToInfixTranslator that includes a main method. • The codeyou write should...
- Q Create your own data type using a C++ structure.Assign values to a variable of that data type.Retrieve values from the variable of that data type.Description:In this lab you will choose...
- Q Allin C++ programming language1.a.) convert for loop to while loop exampleb.) convert while loop to for loop example2.) pass one dimension array(and its size) to functionexample
- Q Write a C++ program for Euclids Algorithm that keepstrack of the number of iterations (% & loop)1. Euclid’s Algorithm An alternative of the Euclidean algorithmfor finding greatest common divisors (GCD)...
- Q Write Java code to generate 100 random integers ranging from0..9, inserting each element into an ArrayList. Then search for thefirst instance of the number 3, print the position, and then...
- Q Lab 7 Â Â - Rectangleclass-Â Â (Lec. 7)1.) Create a new project andname it:Â Â Â Rectangle/* OUTPUT:Enter the width of the court: 60Enter the length of the court: 120The width of the court...
- Q The following is coded in C++. Please point out any changes orupdates you make to the existing code with comments within thecode.Start with the provided code for the class linkedListType....
- Q home / study / engineering / computer science / computer sciencequestions and answers / write a program that in c++: 1.prompts theuser to enter a positive integer, think of this...
- Q d. Utilize the codes you developed so far to calculate theposition of the maximum beam deflections a function of the beamlength (L). Vary L between 100 cm to 1000 cm....
- Q PYTHON: Write a program to continuously asks the user an scoregiven as integer percentages in the range 0 to 100. Calculate thetotal number of grades in each letter-grade category as...
- Q PROGRAM INSTRUCTIONS:1. Code an application that asks the customer for alog-in and password. 2. The real log-in is \"Buffet2011\" and thereal password is \"Rank1Bill2008\". 3. Allow the customer two (2)attempts...
- Q Your client has just purchased a new sever for their smallcoffee shop and would like you to develop a preventativemaintenance training for the staff in hopes of keeping the serverrunning...
- Q My Teacher gave this answer and we need to response this answerYou need to response this answer why you agree with it or why youdisagree and explain1. As more companies...
- Q ObjectiveYou are given a partial implementation of one headerfile, GildedRose.h. Item is a class that holds the information foreach item for the inn. GildedRose is a class that holds an...
- Q Write this program using an IDE. Comment and style the codeaccording to the CS 200 Style Guide. Submit the source code files(.java) below. Make sure your source files are encoded...
- Q JAVA - Quick Sort .txt and Return-----------------------------------------------------------------------------The program should input a .txt file like below and mustuse a Quick sort Algorithm================6 104 19 10 12 8 60 1 23================The first...
- Q C11 standard....file1.txt:DAY Blackberry Blueberry Pear Mango appleMonday 60 35 32 16 30Tuesday 44 22 34 62 54Wednesday 33 14 67 13 22Thursday 24 44 35 15 42Friday 36 43 24...
- Q CSC 231 Discrete Structures and Its Applications. (DISCRETEMATHEMATICS) (ONLY ANSWER IF YOU KNOW DISCRETE STRUCTURES. PLEASEDON'T GUESS) (This is GENERALIZED PERMUTATIONS ANDCOMBINATIONS)TO ANSWER THE QUESTION YOU HAVE TO FIRST FIGURE...
- Q 18.11 Lab: Linear diophantine equationsIn this program, you will be solving linear Diophantineequations recursively.A linear Diophantine equation is an equation in the form:ax + by = cwhere a, b, and...
- Q a splitting function, split_byWrite a splitting function named split_by that takes threeargumentsan equality checking function that takes two values and returnsa value of type bool,a list of values that are...
- Q Convert to Assembly Language M3 (please use as CMP R1,#3....)#include#includeint main(){int r1 = 3;int r2 = 15;int r3 = 0;if (r1 <= r2){ for (int n = r1; n <=...
- Q Download this file to your hard drive and follow theinstructions in the Module 9 Assignment (Word) document.Prepare two files for your post. The first file should be atext file containing...
- Q JavaCreate a method to display a menu. When this method is called itshould receive the user's name, great the user, and ask them tomake a selection. 1 - Change your...
- Q In Javaclass PassengerComparator implements Comparator for aPassengerImplement a comparator where a FirstClassPassenger precedes aCoachPassenger,. If both Passengers are of the same TicketClassthen the Passenger with the lower TicketNumber precedes thePassenger...
- Q Web Projects If you are learning a web technology, you mustcreate a new page that is web-accessible (use your individualburrow account) that includes a form with a field that allows...
- Q Many people try to describe certain changes Western civilizationis currently experiencing as a \"revolution,\" while others disagreewith these claims. Given what you've learned about thecharacteristics of previous revolutions, do you...
- Q Write a program that asks the user to enter an item’s wholesalecost and its markup percentage. It should then display the item’sretail price. For example:• If an item’s wholesale cost...
- Q 11. What is the difference between Interpreted and Compiledprogram languages? Describebriefly the advantages and disadvantages between these twocategories of language. Underwhich category the language Python falls?12. What is an identifier?...
- Q Write an algorithm to input a number n, then calculate 13 +2 3 +33 + ... + n3, the sumof the first n cubic numbers, and output the result.2-Construct a...
- Q Write a c++ code that prompts the user to enter threefloat numbers and print them in acsending order
- Q /********************************************************************************* INSTRUCTIONS ...
- Q For this assignment we're going to make another calculator. Thisone will be a simplefour function (add, subtract, multiply, and divide) calculator, butit will have state.Specifically, the calculator will keep track...
- Q Project:Given an array numbers.We define a running sum of an array as runningSum[i]= sum(nums[0]…nums[i]).Return the running sum of numbers.Example:Input: nums=[1,2,3,4]Output: [1,3,6,10]Explanation: Runningsum is obtained as follows: [1, 1+2, 1+2+3, 1+2+3+4].You...
- Q DescriptionTypically, most everyone saves money periodically forretirement. In this exercise, for simplicity, we assume that themoney is put into an account that pays a fixed interest rate, andmoney is deposited...
- Q Using pandas Read in the movies.csv into a dataframe namedmovies, display the first 5 rows and answer* Use the filter method to select the column names that containthe exact string...
- Q 5) File I/OA) Compare and contrast InputStream/OutputStream based file I/Oto Scanner/Printwriter based file I/O:B) Discuss Serialization, what is it? What are the processes andfeatures? What is the function of the...
- Q 1. How will you react if you wake up this Sunday and find alarge scale EMP has rendered all technologies unusable on theplanet?2. What technology have you used or depended...
- Q 4-5. List the junior level COSC courses (like COSC3xxx) and thename of the course. Use the Course table.4-6. Using the COUNT feature, determine whether there are duplicatenames or student numbers...
- Q Create a DFA for L = {wwR|w ∈ {0, 1}∗}. WR represents thereverse of the string. Explain your answer.
- Q Suppose you want to use Naive Bayes to perform documentclassification (binary clas-sification) using the bag of words model where we have D documentsand a total of nwords. How many probabilities...
- Q please make a program by DrRackerSuppose that we wish to add a new kind of expression known as acase of expression, which acts like a kind of switch-case orif-else-if conditional...
- Q 1. Write the code to show the current weather based ongeolocation. I am stuck and cant figure out how to show theweather. My current code is below. Please try and...
- Q Describe the Object Management Group (OMG) consortium and whatis its purpose and contribution.
- Q Using the following data set:10, 5, 2, 7, 20, 3, 13, 15, 8, 9Apply the Merge sort algorithm. [Show to sorting process of thefirst half only]Apply the Quick sort algorithm...
- Q Develop a python program to ask the user to take up thequiz(General knowledge) which has around 4 or 5 questions &choices for those questions.For each question user should have 2...
- Q The following training dataset is “reading email datasetâ€.This dataset has four features asfollows: author, thread, length, and where to read the mail.According to the features the algorithm has to predict...
- Q Design the logic for a program that has two parts:The user enters 15 numbers that are stored into an array.The program uses the array to display the numbers back to...
- Q Write a C program using system call I/O to ****NOTE YOU MUST USESYSTEM CALL I/O, meaning STANDARD I/O IS NOT ALLOWEDa) open an existing text file passed to your program...
- Q C++ coding questionFrom the text file given to you- “worldpop.txtâ€, perform thefollowing tasks using Boolean function. PS-*Write separate codesfor each task* Task 1. Display the names of the countries with:...
- Q ****NOTE YOU MUST USE SYSTEM CALL I/O, meaning STANDARD I/O ISNOT ALLOWEDWrite a C program using system call I/O to determine how manylines there are in a text file.
- Q Write a program in C or C++ that takes a number series of size n(n integers) asinput from the user, push all the numbers to the stack, and reversethe stack...
- Q Create a database for Premier League to answer Which team hasthe most corner kick in one game?What data need to be collected toenter Access?
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!