Questions
Based on your observation and group discussion, explain the evolution of data storage based on the...

Based on your observation and group discussion, explain the evolution of data storage based on the following category: 1. Physical element (size/weight, portability, durability) 2. Non-physical element (cost, accessibility)

In: Computer Science

USING C# Design and implement a program (name it SumValue) that reads three integers (say X,...

USING C#

Design and implement a program (name it SumValue) that reads three integers (say X, Y, and Z) and prints out their values on separate lines with proper labels, followed by their average with proper label. Comment your code properly.Format the outputs following the sample runs below.

Sample run 1:

X = 7

Y = 8

Z = 10

Average = 8.333333333333334

In: Computer Science

1-What are the types of computer networks? 2-Define TCP/IP

1-What are the types of computer networks?

2-Define TCP/IP

In: Computer Science

1-Define UDP? 2-What voltage levels are used in RS232 to represent logic 0 and 1

1-Define UDP?

2-What voltage levels are used in RS232 to represent logic 0 and 1

In: Computer Science

how to write a cpp program that takes a number from a user, and print the...

how to write a cpp program that takes a number from a user, and print the sum of all numbers from one to that number on screen? using loop interation as basic as possible.

In: Computer Science

Part A In PyCharm, write a program that prompts the user for their name and age....

Part A

In PyCharm, write a program that prompts the user for their name and age. Your program should then tell the user the year they were born. Here is a sample execution of the program with the user input in bold:

What is your name? Amanda
How old are you? 15

Hello Amanda! You were born in 2005.
  1. Write the program. Format your code using best practices. Refer to the zyBooks style guide, if needed, to use proper naming conventions for variables and methods. Use the most appropriate statements with minimal extraneous elements, steps, or procedures.
  2. Run the program.
  3. Debug the program. Be sure your code produces the correct results.
  4. Save and submit your file.

Part B

While you don’t need an IDE to write a program, there are some features that make it desirable. What did you notice when using PyCharm to develop a simple program? For instance, you might have noticed how color is used. Identify two to three features that could make coding easier for programmers, and briefly explain why.

In: Computer Science

How to generate a key pair for Alice and Bob Respectively Suppose Alice sends plaintext P=...

How to generate a key pair for Alice and Bob Respectively Suppose Alice sends plaintext P= 113, how does she encrypt and whats the ciphertext C? After Bob receives C, how does he decrypts it to get the plaintext P? Suppose Alice sends plaintext P= 113, how does she sign it and what are sent to Bob. How does Bob verify the signature? Suppose Bob sends plaintext P=113, how does he sign it and what are sent Alice. How does Alice verify the signature?

In: Computer Science

Examine the structures of the DEPARTMENT and ASSET tables: DEPARTMENT ------------------------- DEPT_ID NUMBER(9) NOT NULL DEPT_ABBR...

  1. Examine the structures of the DEPARTMENT and ASSET tables:

    DEPARTMENT
    -------------------------
    DEPT_ID NUMBER(9) NOT NULL
    DEPT_ABBR VARCHAR2(4)
    DEPT_NAME VARCHAR2(25) NOT NULL
    MGR_ID NUMBER
    
    ASSET
    -----------
    ASSET_ID NUMBER(9) NOT NULL
    ASSET_VALUE FLOAT
    ASSET_DESCRIPTION VARCHAR2(25)
    DEPT_ID NUMBER(9)
    
    The DEPT_ID column of the ASSET table has a FOREIGN KEY constraint referencing the DEPARTMENT table. You attempt to update the ASSET table using 
    this statement:
    UPDATE asset
    SET dept_id =(SELECT dept_id
    FROM department
    WHERE dept_name =(SELECT dept_name
    FROM department
    WHERE dept_abbr = 'FINC')),
    asset_value = 10000
    WHERE asset_id = 2;
    
    Which two statements must be true for this UPDATE statement to execute without generating an error? (Choose two.)
    A.

    An asset with an ASSET_ID value of 2 must exist in the ASSET table.

    B.

    Only one row in the DEPARTMENT table can have a DEPT_ABBR value of FINC.

    C.

    One of the subqueries should be removed because subqueries cannot be nested.

    D.

    Both of the subqueries used in the UPDATE statement must return one and only one non-null value.

    E.

    Only one row in the DEPARTMENT table can have the same DEPT_NAME value as the department with DEPT_ABBR of FINC.

In: Computer Science

USE JAVA. Write a very general sort method that can sort any type of data arrays/lists....

