1,518 Answered Questions for the topic computer science

IP Address - Subnetting

A block of addresses is granted to a small organization. We know that one of the addresses is 205.16.37.39/28. (i) What is the first address in the block?(ii) What is the last address in the block?... more
Computer Science Hoare Logic

06/03/22

Hoare Logic inference

which corresponds to the series 0+1+2+3+ … +n with 0 being the 0th triangular number, 1 being the 1st, 3 being the 2nd, 6 being the 4th and so on. Prove the program is correct using Hoare logic... more
Computer Science Math

06/01/22

Password combinations

Can be 5 or 6-character long passwords. The characters must be from lowercase letters or digits. Each password must contain at most two lowercase-letters and contains no repeated digits. How many... more
Computer Science Cs161

05/25/22

CS161, File List Analysis, Image File Parser, C++

Instructions:Write a program that extracts information from a text file containing information about images on a website.Your program should read from a file called "Images.txt" which will consist... more

05/23/22

Find the expansion base 7 of 67 and Compute (37^15 + 27 × 43) mod 6 using modular arithmetic.

Find the expansion base 7 of 67Compute (3715 + 27 × 43) mod 6 using modular arithmetic (without the use of a calculator). Show all your work.

05/23/22

Check whether the following integers are multiplicative inverses of 3 mod 5.

Check whether the following integers are multiplicative inverses of 3 mod 5. a) 6 b) 7

05/23/22

We want to find 8 in the following list: 2, 6, 5, 1, 11, 18, 8, 0.

We want to find 8 in the following list: 2, 6, 5, 1, 11, 18, 8, 0.a) Can we use Binary Search Algorithm? Justify your answer. b) If a Linear Search Algorithm is used to find 8, how many comparison... more

05/23/22

Look at the following algorithm:

Look at the following algorithm:Input: n: real numberOutput: undisclosed procedure x(n) t := 1 For i := 3 to n t := t + n End-for Return(t) What is returned by the algorithm on the input 7, i.e. n... more

05/23/22

Determine which statements are false or true. Justify your answer.

Determine which statements are false or true. Justify your answer.(a) {0, 1} ∈ {0, {0}, {1}, 1} (b) {a, b, c} ⊂ {a, {a, b}, c, {a, c}, {{{a, b, c}}}} (c) ∅ ⊆ {a, b, c} (d) {1} ∈ {{1}, 0, {{1}}}

05/23/22

Let f(x) = 4x - 7 and g(x) = 6 - 2x where f(x) : R → R, and g(x) : R → R. Find (f ◦ g)(x).

Let f(x) = 4x - 7 and g(x) = 6 - 2x where f(x) : R → R, and g(x) : R → R. Find (f ◦ g)(x).

05/23/22

Determine whether the function f(x) = 8 − 2x^2 , where f(x) : R → R, is bijective and explain why.

Determine whether the function f(x) = 8 − 2x2 , where f(x) : R → R, is bijective and explain why.

05/23/22

For the sets A = {a, b, c, d, e}, B = {a, c, e, g, n}, C = {b, c, d, e, n, w} and the universal set is U = {a, b, c, d, e, g, n, w}. Find

For the sets A = {a, b, c, d, e}, B = {a, c, e, g, n}, C = {b, c, d, e, n, w} and the universal set is U = {a, b, c, d, e, g, n, w}. Find (a) |A ∩ B ∩ C| (b) C¯(c) A¯∪(B − C)

05/23/22

Rewrite the statement ¬∃x (∀y∃tS(x, y, t) ∧ ∃tR(x, t)) so that negations appear only within predicates.

Rewrite the statement ¬∃x (∀y∃tS(x, y, t) ∧ ∃tR(x, t)) so that negations appear only within predicates.
Computer Science Cs161

05/23/22

CS161, C++ using QTCreator, Assignment 8: Stock Statistics

You will be writing various functions to help calculating information about the stock and its performance, as well as to read in data about a stock. These functions need to be able to work on... more

05/17/22

please can you check my answers to these questions regarding RStudio?

Which of the following must be part of each layer in a ggplot2 object? There may be more than one correct answer. limits grouping variable(s) facet tick aesthetic... more

05/16/22

How to find Mod of a large number (Fermat's Little Theorem)

How do you find the modulus of a large number? For example:12345678901234567890^{98765432109876543210} mod 1234567?or 38232701^2897310 mod 11What does this have to do with Fermat's little theorem
Computer Science Computer Programming

05/14/22

Haskell - I am not sure how to use the pairs function with list comprehension to solve this question in Haskell

The function pairs :: [a] -> [(a,a)] returns the list of pairs of adjacent elements of a list. For instance, pairs [3,4,5,6] = [(3,4),(4,5),(5,6)]. Use the function pairs and a list... more
Computer Science

05/06/22

How would we use the graph algorithm to justify this runtime of 0(n^2)?

A city consists of a set of n bus stops. There are two main bus lines in the city: the red bus line and the blue bus line. Buses travel between pairs of bus stops. Two bus stops may be connected... more
Computer Science

05/06/22

Which polynomial time algorithm would you use to solve this if there is one to solve?

A group of m primary students is given a list of n foods offered by the cafeteria. Each student is asked to write down their 2 favorite foods. Each student must write exactly two food preferences.... more
Computer Science Computer C++ Computer Programming

05/04/22

how is this done??

Write a complete C++ command to implement a "Sum of Numbers in Range" (sonir) program. Place all your code inside the main() routine; do not write any extra user-defined functions. To minimize your... more
Computer Science C++

05/01/22

How to implement a template linked list in C++?

I need to implement a Template Linked List in C++ , and I'm asked to use three Fixed file(which is cannot changed):ContainerIfc.h class BADINDEX {}; template <class T> class ContainerIfc { ... more
Computer Science Computer Programming

04/28/22

Computer Science Code

I need the code and some explanations to the following prompt for coding because I am struggling with arrays and loops(1301 computer science)How could I create a game for combat ships? I have to... more
Computer Science C++ Computer Programming

04/27/22

HOW CAN THIS ERROR BE FIXED?

inlab21.cpp: In member function ‘DataType Queue::dequeue()’:inlab21.cpp:28:2: error: ‘temp’ was not declared in this scope temp=frontPtr================================// This is the default... more
Computer Science C++ Computer Programming

04/27/22

i got an error saying this.

main21.cpp: In function ‘int main()’:main21.cpp:49:26: error: ‘maxlength’ was not declared in this scope if(qLength>maxLength) maxlength = qLength;... 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.