Questions
What is the purpose of Subnet? Explain with examples note: i want three examples to explain...

What is the purpose of Subnet? Explain with examples

note: i want three examples to explain the purpose of subnet

In: Computer Science

1. Why is it said that science education is an investment for the country? 2. Do...

1. Why is it said that science education is an investment for the country?

2. Do you think indigenous science should be considered science?

In: Computer Science

Is there anyway I could get an example to set this python function set up? any...

Is there anyway I could get an example to set this python function set up? any help would be amazing.

basetonum (S, B) --- int:

  1. This function accepts as input a string S and a base B (int) where S represents a number in base B where B is between 2 and 10 inclusive. It should then return an integer in base 10 representing the same number as S. It should output 0 when S is the empty string. This function is the inverse of the previous function numtobase().

  2. Parameters: S (string), B (int)

  3. Returns : integer

  4. The function displays nothing.

  5. Steps to convert any base system to decimal:

    Step 1 − Determine the column (positional) value of each digit (this depends on the position of the digit and the base of the number system).
    Step 2 − Multiply the obtained column values (in Step 1) by the digits in the corresponding columns.

    Step 3 − Sum the products calculated in Step 2. The total is the equivalent value in decimal.

    Example with S = '11101' and B = 2 Binary Number − 11101 Calculating Decimal Equivalent −

    Nb43210 Step 1 11101 (1×2) + (1×2) + (1×2) + (0×2) + (1×2)

    Step2 11101 16+8+4+0+1 Step 3 11101 29

       

Binary Number − 11101 = Decimal Number – 29

Again, the key is to ask yourself... what has to change in order to output base B instead of base 2?

In [1]: basetonum('11101', 2) Out[1]: 29

In [2]: basetonum('', 4) Out[2]: 0

In: Computer Science

Create a class that will store all the information needed for a song. Your class will...

Create a class that will store all the information needed for a song. Your class will store the following data:

  • A string for the song title.
  • A string for the Artist/Band title
  • A string for the Album/Compilation Name
  • A string for the Genre
  • A boolean called liked that represents whether you like the song

The class will have the following methods:

  • A constructor that will make a Song object from a song title, artist and album name
  • A constructor that will make a Song object from only the song title and artist
  • string to_string()// Will return a string that will have the name artist and album of the song
  • void play)() // A function that will print out the song title, artists, and album name using your
  • void set_liked(bool song_vote) //Will save the fact that you've liked a song
  • bool get_liked()//Will return a true or false value representing whether you like the song or not
  • string get_artist()//will return you a string with the artist name
  • void set_artist(string name)//will set the artists name for the song to the string you pass into the function
  • You should also create set and get methods rest of the variables in the class e.g.: song_title and genre

Your program should have a main that creates three song objects, places them into a vector and uses a for loop to "play" each of the songs using your play method.

In: Computer Science

How do software companies use Git-based repositories like GitHub, GitLab, and other packages that handle version...

How do software companies use Git-based repositories like GitHub, GitLab, and other packages that handle version control?

In: Computer Science

The following table shows pairs of hexadecimal numbers A and B. What is the sum of...

The following table shows pairs of hexadecimal numbers A and B. What is the sum of A and B if they represent unsigned 16-bit hexadecimal numbers? The result should be written in hexadecimal. Show your work

A 0D34 DD17
B BA1D 3617

In: Computer Science

Write a MIPS assembly language program to find the addition of two arrays

Write a MIPS assembly language program to find the addition of two arrays

In: Computer Science

Your supervisor has asked to be informed of your activities and accomplishments and any problems you...

Your supervisor has asked to be informed of your activities and accomplishments and any problems you are encountering.

Your Task

For a job or volunteer position that you currently hold, or a previous one, describe your regular activities, discuss irregular events that management should be aware of, and highlight any special needs or problems you are having. Address the report to your supervisor, and include the company or organization's name and location.

Language Requirements

  • 200-300 words
  • General language: no slang or formal
  • Positive, respectful, and professional language
  • Proofread and correct all grammar and spelling errors before submitting (use Grammarly and your own eyes)

Format Requirements

  • Memo format informal report, in block style
  • From, To, Date, and Subject fields
  • Different sections with titled headings (example: Introduction, Activities, Events, Problems)
  • One or more number lists or bullet lists (this list is an example)
  • MS Word or Mac Pages file format
  • Submitted via Schoology assignment link by 8:00pm (3 hours before 11:00pm deadline)

In: Computer Science

This assignment covers file I/O. Must design and code a program that can accomplish four things:...

This assignment covers file I/O. Must design and code a program that can accomplish four things: copy one file to another (i.e., place the contents of file A into file B), ‘compress’ a file by removing all vowels (a, e, i, o, u, and y) from the file, merge two files, and finally double each line of an input file, saving into an output file. Also make it so the input file's content can be changed from the example given. Please send a test run as well. Please and thank you for your help.

Program Specifications

The program should be menu driven with the top level menu being:

