Modify the scripts of Projects 1 and 2 to encrypt and decrypt entire files of text. An example of the program interface is shown below: Enter the input file name: encrypted.txt Enter the output file name: a Enter the distance value: 3
Q: Write a shell script to input two numbers as command line arguments. If the first number is minimum,…
A: Lets consider my current working directory is /home/sdpteam/Documents/Test Following is structure…
Q: Write a shell script to implement the following menu in an infinite loop. Every new appearance of…
A: An infinite loop is an endless looping construct that does not terminate the loop and executes the…
Q: 1. Write a Python script to save the dictionary words in the 'wordlist.txt' file, and then compress…
A: python script to store dictionary word and compress it to a zip file with protected password.
Q: the following must be done using shell scripting in linux The script will read from stdin The format…
A: i give this question answer in next step,
Q: XCOPY, like CACLS, has been deprecated, so we should avoid using it in a batch file. Group of answer…
A: Please find the answer in the next step:
Q: Write a shell script to print contents of a file from a given line number to the next given line…
A: We can write the bash script to take the starting line, number of lines and file name as command…
Q: The Caesar cipher is one of the earliest known and simplest ciphers. It is a type of substitution…
A: C++ program used to answer the above question:
Q: belo
A: given - Modify the scripts of Projects 1 and 2 to encrypt and decrypt entire files of text. An…
Q: Write a php script to get the filename component of the user entered file path. You may assume that…
A: Required:- Write a PHP script to get the filename component of the user entered file path. You may…
Q: Python 3.8.5 Shell File Edit Shell Debug Options Window Help Python 3.8.5 (tags/v3.8.5:580fbb0, Jul…
A: In This Program You are importing a package with is Not installed. Firstly Run Command on the Shell…
Q: Write a shell script that, given a filename as the argument will write the even numbered line to a…
A:
Q: Write a program that retrieves the text file from https://www.gutenberg.org/cac…
A: Write a program that retrieves the text file from https://www.gutenberg.org/cac…
Q: For this problem, solve by hand or write a program (perhaps in Python). If you write a program,…
A:
Q: Using Unix: Write a shell script that takes in an arbitrary number of files as arguments and then…
A: A shell script that takes in an arbitrary number of files as arguments and then returns the total…
Q: ou work for a small company that keeps the following information about its clients: • first name •…
A: def get_parts(str1): lst = str1.split(',') #Split a string into a list based on ','…
Q: Consider that we need to copy first 100 bytes from a binary file and paste that to another existing…
A: Explanation: Here in these questions, we are going to copy the source file into destination file…
Q: Write a brief answer to the following questions. A) The difference between copying and moving a…
A: A) Difference between copying and moving a file Copying a file is to create a duplicate of selected…
Q: Write a shell script to read file name from user and write the given below commands in a series. -…
A: Script: #! /bin/bash # exit the shell script if an error is encountered somewhere in the middleset…
Q: t that read a file name and specific line number from the user as a command line argument then…
A: Users communicate with the Kernel through a program known as a shell. Shell is basically a…
Q: Why is it critical for a programme to terminate an open file once it has finished utilising it? Give…
A: Introduction: To close an open file, follow these steps:
Q: Write a shell script to input two numbers. If the first number is maximum, display all the files in…
A: Code: echo "Enter number1: "read n1echo "Enter number2: "read n2if [ $n1 == $n2 ]then echo…
Q: PYTHON!!!!!! Modify the scripts of Projects 1 and 2 to encrypt and decrypt entire files of text.…
A: The, code has given below:
Q: Write and execute a PYTHON program to perform the following tasks. Create separate files for each of…
A: Given: write a python program to print the pattern
Q: Problem 2 ! For this problem, solve by hand or write a program (perhaps in Python). If you write a…
A: The problem is solved using python code, output of given example is:
Q: Write scripts to check the monitor the integrity of files in a specified directory.
A: Actually, program is an executable software that runs on a computer.
Q: Write a program in HACK assembly, without using symbols, that implements the described Feistel…
A: ```assembly@Ko = 1;@ptx = 2; // store the key in RAM[1] @ key = 0; MOV [1], key; // encrypt 16-bit…
Q: I need to create a Transposition Cipher in Java that runs in Eclipse. The programs need to ask the…
A: Code: import java.io.*;import java.util.*; // Class// For transposition cipherpublic class GFG {…
Q: you will try to use "brute force" to decrypt an encrypted message, where you only have the first…
A: Partial key b'\x01{:\xec<\x8e\xfc\x8b\x19\xf8#\xc0' Ciphertext2…
Q: Write down commands in Unix shell to read a name from standard input (keyboard) and write it into a…
A: 1) Unix shell to read a name from standard input (keyboard) We can use echo command to ask user to…
Q: Design a program in Python programming language which has the following points. Take input from…
A: Solution Code for the server import socket#import…
Q: python homerwork Select the correct script to write 'Hello!' in the file sample.txt for the…
A: Answer is option C. f = open(sys.argv[2], 'w') f.write(sys.argv[1]) f.close() f = open(sys.argv[2],…
Q: Experimenting with AES-128 symmetric key cipher.using python PART 2: you will try to use "brute…
A: Actually, python is a easiest programming language. It is a dynamically typed programming language.…
Q: 3. Write a Python script to save the dictionary words in the 'wordlist.txt' file, and then compress…
A: Algorithm: Start Store "wordlist.txt" in wordlist Store "protected.zip" in zipFile Initialize the…
Q: Write a script to determine whether a given file system or mount point is mounted, and output the…
A: I have answered this question in step 2.
Q: We can use this parameter from the Start-Job cmdlet to create and start a standard background job…
A: When you run a command in a PowerShell session, the session is effectively blocked until the command…
Q: ähäi 15 The following problems can be solved by writing commands in the command window, or by…
A: As per the guidelines we are allowed to answer only the first question. - The question is to…
Q: how to encrypt """ File: decrypt.py Project 4.3 Decypts a file of encrypted text. and prints the…
A: decrypt.py Here decrypt a file of encrypted texts in line by line into another file. So input a…
Q: äbäi 15 The following problems can be solved by writing commands in the command window, or by…
A: Note: Answering the code in python as no language is mentioned. Input : Given two expressions.…
Q: Write a Bash script to output the following sequence using any of the loops.…
A: I have given code below
Q: 7. A Caesar cipher is a simple substitution cipher based on the idea of shifting each letter of the…
A: According to the question below the solution: Output:
Q: Q-2: Write a shell script which can read all the lines from a file, and this should able to delete…
A: use vi bash.sh echo enter filename read f awk ‘NR % 2 == 0’ $f
Q: What is the difference between worms and viruses ? A. O A virus replicates itself and a worm does…
A: Write the difference between worms and viruses. Choose the right option from the given options: A. A…
Q: Write and execute a PYTHON program to perform the following tasks. Create separate files for each of…
A: Note: we are only allowed to solve one question in one post. I am solving the first on here. To get…
Q: Write a java program to create a file called password.txt
A: Java Program: // importing Fileimport java.io.File; class Files{ public static void main(String[]…
Q: Java program with a simple encryption. Read from a file specified by the user and encrypt the…
A: Required: Java program with simple encryption. Read from a file specified by the user and encrypt…
Q: Write a shell script to read your name , output it, and create a file with {your_name }_file.
A: Given question regarding shell script.
Q: Write a shell script that, given a file name as the argument will count the number of English…
A: # Given filename is hounds# First Ask User for file nameecho "Enter the Name of File"# Store File…
Q: Unix time/ Epoch time is the number of seconds since midnight of January 1st 1970. Given the text…
A: (answer):- sudo chmod 777 gpgencryption.sh 4=read 2=write 1=execute
Q: Implement a system of three processes which read and write sequence numbers to a file. Each of the…
A: The Numbers that are read by the processes P1,P2,P3 not always unique .if we use File descripter…
Q: Q1) The following problems can be solved by writing commands in the command window, or by writing a…
A: Required: None
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 7 images
- Lap Timer Tool Write a Python (GUI program) that asks the user to enter the number of times that they have run around a racetrack, and then uses a loop to prompt them to enter the lap time for each of their laps. When the loop finishes, the program should display the time of their fastest lap, the time of their slowest lap, and their average lap time.PLEASE COMMENT CODE In a python program, create a new file and call it “ tracking”. Write to it four lines each contains information about an order like this: 1-00654-021 Dell charger Toronto-WEST 99-49-ZAD011-76540-022 ASUS battery Milton-EAST 34-56-CBH561-09239-026 HP HD Scarborough-NORTH 12-98-AZC451-12349-029 Mac FD North York-LAWRENCE 34-49-ZWL01Add the file two more lines: 1-34567-055 Lenovo SSD Milton-ON 34-09-MT04 1-90432-091 Lenovo battery Oakville-ON 78-KL98 Define a function that searches for a brand (e.g. Dell, ASUS, etc.). Test the function in your program.Virus DNA files As a future doctor, Jojo works in a laboratory that analyzes viral DNA. Due to the pandemic During the virus outbreak, Jojo received many requests to analyze whether there was any viral DNA in the patient. This number of requests made Jojo's job even more difficult. Therefore, Jojo ask Lili who is a programmer for help to make a program that can read the file containing the patient's DNA data and viral DNA and then match them. If on the patient's DNA found the exact same string pattern, then write to the index screen the found DNA. Data contained in the file testdata.in Input Format The first line of input is the number of test cases TThe second row and so on as many as T rows are the S1 string of patient DNA and the S2 string of viral DNA separated by spaces Output Format The array index found the same string pattern. Constraints 1 ≤ T ≤ 1003 ≤ |S2| ≤ |S1| ≤ 100|S| is the length of the string.S will only consist of lowercase letters [a-z] Sample Input (testdata.in)…
- Latest version of NetBeans IDE Java Development Kit (JDK) 8 Create a folder named Dahan_yoon in your local Create a new project named LabExer5A. Set the project location to your own The program shall: generate a random number from 1 to 50 for a player to guess; display a message that indicates whether the player’s guess is correct, too low, or too high; and prompt the user to keep on guessing until the correct value is entered Create a try-catch structure that will handle two (2) exceptions. These are when the user inputs the following: a number that is out of range (1 – 50) a letter or any non-numeric character Prompt the user so that he can guess again if an exception is Display the number of total Note: An invalid input (when an exception is thrown) is not considered a valid guess or attempt.Computer Science Using Java language Write a procedure that generates a regular heightfield in data-files/model/heightfield.off with elevation given by the grayscale values of an image file. Use a file dialog to select the file, a number box to scale the xx and zz integer coordinates by, and a number box to set the scale that 1.0 corresponds to for height. Make a button labelled “Generate” that launches the generator. Display a message on screen while generating and then flush the G3D::ArticulatedModel cache, and reload the current scene on completion.Using Java PrintWriter, write a program that prompts the user for information and saves it to a text file File name is musicians.txt Use this information below: George,Thoroughgood,54321 Ludwig,Van Beethoven,90111 Edward,Van Halen,12345
- please code in python A tweet is a string that is between 1 and 280 characters long (inclusive). A username is a string of letters and/or digits that is between 1 and 14 characters long (inclusive). A username is mentioned in a tweet by including @username in the tweet (notice the username does not include the @ symbol). A retweet is way to share another user's tweet, and can be identified by the string RT, followed by the original username who tweeted it. Your job is to fill in the function count_retweets_by_username so that it returns a frequency dictionary that indicates how many times each retweeted username was retweeted.tweets = ["This is great! RT @fakeuser: Can you believe this?", "It's the refs! RT @dubsfan: Boo the refs and stuff wargarbal", "That's right RT @ladodgers: The dodgers are destined to win the west!", "RT @sportball: That sporting event was not cool", "This is just a tweet about things @person, how could you", "RT…1. Random numbers File: random_numbers.py (Quick note: NEVER name your files the same as a Python module. If you call this file random.py it won't let you import the real random.) (Another quick note: Don't let yourself get stuck on something for too long. If one part of one question starts taking you too long, just leave it, move on and come back to it later.) Write a complete Python program that ask the user for quantity of random numbers and a maximum, then generates and store that many numbers between 0 and the maximum. When you've got this part working, add the following interesting additions: minimum maximum random choice from existing list (Hint: if there are 7 numbers it will be a number at a random index 0-6) the list reversed* the list sorted* Note*: Python's .reverse() and .sort() list methods do NOT return the reversed or sorted list... they modify the list in place.So, if you write something like: print(numbers.sort()) You will not get what you expect. You'll sort the…Using PHP Write a program using PHP programming language that reads the user name and password from a login form Login.html Login.php And then writes them in a text file(logos.txt).
- ⦁ Perfect Pizza wants to install a system to record orders for pizza and chicken wings. When regular customers call Perfect Pizza on the phone, they are asked their phone number. When the number is typed into a computer, the name, address, and last order date is automatically brought up on the screen. Once the order is taken, the total, including tax and delivery, is calculated. Then the order is given to the cook. A receipt is printed. Occasionally, special offers (coupons) are printed so the customer can get a discount. Drivers who make deliveries give customers a copy of the receipt and a coupon (if any). Weekly totals are kept for comparison with last year’s performance. ⦁ Write a summary of business activities for taking an order at Perfect Pizza.⦁ Draw a context-level data flow diagram for Perfect Pizza⦁ Explode the context-level diagram in b showing all the major processes. Call this Diagram 0. ⦁ Draw a logical child diagram for Diagram 0 in c for the process…Should not be case sensitive when getting the column name. Use python language for a program that modifies and sorts the content of a specific csv file based on the inputted column name. The program should ask Enter filename: Enter column name to be sorted: Additionally, the csv file must be modified and no additional csv files must be created. The application will catch and display an error message "the file does not exist" if the csv file does not exist.Task3: Program an encryption tool that uses XOR operation to encrypt the message. (Note: the key should be numerical) Hint': you must encrypt all letters of the "plaintext" variable. Hint?: you have to iterate through all letters to encrypt them. Hints: you can use ord() method, to receive each character Unicode https://careerkarma.com/blog/python-ord/ "The text to be encrypted" plainTxt key = "432457" %3D Here's the output: [W@VJAG]VVPZPOL[CFPP plainTxt = "The text to be encrypted" key "theKey" %3D The key must be numbers