Computer Science Use Assembly programming language to solve the following problems using: • Uses imul and loops to find the following expression. X= 5!; • Use call DumpRegs statement to display registers values. Use Comment to explain how your code is working.
Q: (B) Add a class named Square.java Give it private attributes double side and String color • Make a c...
A: Given The answer is given below. Below is the required code in java and sample output:
Q: Is a monochrome printer able to produce colour?
A: THE ABOVE QUESTION THAT IS MONO CHROME PRINTER THAT ABLE TO PRODUCE COLOUR IS ANSWERED BELOW
Q: epresent the following decimal numbers in binary using 8-bit signed magnitude, one's omplement and t...
A: Here in this question we have given four decimal number and we have asked to find thier sign magnitu...
Q: Using hash tables of a Map data structure you will write. Write your application by following the st...
A: Cryptographic maps are useful: The data structure has numerous baskets, each of which corresponds to...
Q: Given the below Tesla class, update the class to inherit from the Comparable interface and also writ...
A: An abstract class can have implemented methods whereas an interface could contain only abstract meth...
Q: Write two address instructions to evaluate first six terms of Fibonacci sequence. Compare with zero ...
A: The computer works on the instructions provided to it. The instructions provided to the computer con...
Q: Write a JavaScript Program to generate an random string generated from alphanumeric characters The s...
A: Required:- Write a JavaScript Program to generate a random string generated from alphanumeric charac...
Q: Prove that the following grammar is ambiguous: → → + | → a | b | c
A: Given :- Prove that the following grammar is ambiguous: <S> → <A> <A> → <A>...
Q: Let Σ = {a, b} be an alphabet and let · denote concatenation. Compute (ba · ε) · abb, where ε is the...
A: Given: Let Σ = {a, b} be an alphabet and let · denote concatenation. Compute (ba · ε) · abb,where ε ...
Q: Write 10 lines of PSEUDOCODE about "your sport or hobby" for java and Write pseudo code for 2 tests ...
A: Below i have answered:
Q: Consider the following directed graph. H A F В E D 1. Perform depth-first search with timing (DFS-wi...
A: DFS: Depth first Search or Depth first traversal is a recursive algorithm for searching all the vert...
Q: Home Menu FAQ Contact WELCΟΜΕ ΤΟ DELIGHT 1000/
A: The Answer is in Below Steps
Q: For the following question: Let Σ = {a, b} be an alphabet and let · denote concatenation. Compute (b...
A: The concatenation of two or more numbers is the number formed by concatenating their numerals.
Q: efined, show that f ◦
A: It is defined as,
Q: Create lookup functions to complete the summary section.
A: Include the header files. Inside the main function take the array of elements. Pass to lookup functi...
Q: Draw the Gantt chart for the following software development processes: Problem/ Business analysis R...
A:
Q: In Java Determine the output of the following code. Place a box around your answer. int i = 30, j...
A: Output for the above java code
Q: Ask the user to enter a number between 1 and 20. If they enter a number outside of that range, print...
A: Use a switch with all 20 cases along with default case which will handle the out of range case So al...
Q: What is the difference between a monochrome display and a multicolor display?
A: your question is about What is the difference between a monochrome display and a multicolor display?
Q: Construct a dfa that accepts the language generated by the grammar S- abS\A, A ba B, B aA|bb.
A:
Q: Suppose you have a RISC machine with a 2.7 GHz clock (i.e., the clock ticks 2.7 billion times per se...
A: The answer is
Q: In this code which part will go main.java file and which part will go unsortedArrayAccess.java file....
A: I give the code along with output and code screensht=ot
Q: Below is how the arrays are represented ARRAY1[] = [1, 5, 6, 6, 9, 9, 9, 11, 11, 21] Here length o...
A: Solution Source code of the java "main.java" public class Main { public static void main(Stri...
Q: Generate random matrices of size n ×n where n = 100, 200, . . . , 1000. Also generate a random b ∈ R...
A: Scripting language Random Number: The stochastic component in Programming language defines a range o...
Q: This question concerns the DES IP box. Please enter all answers as strings of 0's and 1's. Conside...
A: Solution ::
Q: Suppose you have a RISC machine with a 2.7 GHz clock (i.e., the clock ticks 2.7 billion times per se...
A: The answer is given below:-
Q: Host A sends a 1500-byte packet to Host B. What is the transmission delay (in ms) of the packet from...
A: The answer is
Q: Create a program called staffSalary using GUI Java and add a class named Staff that will determine t...
A: The given program is a GUI based JAVA program which determines staff salary calculated based on sev...
Q: You are tasked to create software for a machine that prints designs on textile or fabric. Different ...
A: You are tasked to create software for a machine that prints designs on textile or fabric. Different ...
Q: 9. Let M = ({90, 41:42}; {a,b}, 8, qo; {q1}) be the NFA given by the state diagram: (a) Construct th...
A: We need to construct transition table and check for acceptance for the given NFA.
Q: NW Q3) IP addressing operates at the network layer (Layer 3) of OSI, IP addresses must be able to id...
A: The answer is given below:-
Q: c++ I'm trying to write a method that just like this int top() { if (q1.empty()) ...
A: Solve the warning: ========================================================================== the va...
Q: Write a program to manage a set of graphical objects based on the commands in a specified file. This...
A: Code: HLine: public class HLine extends VectorObject{ private int xLen; //Constructor p...
Q: I Need to write a program based on the following Java program PercolationEstimation.java that uses b...
A: PercolationEstimation.java:- Solution is given below:-
Q: Why is least privilege so crucial? Why should employees rotate jobs, separate duties and take mandat...
A: INTRODUCTION: The principle of least privilege, often known as PoLP, is an information security the...
Q: Develop a PL/SQL block that would go through all the employees from EMPLOYEES table who work in depa...
A: Solution SELECT * FROM departments where department_id =90; BULK COLLECT Clause for Selecting Multip...
Q: In classification learning, a classifier is presented with a set of Instances that are already class...
A: Describe classification learning and its instances describing two characteristics of a dataset with...
Q: Returm float code digit Fraction digit Exponent other digit digit digit digit Whole Number other oth...
A:
Q: Create a program to input the quantity and price of 5 products named P1, P2, P3, P4, and P5. Then di...
A: Create a JAVA program to input the quantity and price of 5 products named P1, P2, P3, P4, and P5. Th...
Q: a) Use MATLAB to evaluate the complex number (3+ j4)(5+j2) z = i) (3+ j6)(1+ j2) (3+ j6)(6+ j4) +7+ ...
A: A complex number is the sum of a real number and an imaginary number.
Q: ello, I want an expert rogramming code tha epends on an external
A: Given Hello, I want an expert programming code that depends on an external indicator, and the order ...
Q: In java
A: Java code is giving below-
Q: C program for the longest common array of 2 arrays. Use the: function void longestMutualSequence(in...
A: so we have to write a C program for the longest common array of 2 arrays. and we have to Use the: fu...
Q: Complete the doctring. def average_daily_temp(high_temps: List[int], low_tem...
A: The objective is to complete the doctring.
Q: Exercise 7: Convert the DFA below into 1) a regular expression 2) a regular grammar 1
A: 1) DFA to Regular Expression: Above DFA:- Where s0, s1, s2, s3 in circles represents the remainders...
Q: Procedure 2. - Define a function named procedure2 () that will be called from main () function, the ...
A: #include <stdio.h> void procedure2(int N){ for(int i = 1; i <= N; i++) { for(i...
Q: munication tasks are generally organized into three independent layers. What are the names of these ...
A: Question Communication tasks are generally organized into three independent layers. What are the ...
Q: F(A,B,C)= (A+B+C)(A+B+C)?
A: Logic Gates are used as building blocks in the digital system. It is an electric circuit which is ha...
Q: Write a program to calculate the area between the curve and the X -axis for f(x) = sin(x) * cos(x) o...
A: Find the python code below.
Computer Science
Use Assembly
• Uses imul and loops to find the following expression.
X= 5!;
• Use call DumpRegs statement to display registers values. Use Comment to explain how your code is working.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- WRITE THE PROGRAM IN ASSEMBLY LANGUAGE USING LC-3 STIMULATOR ALL THE METHODS SHOULD BE WRITTEN IN SUBROUTINES ONLY Modify the Calculator program to include the following functions. 1. Display a menu of the following options at startup Enter a 1 to 3 digit integer for push D - pop and display top element P - display top element but do not pop (Peek subroutine Print the top element to the console but do not pop it.If empty, display message indicating empty stack.) L - print all elements on the stack without any pop (List subroutine Print all elements on the stack to console. Do not pop any elements.) H - display number of elements currently on the stack (Height subroutine Display the number of elements on the stack as an integer. Include "N elements on the stack" output.) C - clear stack X - Halt M - display menu + - pop top two elements, add them, push result - - negate the top element * - multiply top two elements and push resultComputer Science QuestionIn input you are provided with two words of the same length. Each word contains only lower-case alphabets. A shift operation will remove the first character of a word and add the same character at the end of that word. Your goal is to develop a python program that outputs the number of shift operations required on the second word to maximize the length of the longest common prefix of both the words.Test Case:5ccaddbddccOutput:3Code using C++ Apply Fuctions and Arrays Instruction: 1. Create a Library System that allowed students to borrow and return books. 2. Ask for inputs like Name, Year Level, Student Number, Course, Number of books borrowed, date borrowed and due dates. 3. For each student, they can only borrow upto 5 books. The system should input the Title of the books as well. 4. The system should detect if any information is not provided by the user, it also detect if more than 5 books are borrowed. 5. The system can determine if the returned book/s is/are late and should give penalty of 5.00 per each book. 6. Make sure to provide a summary of all the inputs and reminders for the student.
- Coding Assignment 1.Suppose, the value of three registers X, Y, Z are given along with the number of key bits. You need to generate the key accordingly. (Use Java or Python) **Print important variables inside your code for debugging purpose. Make necessary assumption where needed.Instruction: Write the IPO chart and Pseudocode of the following problems. Please follow the format of example given below. Example: Problem: Ana wants a program that will compute the total payment of her house she bought for 800,000 pesos including its tax. The tax rate is 20%. Input x=800000 rate=0.20 Process Output total payment 1. Calculate the tax by multiplying x to rate. 2. Calculate the total payment by adding x to tax. 3. Display the total payment. Pseudocode 1. The value of x is 800000, the value of rate is 0.20 2. Calculate the tax by multiplying x to rate. 3. Calculate the total payment by adding x to tax. 4. Display the total payment. Problem 1: Write a program that will calculate the discount and sale price of a dress marked as $40. The discount rate is 25%. Problem 2: You deposit $1000 into a bank account paying 7% simple interest per year. You left the money for 3 years. Write a program that will display the interest earned for 3 years and the amount at the end of those…Python Help Build a simple calculator that allows the user to specify a sequence of arithmetic operations (add, subtract, multiply, divide) and performs each of them on two operands. The program should have five functions, function for every operation and a main function. When the user enters 1, the addition function should be called, when the user enters 2 the subtraction should be called, when the user enters 3 the multiplication function, and when the user enters 4 the division function division. The program should keep running asking the user to perform operation after operation until the user enters 5. When the user enters 5 the program should exit. Show the analysis, specifications and flowcharts of the two problems Use documentation by commenting your code Write your code in the script mode
- Please see the attached image for solving the problem Code in Assembly language using LC-3 HERE IS A STARTER CODE .ORIG x3000 AND R0, R0, #0 AND R1, R1, #0 AND R2, R2, #0 AND R3, R3, #0 LEA R0, INTR ; ADD INSTRUCTIONS HERE FIN HALT; {TRAP 25} ;data INTR .STRINGZ "Enter an integer between 1 and 9: " EQFIVE .STRINGZ "The number entered is = 5" LFIVE .STRINGZ "The number entered is < 5" GFIVE .STRINGZ "The number entered is > 5" ATOINT .FILL #-48 .ENDUsing Python - Square Instruction: Create the following function and call it to the main function. drawing_squares(center, length_sides, rotation, shade) It draws a square with: the given center (two-integer tuple) length_sides (side length - float) angle of rotation (float, degrees), and; shade (color - three-integer tuple) Notes: Remember to convert the angle in degrees to radians within the function. You are only allowed to use cos, sin, and pi from the math library. You may use the ImageDraw and Image from the Pillow Library. You are not allowed to use the Turtle Library - as well as rotation() and polygon().PART 2: REPETITION CONTROL STRUCTURE (WHILE, DO-WHILE) Instruction: A mathematician named Ulam proposed generating a sequence of numbers from any positive integer N greater than 1 using the following procedure: If N is 1, stop. If N is even, replace it with N/2. If N is odd, replace it with 3 * N + 1. Continue with this process until N reaches 1. Here are some examples of the Ulam sequence for the first few integers. 2, 1 3, 10, 5, 16, 8, 4, 2, 1 4, 2, 1 5, 16, 8, 4, 2, 1 6, 3, 10, 5, 16, 8, 4, 2, 1 Create a java program using while/do-while that accepts as input an integer value N (assume N> 1) and prints out the Ulam sequence that begins with the input value N. Sample Input/Output: Depicted below are sample outputs when the program is executed (the items in bold characters are input from the user, while the items in bold italic are calculated and printed by the program): Input N: 14 Ulam Sequence: 14, 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1 Input N: 5 Ulam…
- Subject Topic: Logic Formulation using Flowchart and PseudocodeProblem: LoopingCreate a program flowchart that generates and displays the Fibonacci sequencenumbers of n(as input). In Fibonacci, the current third number is the sum of two previousnumbersSample input/output dialogue:Enter a no. 9Fibonacci series : 1 1 2 3 5 8 13 21 34Please put level 1 flow chart and pseudocode here....debug and rewrite the code1. Use C PROGRAMMING LANGUAGE ONLY 2. Use RECURSION type of program 3. Copy and paste your code(no need screenshot) 4. Screenshot the output 5. It should be USER-DEPENDENT 3. Write a C propram containing a recrsive function that will get the whole number quotient resull of dividing wo.integers n and m. (Example if ne and m- 3, 4/3 #1. Output 1)