USE JAVA. Write a very general sort method that can sort any type of data arrays/lists. For example, can sort a list of integers in ascending order, a list of integers in descending order, a list of doubles, a list of student objects (with names and scores) in ascending order of names, or in descending order of scores, … You can use any pre-defined sort function or can code your own. Use your favorite language for implementation. If your language doesn’t support these features, implement a revised version (clearly state the revision you made to the problem with a brief discussion of the language’s weakness.) Then test the following cases: (a) 4, 3, 7, 2, 1, 9 in ascending order (b) 4.5, 2.0, 9.0, 8.4, 7.2, 6.1, 20.5, 2.1 in descending order (c) John 40, Casey 45, Ben 47, Zadi 41, Kay 39, Tay 43 in ascending order of names (d) John 40, Casey 45, Ben 47, Zadi 41, Kay 39, Tay 43 in descending order of scores Include your program source code and test cases (may copy paste output or show screenshots) as answer to any coding problem. Use Java.

In: Computer Science

Draw parse trees for nine strings in question one, using their grammars. For the following grammars,...

Draw parse trees for nine strings in question one, using their grammars.

  1. For the following grammars, write the leftmost derivation for the strings given with each. Next to each derivation step, write the number of the rule used. Do not combine steps.  
    1. grammar (3 rules), Σ = {a, b}:

S -> aSbS | bSaS | ε

strings (3): ab, baab, bbaa

  1. grammar (6 rules), Σ = {0, 1}:

S -> A1B

A -> 0A | ε

B -> 0B | 1B | ε

strings (3): 1, 0011, 01010

  1. grammar (6 rules), Σ = { +, x, a, (, ) }

E -> E + T | T

T -> T x F | F

F -> (E) | a

strings (3): a, a x a, (a) + a x a,

  1. grammar (4 rules), Σ = {(, ), [, ]}:

S -> (S) | [S] | SS | ε

strings (3): ( ), [ ] ( ), ( [ ] )  

In: Computer Science

Using Packet Tracer Create a Network for 3 departments (sales, accounting, HR) in a business. This...

Using Packet Tracer Create a Network for 3 departments (sales, accounting, HR) in a business.

This network should observe reduced collisions and minimum broadcasts.

Use private network addressing to simulate the network.

PLEASE PROVIDE The network diagram, and pings/simulations to demonstrate the correct functioning of the network. I will rate.

In: Computer Science

Please use your own Wire-Shark tool and answer the following questions. If possible please mention the...

Please use your own Wire-Shark tool and answer the following questions. If possible please mention the steps or pictures on how the questions were answered.

1. What is the MAC address of the server?

2. What is the MAC address of the client?

3. What version of the web server is the server running?

4. Which web browser and what version is the client running?

5. Which cipher suites are supported by the client?

6. Which cipher suite does the server agree upon?

7. How many bytes were able to be decrypted? (Use Follow SSL stream to find out)

8. What is in the "<head>" tag of the client GET request of the client?

9. What port is used by the client to communicate with HTTPS on the server?

10. What is the version of OpenSSL running on the server?

In: Computer Science

Write a program that allows the user to navigate the lines of text in a file....

Write a program that allows the user to navigate the lines of text in a file. The program should prompt the user for a filename and input the lines of text into a list. The program then enters a loop in which it prints the number of lines in the file and prompts the user for a line number. Actual line numbers range from 1 to the number of lines in the file. If the input is 0, the program quits. Otherwise, the program prints the line associated with that number.

An example file and the program input and output is shown below:

example.txt

Line 1.
Line 2.
Line 3.

Enter the input file name: example.txt

The file has 3 lines.
Enter a line number [0 to quit]: 2
2 :  Line 2.
The file has 3 lines.
Enter a line number [0 to quit]: 4
ERROR: line number must be less than 3.
The file has 3 lines.
Enter a line number [0 to quit]: 0

Make sure the program gracefully handles a user entering a line number that is too high.

Grading

When you have completed your program, click the Submit button to record your score.

In: Computer Science

Garden Glory Project Questions Assume that Garden Glory designs a database with the following tables: OWNER...

Garden Glory Project Questions Assume that Garden Glory designs a database with the following tables:

OWNER (OwnerID, OwnerName, OwnerEmail, OwnerType)

OWNED_PROPERTY (PropertyID, PropertyName, PropertyType, Street, City, State, Zip, OwnerID)

GG_SERVICE (ServiceID, ServiceDescription, CostPerHour);

EMPLOYEE (EmployeeID, LastName, FirstName, CellPhone, ExperienceLevel)

PROPERTY_SERVICE ( PropertyServiceID , PropertyID , ServiceID, ServiceDate , EmployeeID, HoursWorked)

The referential integrity constraints are:

OwnerID in OWNED_PROPERTY must exist in OwnerID in OWNER

PropertyID in PROPERTY_SERVICE must exist in PropertyID in OWNED_PROPERTY

ServiceID in PROPERTY_SERVICE must exist in ServiceID in GG_SERVICE

