1,534 Answered Questions for the topic computer science

Computer Science Java

12/10/22

CLASSES AND OBJECTS

Create class IntegerSet. Each IntegerSet object can hold integers in the range 0–100. The set is represented by an array of booleans. Array element a[i] is true if integer i is in the set. Array... more
Computer Science

12/10/22

MCQ of computer science

Ramesh is taking a tough examination. The question paper consists of N objective problems and each problem has 4 options A,B,C, and D, out of which, exactly one option is correct. Since Ramesh did... more
Computer Science

12/08/22

How to correct the prolog full stop in clause body error?

weather(phoenix, spring, hot).weather(phoenix, summer, hot).weather(phoenix, fall, hot).weather(phoenix, winter, warm).weather(wellington, spring, warm).weather(wellington, summer,... more
Computer Science

12/07/22

Represent the 4-bit ones complement number 0xE as an 8-bit twos complement number

I know that 0xE is 14 in decimal. I then did 14 + 2^4 which got me 30. 30 in 8-bits unsigned is 0011 0000. And -30 is 11100010. In hex that is E2. Im not sure if I am doing this right. E2 is not... more
Computer Science

12/05/22

represent the 8-bit two's complement number 0xca as a 16-bit sign magnitude number

Computer Science

11/29/22

Tutor with no knowledge

I had two lessons with a tutor, who didn't have any knowledge about what he is turoring. I want to know what are my chooices in such a situation, because honestly I paid for nothing. When I asked... more

11/28/22

Complete Binary Tree in Java (ArrayList implementation)

inOrder, postOrder, and preOrder seem to be printing extra numbers. Why is this happening? import java.util.*;public class CBT{  private ArrayList tree;  public CBT(){ tree = new... more

11/19/22

Sensors are used to monitor the pressure and the temperature of a chemical solution stored in a vat.

Sensors are used to monitor the pressure and the temperature of a chemical solution stored in a vat. The circuitry for each sensor produces a HIGH voltage when a specified maximum value is... more

11/18/22

Prove NP-Completeness of a Problem (Complexity Theory)

INPUT: A boolean formula F in CNF and a positive integer k.OUTPUT: Decide if we can delete k clauses from F such that the resulting CNF is satisfiable.
Computer Science Chemistry Sat Math Ecology

11/17/22

Math Conversion Oceanography

The drainage basin of the Delaware River encompasses about 35,500 km2 (= 35 x 109 m2). The average annual precipitation for the drainage area is about 44 inches/year (= ~1.1 m/yr) and the... more

11/17/22

Math Conversion

The drainage basin of the Delaware River encompasses about 35,500 km^2 (= 35 x 109 m^2). The average annual precipitation for the drainage area is about 44 inches/year (= ~1.1 m/yr) and the... more
Computer Science Computer Programming

11/17/22

How do you count characters in a string in assembly language

I am currently working on a lab for my cs class. Part of the lab is asking for us to make a function that counts the length of a file. The file has a long string inside of it and we need to count... more
Computer Science Math Science Biology

11/16/22

Mathematical Conversion Oceanography Coastal Equation

The drainage basin of the Delaware River encompasses about 35,500 km^2 (= 35 x 109 m^2). The average annual precipitation for the drainage area is about 44 inches/year (= ~1.1 m/yr) and the... more

Write an 8086 assembly language program to accomplish this

An 8086-8255 based system is required to operate an 7-segment display (Common-Cathode) connected to Port A based on two switch inputs connected to bit 0 and 1 of Port B as Fig.B. If both switches... more
Computer Science C++ Computer Programming

11/09/22

C++ Array of Bank accounts & Ask user to sort by name, id or balance.

C++ question: I have a BankAccount class that has private member variables, string name, string id, and int balance. I made an array of 5 Bank Account objects that stored different names, bank... more

11/07/22

Write a program that first invites the user to input a natural number n. Then compute the nth number in the sequence (x subscript n) and display it appropriately to the user.

The sequence xn is defined, for n > 2, by the recursive formulaxn = 2xn - 1 + xn - 2 where x1 = 2 and x2 = 3.Write a program that first invites the user to input a natural number n. Then compute... more
Computer Science Computer Programming Python

11/04/22

How do I approach this programming prompt?

================================= An ordering service allows customers to order filled breads. The bread comes in two sizes: -30cm -15cm And three types: -White -Brown -Seeded There are five... more
Computer Science C++ Computer Programming

11/03/22

I need help with this HW assignment: Project 2: Functional Decomposition II - Math Skill Builder!!!

link:file:///home/chronos/u-9e88d7bb79a98dc9072c9451a6bc08c2c1a07960/MyFiles/Downloads/Project%202_%20Functional%20Decomposition%20II%20-%20Math%20Skill%20Builder%20Instructions.pdf
Computer Science Computer Programming

11/03/22

Computer Science

Assign number_segments with phone_number split by the hyphens.Sample output with input: '977-555-3221'Area code: 977
Computer Science Computer Programming

11/03/22

In python Coding

Complete the function game, which simulates a simple, turn-based game between two players and returns the winner (if there is one).The function takes four arguments:m1 and m2 are strings... more
Computer Science

11/03/22

Explain the importance of Usability. Define human implication for understanding the usability of computer system during designing phase.

a) Explain the importance of Usability. Define human implication for understanding the usability of computer system during designing phase.b) You have been assigned responsibility for designing the... more
Computer Science

11/03/22

Explain the importance of Usability

a) Explain the importance of Usability. Define human implication for understanding the usability of computer system during designing phase.b) You have been assigned responsibility for designing the... more
Computer Science

11/03/22

Briefly explain difference between Multi-model and Multimedia systems

Briefly explain difference between Multi-model and Multimedia systems. List down universal design principles. What is the role and importance of speech technology in multi-model interaction... more
Computer Science C++

11/01/22

Please change this c++ code into pep9

Take the following program and translate it into PEP/9 assembly language: #include <iostream> using namespace std; int fib(int n){int temp;if (n <= 0)  return 0;else if (n <= 2)  return... more
Computer Science Science English Biology

10/31/22

Reliability of Information on the Web.

 Instructions: The internet offers endless opportunities to obtain high-quality information on a wide variety of topics that are relevant to nutrition, but it also delivers an abundance... 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.