1,518 Answered Questions for the topic computer science
11/21/20
Can someone fix my code based on my comment under this question? *java*
My code:package javaapplication45;import java.util.ArrayList;import java.util.List;import java.util.Scanner;public class JavaApplication45 {// Maain Classpublic static void main(String[]...
more
11/21/20
It has been found that in a certain disk drive about 80% of all requests are for a small...
It has been found that in a certain disk drive about 80% of all requests are for a small, fixed number of cylinders. Which of the scheduling algorithms will you recommend for this situation?...
more
11/18/20
Help!! How to solve these matlab problems?
Problem1:Enter the following data into the Matlab command window.A=[02: 1 4];B=[1 3; 2 6]:What is A*B? What is A.*B?What does A.^-I produce verses A^-1?Problem3:Given the matrix: M=[1 1; 1 3;]; Use...
more
11/17/20
How to write or solve these problems in matlab?
Problem1:Enter the following variables into your command window:A=[1 2 3:];B=[1:2:3];Can you subtract A from B?Can you add A to A?Problem2: Enter the following data into the Matlab command...
more
11/15/20
Understanding Sequential Statements
In this lab, you complete a C++ program with the provided data files. The program calculates the amount of tax withheld from an employee’s weekly salary, the tax deduction to which the employee is...
more
11/15/20
Understanding Operator Precedence and Associativity
In this lab, you complete a partially written C++ program that is provided for you. The program, which was written for a furniture company, prints the name of the furniture item, its retail price,...
more
11/15/20
Declaring and Initializing C++ Constants
In this lab, you declare and initialize constants in a C++ program. The program, which is saved in a file named NewAge2.cpp, calculates your age in the year 2050.Instructions
Declare a constant...
more
11/15/20
Declaring and Initializing C++ Variables
Declare an integer variable named myNewAge.
Declare and initialize an integer variable named myCurrentAge. Initialize this variable with your current age.
Declare and initialize an integer...
more
11/15/20
Compiling and Executing a C++ Program
Modify the program so it displays I'm learning how to program in C++.
Modify the C++ Programming program so it prints two lines of output. Add a second output statement that displays That's...
more
11/15/20
Compiling and Executing a Java Program
Modify the program so it displays "I'm learning how to program in Java.".
Modify the Programming class so it prints two lines of output. Change the class name to Awesome. Add a second output...
more
11/15/20
solving a practice question about finishing a python equation
2. You are considering buying a house and wondering what is the maximum amount of loan you can afford to borrow. Assuming the current interest rate for 30-year term loan is 3.0%, and you can afford...
more
11/15/20
question about programming
What does it mean when you are asked to create a method that will accept one time objects and return true if the two times are the same and false otherwise?
11/14/20
HELP IN JAVA CODE ASAP
Write a JAVA CODE that:
Display all prime numbers less than 50
Display all factors of 50
Display only the prime factors of 50
Determine whether 50 is a perfect square or
Exit the program
Has to...
more
11/11/20
Write an algorithm to implement two stacks in one array.
Write an algorithm to implement two stacks in one array A[1...n] in such a way that neitherstack overflows unless the total number of elements in both stacks together is n. The PUSHand POP...
more
Computer Science Data Structures
11/11/20
Write the procedure to represent the sparse matrix using the linked list.
Write the procedure to represent the sparse matrix using the linked list(The algorithm)
Computer Science Matlab
11/06/20
Make a Matlab slider GUI
Question: Provide a SliderGUI with an additional button and edit text box with the following:If sliderbar > 5 make the background color of the ColorButton red and have the edit box say something...
more
Computer Science
11/03/20
The elements of a linked list are stored
a. In a structureb. In contiguous memory locationsc. Anywhere the computer has space for themd. In an array
11/03/20
How to set up my Github
I need help setting up Github. I opened my terminal and typed git --version and I noticed I do have git installed in my computer. I have an imac 2017. However I don't know how to get the repository...
more
Computer Science
11/01/20
python math help
Assign point_dist with the distance between point (x1, y1) and point (x2, y2). The calculation is: Distance = SquareRootOf( (x2 - x1)2 + (y2 - y1)2 ). Sample output with inputs: 1.0 2.0 1.0...
more
Computer Science
11/01/20
python geometry help
Simple geometry can compute the height of an object from the object's shadow length and shadow angle using the formula: tan(angleElevation) = treeHeight / shadowLength. Given the shadow length and...
more
Computer Science
11/01/20
python integer help
1.23 LAB: Warm up: Variables, input, and type conversion(1) Prompt the user to input an integer between 32 and 126, a float, a character, and a string, storing each into separate variables. Then,...
more
11/01/20
SUMMATION AND SERIES EXPANSION QUESTION NEED HELP
What are the first four terms of this sequence, beginning with n = 0An = (-1)n (n+1)!
11/01/20
How to make these? (OOP Java)
Program will print a selection screen where the user can choose the operation he/she wants to perform. The selection screen will be repeated after each selection until the staff type the number 4...
more
11/01/20
comp sci question
Write a program that produces an ASCII art representation of an hourglass using nested for loops. Use a class constant to make it possible to change the height of the hourglass.Output when a class...
more
11/01/20
How to assign seats to the passengers maintaining social distancing?
Imagine there are 30 people in line to board a train that seats 100. However, per currentregulations there must be at least two empty seats between each pair of passengers. Theregulations are not...
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.