----------------------------------------------------------- Welcome to the File Copier

1) copy file A to file B

2) ‘compress’ file A (remove all vowels from the file), saving into file B

3) ‘double’ file A -- for each character in the input file, repeat it twice in the output file B.

4) ‘merge’ file A and file B saving into file C. (places all of file A in output file C, then adds all of file B after that into file C).  

5) quit the program

-----------------------------------------------------------

Appropriate user prompts shall be provided for each choice (e.g.; for selection 2, you must prompt the user for the name of files A and B). Be sure to keep asking them what they want to do until they ask to quit the program. Be sure to check for errors.

For reversing, and compressing a file here is an example:

Input file:

This is a test. The lazy dog ran over the moon.

Able was I ere I saw elba.

I don't know what to type.

Output File (doubled):

TThhiiss iiss aa tteesstt..    TThhee llaazzyy ddoogg rraann oovveerr tthhee mmoooonn..  

AAbbllee wwaass II eerree II ssaaww eellbbaa..

II ddoonn''tt kknnooww wwhhaatt ttoo ttyyppee..

Output File (compressed):

Ths s tst. Th lz dg rn vr th mn. bl ws r sw lb. dn't knw wht t tp.

In: Computer Science

discuss the importance of Continuing professional development (CPD) and its contribution to own learning?

discuss the importance of Continuing professional development (CPD) and its contribution to own learning?

In: Computer Science

This is a python 3.0 question, there are either 1 or 2 answers for each sub-question....

This is a python 3.0 question, there are either 1 or 2 answers for each sub-question.

Part i) Which of the following statements regarding the opening modes of a file are true?

Select one or more:

a. When you open a file for writing, if the file does not exist, a new file is created.

b. When you open a file for writing, if the file exists, the existing file is overwritten with the new file.

c. When you open a file for writing, if the file does not exist, an error occurs.

d. When you open a file for reading, if the file does not exist, the program will open an empty file.

e. When you open a file for reading, if the file does not exist, an error occurs.

Part ii) What is the data type of the value returned by the read() or readline() methods of a file object, assuming that file object is associated to a pure text file?

Select one or more:

a. int

b. It depends on the data type of the values stored in the file.

c. list

d. str

Part iii) Which of the following methods of a file object reads the entire file into a single string?

Select one or more:

a. readline() if and only if there are no newline characters in the file

b. readlines()

c. read_file_to_str()

d. read()

In: Computer Science

Please re-write and paraphrase all sentences. Introduction: It is among the earliest languages It was developed...

Please re-write and paraphrase all sentences.

Introduction:

It is among the earliest languages

It was developed by Sun Microsystems in 1990s

Applications:

JAVA is used in more then one development environments.

Java has the following outputs:banking applications,desktop applications and mobile operating systems among others.

Efficiency:

Java has is rated high as far as performance is concerned. It is a robust and object oriented programming language and programming environment very efficient in execution and implementation.

Java also has built in libraries that can be implemented at different stages in system development.

Security:

Java has well structured robust security features.

According to O'Reilly and Associates (O'Reilly & Associates, 2001), the language was designed and developed from scratch with security in mind.

Both the language and platform are secure.

Support:

Java developers are more than 9 million all around the globe (Oracle, 2016).

The Oracle corporation is determined to continue providing support to these developers and users.

Oracle's guaranteed supporttranslates to improved security and elimination of system vulnerabilities through updates.

Available Features:

Java provides platform diversity i.e.it can develop mobile phone applications and programs within web browsers.

Offers scripting of many different systems, web apps, phone apps.

It is also dynamic and extensible, that 1s, java code can be converted to other languages.

Suitable for Pine Valley Furniture:

Pine Valley Furniture can usejava to create secure systems, java will help them create scripted programs with design interfaces of their choice.

Python:

Introduction:

It is the most popular language released in 1991.

Applications:

Python is applied t almost every phase of system development.

It is as well used to write short scnpts buld multifaceted object-oriented design and deel application program interface.

Efficiency:

Python is very efficient due to its dynamic nature.

Python works perfectly without the need of a compiler.

It has the best readability and simplicity.

It has an explicit design.

Security:

Python is more secure as analyzed using the present vulnerabilities.