EmployeeID in PROPERTY_SERVICE must exist in EmployeeID in EMPLOYEE

Assume that OwnerID in OWNER, PropertyID in PROPERTY, and EmployeeID in EMPLOYEE are surrogate keys with values as follows:

OwnerID Start at 1 Increment by 1

PropertyID Start at 1 Increment by 1

ServiceID Start at 1 Increment by 1

EmployeeID Start at 1 Increment by 1

PropertyServiceID Start at 1 Increment by 1

Sample data are shown in Figure 3-38, Figure 3-39, Figure 3-40, Figure 3-41, and Figure 3-42. OwnerType is either Individual or Corporation. PropertyType is one of Office, Apartments, or Private Residence. ExperienceLevel is one of Unknown, Junior, Senior, Master or SuperMaster. These tables, referential integrity constraints, and data are used

Sample Data for Garden Glory OWNER Table OwnerID OwnerName OwnerEmailAddress OwnerType

1 Mary Jones [email protected] Individual

2 DT Enterprises [email protected] Corporation

3 Sam Douglas [email protected] Individual

4 UNY Enterprises [email protected] Corporation

5 Doug Samuels [email protected] Individual

Sample Data for Garden Glory OWNED_PROPERTY Table PropertyID PropertyName PropertyType Street City State ZIP OwnerID

1 Eastlake Building Office 123 Eastlake Seattle WA 98119 2

2 Elm St Apts Apartments 4 East Elm Lynwood WA 98223 1

3 Jefferson Hill Office 42 West 7th St Bellevue WA 98007 2

4 Lake View Apts Apartments 1265 32nd Avenue Redmond WA 98052 3

5 Kodak Heights Apts Apartments 65 32nd Avenue Redmond WA 98052 4

6 Jones House Private Residence 1456 48th St Bellevue WA 98007 1

7 Douglas House Private Residence 1567 51st St Bellevue WA 98007 3

8 Samuels House Private Residence 567 151st St Redmond WA 98052 5

as the basis for the SQL statements you will create in the exercises that follow. If possible, run these statements in an actual DBMS, as appropriate, to obtain your results. Name your database GARDEN_GLORY. Use data types consistent with the DBMS you are using. If you are not using an actual DBMS, consistently represent data types using either the MySQL, Microsoft SQL Server, or Oracle Database data types shown in Figure 3-5. For each SQL statement you write, show the results based on your data. Write SQL statements and answer questions for this database as follows:

FIGURE 3-40

Sample Data for Garden Glory EMPLOYEE Table EmployeeID LastName FirstName CellPhone ExperienceLevel

1 Smith Sam 206-254-1234 Master

2 Evanston John 206-254-2345 Senior

3 Murray Dale 206-254-3456 Junior

4 Murphy Jerry 585-545-8765 Master

5 Fontaine Joan 206-254-4567 Senior

FIGURE 3-41

Sample Data for Garden Glory GG_SERVICE Table ServiceID ServiceDescription CostPerHour

1 Mow Lawn 25.00

2 Plant Annuals 25.00

3 Weed Garden 30.00

4 Trim Hedge 45.00

5 Prune Small Tree 60.00

6 Trim Medium Tree 100.00

7 Trim Large Tree 125.00

FIGURE 3-42

Sample Data for Garden Glory PROPERTY_SERVICE Table PropertyServiceID PropertyID ServiceID ServiceDate EmployeeID HoursWorked

1 1 2 2019-05-05 1 4.50

2 3 2 2019-05-08 3 4.50

3 2 1 2019-05-08 2 2.75

4 6 1 2019-05-10 5 2.50

5 5 4 2019-05-12 4 7.50

6 8 1 2019-05-15 4 2.75

7 4 4 2019-05-19 1 1.00

8 7 1 2019-05-21 2 2.50

9 6 3 2019-06-03 5 2.50

10 5 7 2019-06-08 4 10.50

11 8 3 2019-06-12 4 2.75

12 4 5 2019-06-15 1 5.00

13 7 3 2019-06-19 2 4.00

F. Write an SQL statement to list LastName, FirstName, and CellPhone for all employees having an experience level of Master and FirstName that begins with the letter J

will you please explain thank you

In: Computer Science

Code in c# Write a recursive method called isReverse(String s1, String s2) that accepts two strings...

Code in c#

Write a recursive method called isReverse(String s1, String s2) that accepts two strings as parameters and returns true if the two strings contain the same sequence of characters as each other but in the opposite order and false otherwise. • The recursive function should ignore capitalization. (For example, the call of isReverse("hello", "eLLoH") would return true.) • The empty string, as well as any one letter string, should be its own reverse. Write a driver program that calls this method from the Main program.

Program should ask for user input and reverse the sequence of characters.

In: Computer Science