In: Computer Science
Please create (if not already in your linux home directory) files of any type. Once these files are created, archive them, compress the archive and move these files to the thrash directory. This could be a script to be run from the shell or the script to be run from an executable file.
Submit your code and clearly explain all steps of your script.
In: Computer Science
Write pseudocode for quick find algorithm anf quick union algorithm
Write pseudocode for quick find algorithm and quick union algorithm
In: Computer Science
quicksort the array step by step
63,19,32,11,87,3,87,24,48,39
In: Computer Science
Create a generic method to print objects in java. Include a tester class.
In: Computer Science
Linux
Create a simple 'user' file -user name, user id, some few other
fields (at your discretion). Name it 'users'. Enter about 10
entries there.
Create a simple 'user_data' file -user name, phone, address etc at your discretion.. User names in both files should match. So there would be 10 users in both files. You probably want to do these files as tab -separated, rather than space separated.
In: Computer Science
Why was the class-ful IP addressing scheme changed to class-less (CIDR) addressing?
In: Computer Science
In: Computer Science
In: Computer Science
Make a function that swaps the values that change the values between the parameters as the following rule.
The functions swap takes 2, 3 or 4 parameters and these functions are implemented as the overloading functions.
In: Computer Science
Write a Python program in a file called consonants.py, to solve the following problem using a nested loop. For each input word, replace each consonant in the word with a question mark (?). Your program should print the original word and a count of the number of consonants replaced. Assume that the number of words to be processed is not known, hence a sentinel value (maybe "zzz") should be used. Sample input/output:
Please enter a word or zzz to quit: Dramatics
The original word is: dramatics
The word without consonants is: ??a?a?i??
The number of consonants in the word are: 6
Please enter another word or zzz to quit: latchstring
The original word is: latchstring
The word without consonants is: ?a??????i??
The number of consonants in the word are: 9
Please enter another word or zzz to quit: YELLOW
The original word is: yellow
The word without consonants is: ?e??o?
The number of consonants in the word are: 4
Please enter another word or zzz to quit: zZz
In: Computer Science
In: Computer Science
Use Python 3, please type.
Write a Python 3 program which is an arithmetic quiz for children. The program asks the user to calculate the multiplication of two numbers generated at random in your code. The numbers should be in the range 1 through 10. User input is shown in bold black font in the example below.
You will need to use random numbers. You should type the recommended comments at the top of your code and include three test runs in the comments.
Example program run:
Please enter the result of multiplying 6 x 7 :
42
Correct.
Another question? (y/n):
y
Please enter the result of multiplying 2 x 7 :
13
Incorrect.
Another question? (y/n):
n
You scored 1 out of 2. That is 50% and letter grade": P
In: Computer Science
Please fill the following blank with a proper “option” so that the sizes of the files can be displayed in either K or M units as shown below.
$ ls –l –S -r ______________________ /bin | tail -2
-rwxr-xr-x 1 root root 998K 2017-05-16 bash
-rwxr-xr-x 1 root root 1.9M 2019-03-27 busybox
$
In: Computer Science