Python was ranked fifth in the present vulnerabilities at 5.45% by Jax Counter ("Which programming language is the most secure? High security vulnerabilities for Java have declined since 2015 JAXenter, 2020).

Java had 11.4% (3-) while rubyhad 4.25% (7).

Support:

It is used by Big tech companies such as Google, Instagram, Quora, and many more.

Python provides constant updates For example python sa legacy language and python 3 s a future language current being enhanced.

Available Features:

Simple syntax, more packages and libraries,easy to read and easy to code.

Very wealthy in terms of web capabilities,educational materials.

Easy function applications creation of pivot table, Boolean indexing plotting multi-indexing and missing files imputation.

Suitable for Pine Valley Furniture:

If Pine Valley Furniture wants to create a very simple and flexible system Python fits in perfectly .

Ruby:

Introduction:

It is among the earliest languages developed It was released in 1993

Applications:

Ruby develops programs with enhanced creativity thinking out of web development box

Ruby has developed several websites Le Twitter GitHub and SlideShare

Efficiency:

Ruby is desgnd tothe clap creative and experimental sites.

Ruby 15 a very flexible programing language and offers quick innovation bence fun to work with.

Security:

Ruby, compared to other popular languages, is more secure with only 4.25% vulnerabilities.

Support:

The fact that Airbnb, Twitter, GitHub, Kickstarter and SlideShare use Ruby language means continued support.

It is a high-end and multipurpose language that ensures fun and flexible programming.

Most programmers and companies are willing to donate to support it as well.

Available Features:

Its strength lies in metaprogramming and the creation of DSL (domain specific languages).

Has automated test scripts for experimentation and creativity.

Suitable for pipe valley Features:

If the Pine Valley Furniture desires to create a web app only, Ruby will be ideal.

Ruby can handle and control billions of traffic and user's data perfectly.

In: Computer Science

Please convert this to work in Oracle SQL: CREATE TABLE GUEST ( SSN number(10), name varchar2(20),...

Please convert this to work in Oracle SQL:

CREATE TABLE GUEST
(
SSN number(10),
name varchar2(20),
DOB date,
roomnumber number(10)
);
INSERT INTO guest VALUES (1,'Lucy','2019-1-8',301);
INSERT INTO guest VALUES (2,'John','2019-11-18',302);
INSERT INTO guest VALUES (3,'Smith','2019-2-6',303);
INSERT INTO guest VALUES (4,'Tom','2019-2-7',304);
INSERT INTO guest VALUES (5,'Harry','2019-10-9',305);
)

CREATE TABLE INVENTORY
(
itemnumber number(10),
itemneeded number(10),
iteminstock number(10),
dateofpurchase date
);
INSERT INTO INVENTORY VALUES (21,10,60,'2019-1-8');
INSERT INTO INVENTORY VALUES (22,20,70,'2019-1-11');
INSERT INTO INVENTORY VALUES (23,30,75,'2019-2-4');
INSERT INTO INVENTORY VALUES (24,20,55,'2019-3-7');
INSERT INTO INVENTORY VALUES (25,40,65,'2019-5-6');
)

CREATE TABLE VOLUNTEER
(
ssn number(10),
name varchar2(20),
dob date,
skills varchar2(20)
);
INSERT INTO VOLUNTEER VALUES (31,'Tim','2019-2-7','Beginner');
INSERT INTO VOLUNTEER VALUES (32,'Lucy','2019-3-11','Advanced');
INSERT INTO VOLUNTEER VALUES (33,'Jack','2019-1-2','Beginner');
INSERT INTO VOLUNTEER VALUES (34,'Alice','2019-4-18','Advanced');
INSERT INTO VOLUNTEER VALUES (35,'Bob','2019-3-6','Beginner');

CREATE TABLE SCHEDULE
(
volunteername varchar2(20),
volunteerdaysofwork number(10),
volunteerhours number(10),
guestname varchar2(20),
gueststaydate date
);

INSERT INTO SCHEDULE VALUES ('John',10,5,'Alex','2019-11-5');
INSERT INTO SCHEDULE VALUES ('Lucy',15,4,'Carolin','2019-11-6');
INSERT INTO SCHEDULE VALUES ('Alice',20,3,'Lisa','2019-11-7');
INSERT INTO SCHEDULE VALUES ('Bob',30,4,'Hayden','2019-11-7');
INSERT INTO SCHEDULE VALUES ('TIm',5,2,'Mathew','2019-11-9');

)

CREATE TABLE DONOR
(
donationnumber number(10),
donationamount number(10),
donationdate date,
donorsname varchar2(20)
);

INSERT INTO DONOR VALUES (41,500,'2019-10-3','Alex');
INSERT INTO DONOR VALUES (42,2500,'2019-9-15','Alex');
INSERT INTO DONOR VALUES (43,5200,'2019-7-25','Alex');
INSERT INTO DONOR VALUES (44,700,'2019-11-5','Alex');
INSERT INTO DONOR VALUES (45,2300,'2019-10-6','Alex');


)

In: Computer Science

Using Doubly Linked List, create a java code that does the following Without using LinkedList from...

Using Doubly Linked List, create a java code that does the following Without using LinkedList from the JAVA LIBRARY. and please include methods for each function.

Create a menu that contains the following operations :

1. Add new node to DLL. ( as a METHOD )

2. Delete a node from DLL. ( as a METHOD )

3. Show how many nodes in DLL. ( as a METHOD )

4. Print all data in the DLL. ( as a METHOD )

5. Exit.

Important notes :

1. Write the operations from the pseudocode.

2. The user should insert all data even in the first node.

3. The menu should be repeated each time until the user 5 (Exit).

In: Computer Science

What is a partition and disk formating?

What is a partition and disk formating?

In: Computer Science