499 Answered Questions for the topic computer engineering
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
04/27/21
Count E's. Read in a string, print out the number of e's in it.
Read in a string, print out the number of e's in it. Note that the string may have spaces in it. A call to getline looks like getline(cin, myVariable) where myVariable is a string variable that...
more
04/26/21
Web Log Parser. Submit to elearn: Make sure to name files EXACTLY as specified - including capitalization. Do not submit extra files. Do not zip or otherwise compress files unless told to.
ObjectiveYouwill be able to read data from a file and use string functions to process text.Assignment InstructionsShould be able to compile and run your program with:
g++ -std=c++11 assign5.cpp -o...
more
04/26/21
Tag Remover. Read in a string that may have spaces (use getline!).
Read in a string that may have spaces (use getline!). In the string will be something that looks like [TAG]text inside tag[/TAG] where TAG can be any string. Print out the TAG, a colon, and the...
more
04/26/21
Sher. Write a word shortener.
Write a word shortener. Read in a string (you may assume no spaces). If it is 4 characters or less, print it back out. If it is more than 4 characters, print just the first two followed by the last...
more
04/26/21
Caturday Check. Read a string (will not have spaces).
Read a string (will not have spaces). Print "true" if the word "cat" appears starting at the first or second letter. Otherwise print false.Samples:
Input: catch Output: true
Input: scatter ...
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.