504 Answered Questions for the topic computer engineering
05/10/21
Add Negatives. The existing code is trying to call a function addNegatives that should take an array of ints and its size and return the sum of JUST the negative numbers from the array.
The existing code is trying to call a function addNegatives that should take an array of ints and its size and return the sum of JUST the negative numbers from the array. Your task is to write the...
more
05/09/21
Write the assembly code in AT&T syntax for the functions recursive, iterative, and closed, intended for people to be able to read it, not in assembly compiled and generated by a machine.
Write the assembly code in AT&T syntax for the functions recursive, iterative, and closed, intended for people to be able to read it, not in assembly compiled and generated by a machine. They...
more
05/09/21
Write the assembly code in AT&T syntax for digits.c and height.c intended for people to be able to read it, not in assembly compiled and generated by a machine.
Write the assembly code in AT&T syntax for digits.c and height.c intended for people to be able to read it, not in assembly compiled and generated by a machine. They are both in C. Write the...
more
Computer Engineering Electrical Engineering
05/09/21
Draw bode plot for following transfer functions:
Draw bode plot for following transfer functions:20[(s+2)/(s^2+s)]
Computer Engineering Electrical Engineering
05/09/21
Draw bode plot for following transfer functions:
Draw bode plot for following transfer functions:100/(s+30)
05/08/21
write an Algorithm, not a code
"NOTE: write an algorithm, not a code"You are given a file called “std” and composed of “Number, Name, Address” fields/attributes. (You can define the type of fields by yourself) Write...
more
05/07/21
Find y such that the triangle has an area of 12 square units. (Enter your answers as a comma-separated list.)
(−4, 2), (−3, 5), (−1, y)y = _____
05/07/21
Consider the system of linear equations
a1x + b1y = c1a2x + b2y = c2where a1, b1, c1, a2, b2, and c2 represent real numbers. What must be true about the lines represented by the equations when the following is true?A: The lines must...
more
05/07/21
Will this result in syntax error? for the same array as the below question, int [] salaries = {20,95, 77,56, 83} the statement salaries[5]=100
Will this result in syntax error?for the same array as the above question,int [] salaries = {20,95, 77,56, 83}the statement salaries[5]=100This will result in what if not syntax error?(((Given an...
more
05/07/21
Given an array declaration of salaries in thousands of dollars, int [] salaries = {20,95, 77,56, 83} The a=index at which the salary 56 is found is
Given an array declaration of salaries in thousands of dollars, int [] salaries = {20,95, 77,56, 83}The a=index at which the salary 56 is found is
05/07/21
Is it True That; Here is a program that tries to change the value of one the element of an array by passing the array to a changeNames method:
Here is a program that tries to change the value of one the element of an array by passing the array to a changeNames method:Is This True? The output of this program is[Alison, Biance, Cody,...
more
05/07/21
Is the following TRUE? Given the following quadrant method below: This method returns which quadrant of the x/y plane this Point object falls in?
Given the following quadrant method to the Point class:
public class Point {
private int x;
private int y;
public int quadrant(){ if (x >0) return 1 if (x<0) return 2; if (y>0)...
more
05/07/21
Write a main program in a class called SquareMain.java that instantiates two square objects called s1 and s2.
Write a main program in a class called SquareMain.java that instantiates two square objects called s1 and s2.Perform the following actions on s1 and s2 using methods of the Square classCreate s1...
more
05/07/21
Here is a UML diagram for a geometric figure, the Square. Use this diagram to write a class called Square.java that contains the instance variables and instance methods given below:
Here is a UML diagram for a geometric figure, the Square. Use this diagram to write a class called Square.java that containsthe instance variables and instance methods given...
more
05/07/21
Write method to calculate Stimulus Amount. name: calculateStimulus, Parameters; Integer Array called Ages that contains ages of people &return type: void& works for any array size
Write the method to calculate Stimulus Amount: Method name: calculateStimulus Parameters: Integer Array called Ages that contains ages of people Return type: void Logic:...
more
05/04/21
C To F. Write a function: double celsiusToFahrenheit(double celsius)
Write a function:double celsiusToFahrenheit(double celsius)It should return the Fahrenheit temperature equivalent to the given Celsius temp.F = (9.0 / 5) * C + 32Code:#include...
more
05/04/21
String Trim2. Write a function stringTrim that removes the first and last characters from a given string.
Write a function stringTrim that removes the first and last characters from a given string. "chello" should become "hell".Your function must work correctly given the code in main shown below....
more
05/04/21
Midpoint Finder. Write a function: void findMidpoint(double x1, double y1, double x2, double y2, double& xMid, double& yMid)
Write a function:void findMidpoint(double x1, double y1, double x2, double y2, double& xMid, double& yMid)Assume x1, y1 and x2, y2 represent two coordinates on a Cartesian plane. Calculate...
more
05/03/21
MyMin. Write a function: int myMin(int num1, int num2)
Write a function:int myMin(int num1, int num2)It should return the lesser of the two parameters.Code:#include <iostream>using namespace std;//Do not modify anything on or above the line below...
more
05/03/21
C To F. Write a function: double celsiusToFahrenheit(double celsius)
Write a function:double celsiusToFahrenheit(double celsius)It should return the Fahrenheit temperature equivalent to the given Celsius temp.F = (9.0 / 5) * C + 32Code:#include...
more
05/03/21
String Trim2. Write a function stringTrim that removes the first and last characters from a given string.
Write a function stringTrim that removes the first and last characters from a given string. "chello" should become "hell".Your function must work correctly given the code in main shown below....
more
05/03/21
Midpoint Finder. Write a function:
Write a function:void findMidpoint(double x1, double y1, double x2, double y2, double& xMid, double& yMid)Assume x1, y1 and x2, y2 represent two coordinates on a Cartesian plane. Calculate...
more
05/03/21
Fibonacci functions. You will write three functions, each of which computes Fibonacci numbers.
Write the assembly code for the functions fibonacci_recursive.s, fibonacci_iterative.s, fibonacci_closed.s. Provide the assembly code as the answers for all three functions separately.main.c...
more
05/02/21
Show that B is the inverse of A.
A = -1/2 -5/4 B = 8 51 2 -4 -2To show that B is the inverse of A, we need to show that AB = I = BA.AB = -4 + ___ -5/2 + ___ = ____ ____ 8 + ___ 5 + ___ ____ ____BA = -4 +...
more
04/27/21
All To Upper. Read a string from cin into word and modify it so that it has all uppercase letters.
Read a string from cin into word and modify it so that it has all uppercase letters.Samples:
Input: hello Output: HELLO
Input: h3Llo Output: H3LLO
Hints:
You can only change the code in the...
more
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.