1,534 Answered Questions for the topic computer science

Computer Science Math Algorithms

10/04/20

Searching for and removing a low priority item in an array

Suppose you are handed a list of n events, each carrying some priority value represented by a real number in the interval [0,1], where a larger priority corresponds to a more important event. This... more
Computer Science Java

10/01/20

Java help with coding

Program that prompts the user for the lengths of the sides of a triangle andcomputes the three angles and area. Assume that the user always enters positive integers. Tocompute the angles, use the... more
Computer Science C++ Computer Programming

09/30/20

What is the time and space complexity of the following code:

void fun(int n){int temp[n][n];for(int i=0;i<n;i++) for(int j=0;j<n;j++) temp[i][j]=i+j;}
Computer Science Computer Programming

09/29/20

Does anyone know how I can fix this error in my program? It is not printing the even numbers to the console.

Write a program that reads an integer and prints the sum of all even integers between 2 and the input value, inclusive.I have uploaded a image of my program to google... more
Computer Science Computer Programming

09/29/20

Does anyone know how I can fix this error in my program? It is not printing the even numbers to the console.

Write a program that reads an integer and prints the sum of all even integers between 2 and the input value, inclusive.I have uploaded a image of my program to google... more
Computer Science Java

09/29/20

java month calendar with days in month ad first sunday input

Write a program that produces a calendar. Your program should output acalendar for a single month, given parameters to specify how many daysin the month and the day of the first Sunday.

09/29/20

How to make a class called time on java with these data informaton:

■Class Time■-second:int = 0 ----> hour:[o, 23]--minute:int = 0 ----> minute: [o, 59]-hour: int=0 -----> second: [e, 59]Methods:-+Time()+Time (second: int, minute: int, hour: int)+getHour):... more

09/28/20

FR - policy versus mechanism (OS)

FR - policy versus mechanismConsider the following scenario: A university computer science department is designing its new building, and wants to provide access control for offices and labs (among... more
Computer Science Math Discrete Math

09/27/20

Need some help with my discrete Mathematics Homework, converting statement

Consider the following statements.    1. When I work a logic example without grumbling, you may be sure it is one I understand.    2. The arguments in these examples are not arranged in regular... more
Computer Science Computer Sql Computer Programming

09/24/20

database assignment

You are working in a Library and the Supervisor has asked you to create a database to store the data in the tables below. use MS access any versionUsers... more
Computer Science

09/22/20

Given a long long integer representing a 10-digit phone number, output the area code, prefix, and line number using the format (800) 555-1212.

Ex: If the input is:8005551212the output is:(800) 555-1212Hint: Use % to get the desired rightmost digits. Ex: The rightmost 2 digits of 572 is gotten by 572 % 100, which is 72.Hint: Use / to shift... more
Computer Science Programming Algorithms And Data

09/22/20

Algorithms and data homework help

Problem 1. (3 + 5 = 8 points) What Does This Code Do? You encounter the following mysterious piece of code. Algorithm 1: Mystery Function Function F(a,n)): If n = 0 : Return (1,a) Else b=1 Fori... more
Computer Science

09/22/20

Write a program using integers userNum and x as input, and output userNum divided by x three times. c++

.Ex: If the input is:2000 2the output is:1000 500 250

09/22/20

C# Display a pyramid

Hi!I have found this code in the internet: for (int i = 1; i< 10; i++) { for(int j= 1; j<= i; j++) { Console.Write(i); ... more

09/22/20

Discrete Math - Permute letters question

How many ways are there to permute the letters in HAPPY?
Computer Science Computer Programming Python

09/21/20

How can I print these elements of the list in python?

The list is given [ 1, 2, [3, 4, 5], [6, 7]]. How can show the output as 1, 2, 3, 4, 5, 6, 7.
Computer Science Visual Basic

09/20/20

Windows Form Application

Part 1: Programming – Hotel Room Sales Application1.1 Problem StatementThe current pandemic has seen most hotels in the Pacific Islands on the verge of closure. The locals have been encouraged to... more

09/19/20

Computer Science - Graphs

I've been given an adjacency matrix and asked to state whether the corresponding graph is undirected or not.How do we say whether a graph is undirected or not simply looking at its adjacency matrix.
Computer Science

09/18/20

What does each of the following Unix commands do?

Computer Science

09/18/20

help please dont know how to do

What is the output of each of the following statements. Use <cr> to show a new line and a __ (underscore) for a blank space. If the statement is INVALID, write ERROR next to it AND... more
Computer Science

09/18/20

(C) Is the following a legitimate C program? If it is what does it do? If not, why not?

(Correct it and in your words indicate what it does). (15 points).#incldue < stdio.h>float  main (int) { int x;   printf(“ ”);   print(“%c ”, “ this program may do... more
Computer Science

09/18/20

Problem in scheduling category

Students names will appear in the available lessons listed, but when I search their name to schedule a lesson, it will not appear. Is my profile not complete? It won’t allow me to login using the... more
Computer Science Computer Programming

09/16/20

How to find the address in column major order?

In a 2D integer array TD, assume that the row indices range from -3 to 7 and column indices range from 6 to 14. An element TD [-3, 6] stored at address 3220. Find out the dimension of TD and... 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.