Assignment

Solved: Using 8-bit arithmetic throughout, express the following decimal numbers in two's complement binary form

4.31 Using 8-bit arithmetic throughout, express the following decimal numbers in twos complement binary form: a) (d) -25 (3)-127 (d)-25 (a)-4 (g)-127 (d o () -128 (f) -128 4.32 Perform the following decimal subtractions in 8-bit twos complement arithmetic. Note that some of the answers will result in arithmetic overflow. Indicate where overflow has

Thank You

Using 8-bit arithmetic throughout, express the following decimal numbers in two’s complement binary form: (a) -4 (b) -5 (c) 0 (d) -25 (e) -42 (f) -128 (g) -127 (h) -111 Perform the following decimal subtractions in 8-bit two’s complement arithmetic. Note that some of the answers will result in arithmetic overflow. Indicate where overflow has

Expert Answer

Read more

Solved: Explain with details what is Compiling, Linking and loading in Java Virtual Machine.

Explain with details what is Compiling, Linking and loading in Java Virtual Machine.

Expert Answer

 

Compiler:

Compiler is used to source code in java is translated into the instruction set of Java Virtual Machine.

Read more

Solved: Write a java program that inputs an integer greater than 0 and calculates the sum of the squares of the numbers from 1 to that integer.

Write a java program that inputs an integer greater than 0 and calculates the sum of the squares of the numbers from 1 to that integer. For example, if the integer equals 4, the sum of the squares is 30 (1 + 4 + 9 + 16). The program should repeat this process until the user wants to quit. An input value less than or equal to 0 signals the end of the data. Note: one way to calculate this would be to use the formula n(n+1)/2. You must write this program without using that formula.

Expert Answer

 

import java.util.*;
import java.lang.*;
import java.io.*;

Read more

Solved: Describe the long short-term memory neural network architecture (LSTM). Give examples of applications.

Describe the long short-term memory neural network architecture (LSTM). Give examples of applications.

Expert Answer

 

long short-term memory neural network:-
1.Long Short-Term Memory (LSTM) networks are a type of recurrent neural

Read more

Solved: please answer all of the questions below and explain it, I will rate the answer thank you!

Matlab Questions:

please answer all of the questions below and explain it, I will rate the answer thank you!

Page IV: Questions 29-32: Recursion The following is a recursive Matlab function, function [out] =midtermRec (n) if le (n,2) out = 1 elseif eq(n,3) out = 2 else + midtermRec (n-3) out = midtermRec (n-1 ) end end 29. (1 point) What will be value assigned to out by the command >> out- midtermRec (1)? a. C. d. 3 30. (1 point) What will be the value assigned to out by the command >> out midtermRec (4) a. b. 3 C. 4 d. 6

Show transcribed image textPage IV: Questions 29-32: Recursion The following is a recursive Matlab function, function [out] =midtermRec (n) if le (n,2) out = 1 elseif eq(n,3) out = 2 else + midtermRec (n-3) out = midtermRec (n-1 ) end end 29. (1 point) What will be value assigned to out by the command >> out- midtermRec (1)? a. C. d. 3 30. (1 point) What will be the value assigned to out by the command >> out midtermRec (4) a. b. 3 C. 4 d. 6

Expert Answer

 

function [out] = midtermRec(n) %determine function of midtermRec with n param
if le(n,2) % it will check whether the value n is less than or equal to 2, if so then the out value is 1.

Read more

Solved: 2. High School Scheduler In this problem you will design and implement a program that tells you the time of each class.

C programming

2. High School Scheduler In this problem you will design and implement a program that tells you the time of each class. The program will prompt the user for the class and you will output the time. For example, you will be provided with the following text file. Class Schedule: Class Time Physics 15:30 Calculus 9:00 Biology 14:30 Study Hall 10:30 Chemistry 11:30 All of your code should be placed in one file, highSchoolScheduler.c; the program accepts the file name as a command line argument so that it is executable like this: ./highSchoolScheduler schedule.txt. In the input text file the times will be in military times, and you will have to convert them to regular time. Your converted time should be displayed either in PM or AM.

Sample Output: 3 What class do you want to search for? Physics Physics is at 3:30 PM

What you will submit via handin: highSchoolScheduler.c.

schedule.txt///////

Class Schedule

Class    Time

Physics    15:30

Calculus   9:00

Biology    14:30

Chemistry    11:30

Expert Answer

Read more

Solved: For the following two-variable function: z = 2x sin(x) + xy cos(2y) i. Plot a 3D mesh for z, for the range: -2 lessthanorequalto

sp e,JsShow the sequence of the executed command at the MAILAB mpt and the generated results. r the following two-variable function: z = 2x sin(x) + xy cos(2y) i. Plot a 3D mesh for z, for the range:-2Sx 3 2 and-3 sy 3 in steps of 0.1, and add labels for ii. iv. Plot a 2x2 mesh graph array showing the cross sections x-y, x-z, y-z, in graphs ( all axes. (16 marks) Find the minimum and maximum values of z. (4 marks) Use contour plots to find two different values for (x ,y), when z = +1 . (10 marks) 111. 1 hen z = +1 (10marks) 1) (2) and (3), respectively, while the 3D x-y-z in graph (4). Add labels and titles. (10 marks) Use MATLAB help to display the contour lines for z -0, 1 and 4 only, while showing the values v. answerof the contour levels for x2 0, y > 0, (10 mar㎏ jke lastv. v. gestions on/y wit, cotusinA euncton (Good Luck

For the following two-variable function: z = 2x sin(x) + xy cos(2y) i. Plot a 3D mesh for z, for the range: -2 lessthanorequalto x lessthanorequalto 2 and -3 lessthanorequalto y lessthanorequalto 3 in steps of 0.1, and add labels for all axes. ii. Find the minimum and maximum values of z. iii. Use contour plots to find two different values for (x, y), when z- = +1. iv. Plot a 2 times 2 mesh graph array showing the cross sections x-y, x-z, y-z, in graphs (1), (2), and (3), respectively, while the 3D x-y-z in graph (4). Add labels and titles. v. Use MATLAB help to display the contour lines for z = 0, 1 and 4 only, while showing the values of the contour levels for x greaterthanorequalto 0, y greaterthanorequalto 0.

Expert Answer

Read more

Solved: How does the neuro-fuzzy tree work? Describe and give examples of applications.

How does the neuro-fuzzy tree work? Describe and give examples of applications.

Expert Answer

Read more

Solved: Write a program that accepts an n x n matrix. The program should also:

Multi-Dimentional Array

Assignment

Write a program that accepts an n x n matrix. The program should also:

1. Total and display the sum of each row and each column

2. Find the product of each row and column

3. Find the highest and lowest value within the array

Constraints 

The number of rows and columns should be the same

Use nested for loops and methods

Requirements 

Build your matrix based upon user input (e.g., ask how many rows and columns – they must be the same)  Use a method to display the matrix (use tabs between each element)  Create methods to display the following:

o Method 1: The sum of each row

o Method 2: The sum of each column

o Method 3: The product of each row

o Method 4: The product of each column

o Method 5: The highest value in the matrix

o Method 6: The lowest value in the matrix 

Loop the program to run it until the user wishes to exit 

In the example below, the numbers ARE NOT hard coded. Your program should ask the user for input 

This program should utilize code learned from Week 1 through Week 8 Hints  Make sure you use Java coding conventions

Expected Output

The following pages show a sample run with two iterations. User input is in Bold.

Welcome! This program that accepts an n x n matrix, totals the rows and columns & finds the product of each row and column.

Enter number of rows & columns (they will be the same): 2

Enter a value for Row 1, Column 1: 3

Enter a value for Row 1, Column 2: 8

Enter a value for Row 2, Column 1: 7

Enter a value for Row 2, Column 2: 9

The Matrix****************************************

You Entered the Following Matrix:

3           8

7            9

Row Totals****************************************

The sum of row 1 is: 11

The sum of row 2 is: 16

Column Totals*************************************

The sum of column 1 is: 10

The sum of column 2 is: 17

Row Products*************************************

The product of row 1 is: 24

The product of row 2 is: 63

Column Products*************************************

The product of column 1 is: 21

The product of column 2 is: 72

The greatest value in this matrix is: 9

The lowest value in this matrix is: 3

Enter another matrix? (Y or N) y (if yest it loops)

Enter another matrix? (Y or N) n Thank you for using the program! Goodbye!

Expert Answer

 

import java.util.*;
public class Matrix
{
public static void main(String args[])

Read more
Still stressed from student homework?
Get quality assistance from academic writers!