USE PYTHON Generate a computerized telephone directory for a cellular service consisting of name and cell phone number. Present the user with a menu that allows the user to search the directory for a specified record, insert a new record, delete an existing record, or print the entire phone list.
Q: 2. In the Python programming language, write a program to input the name of a file and print the…
A: A filename expansion, record name augmentation, or document expansion is an addition to the name of…
Q: How can i find the path of executing file in the python language.
A: Required:- How can I find the path of executing files in the python language? Approach:- We can…
Q: Write a python program that will ask the user for their grocery list, one item at a time, and will…
A: here in given question ask for write program in python as per question staatement.
Q: With your knowledge in file systems write a java programs the can be used to: Rename a file in a…
A: Please find the answer below :
Q: By using the C language, generate a computerized student record consisting of name, matric number…
A: Coded in C language, verify the variable names.
Q: Task 3 (a) User want to open a directory form the root and read the files are available in that…
A: Directory is type of collection which holds information, such as file’s location, permissions,…
Q: What is the difference between a file and a directory?
A: What is the difference between a file and a directory?
Q: What directory structure does a Window file system have? What about a UNIX file system? Choose…
A: The correct answer along with the explanation is given below.
Q: SOLVE IN C# A bank store its client balance in amount.txt file as follow 332000 2320000 540000…
A: using System;using System.IO;class MainClass { public static void Main (string[] args) { int…
Q: Write and execute a PYTHON program to perform the following tasks. Create separate files for each of…
A: Answer the above question are as follows:
Q: MS-Windows added two new date fields to the original MS-DOS file directory entry. What are their…
A: Microsoft Windows added two new date fields and they are last accessed date and last modified date.…
Q: Write a PYTHON program that creates a new folder called “piop-folder” inside the current directory…
A: 1.Firstly,we are importing a operating system package to interact with the operating system. import…
Q: The MINIX filesystem supports filenames of 60 characters (and allocates all 60 characters in the…
A: GIVEN: The MINIX filesystem supports filenames of 60 characters (and allocates all 60 characters in…
Q: main.c Task 3 (a) User want to open a directory form the root and read the files are available in…
A: Algorithm: Start Define a pointer to directory entry Using opendir(), open the directory and assign…
Q: Suppose that the name of a file in a computer directory consists of three digits followed by two…
A: The solution for the above given question is given below:
Q: Write a program that reads a file “source.txt” and copies it’s all contents to another file…
A: #include <iostream>#include <fstream>using namespace std; bool is_vowel(char &ch) {…
Q: What is the difference between a text file and a binary file? Is it possible to view a text or…
A: Introduction: Text files are those in which the data is kept in a human-readable format.
Q: Construct the directory structure as given below under the desktop of your computer, Rectangular box…
A: md : stands for make directory copy NUL filename.txt to create empty file You can also use…
Q: In Python Define a function writeScores with two parameters. The first should be the name of a file,…
A: Below is the approach and python code:Approach:Define a function “writeScores” having two parameters…
Q: Hi. Can anyone help me change filenames in a directory to another directory based on a list in a…
A: Code is given below import os for path, subdirs, files in os.walk('\Users\user\Desktop\Test_Py'):…
Q: The Accounting department wants to create a list of book codes, titles, and prices. Export the…
A: We have a table called BOOK. We need to select only the following columns : code, title, price. We…
Q: Computer Science Write a C/C++ program, call it findExt, to find all files in a directory…
A: the code for above program is given below
Q: Write a complete C or C++ program to implement a digital music archive program. The program should…
A: Given: C++ program for digital music archive Menu: 1- Add a new song to directory 2- Delete a song…
Q: What UNIX utility can read an Execution and Linkable Format file's contents?
A: Executable and Linkable Format is a common standard file format for executable files, object code,…
Q: Write a program that will read a file from the user and writes its content in another file such that…
A: required: Write a program that will read a file from the user and writes its content in another file…
Q: UNIX please answer in sentences and examples - as brief as possible, concise - nothing more than one…
A: rmdir will just eliminate void catalogs while rm - r will eliminate registries and documents inside…
Q: Write a shell program that counts the number of files in a given directory.
A: 1. create a .sh script file using any method you can even use touch filename.sh2. open up and…
Q: Write a python program to print the nth row from a text file which is placed in the same directory.…
A: Here I have to write a python program to the above question.
Q: Write a python program that has the following functionality: 1. read input from a file containing a…
A: Task :- Write a python program to read words from input file and write to output file selecting one…
Q: Write a program that removes *~ and *.ico files from a directory hierarchy. (Hint: Use the…
A: -> strict : It makes you to code properly to make your code less error-one. -> warnings :…
Q: What are the differences between a source file and a listing file?
A: Introduction: Machine code is binary code (1s and 0s) that may be performed directly by the CPU. If…
Q: Write a complete C or C++ program to implement a digital music archive program. The program should…
A: /* This is a C++ program to implement a digital music achieve…
Q: Create a python program that reads the contents of a names text file into a list. Ask the user to…
A: Take input name to be searched from user. Open the file names.txt and read all the lines using…
Q: Write a python program to get the absolute path of file and you should take the file from user
A: Required:- Approach:- we can easily do it using the os module. firstly take the file name from the…
Q: In a sequential access file, the text A(n) is an example of text that has been saved.
A: We show sequential-access files using text files initially, which allows the reader to create and…
Q: Create a file inside a directory in python
A: filePath = "C:/Users/Surya/Desktop"#directory path, change path as per ur needfileName=…
Q: The editor window is used for: (Hint: Open MATLAB and check for yourself! ) a. Displaying the…
A: The editor window is basically a text editor where we can edit and save complete matlab code.
Q: Write a Java program to file student information in a student directory of your project folder.…
A: Below is the complete java code with comments.Snapshots of the output console are also attached.…
Q: directory is basically a list of names paired with inode numbers. When a directory is first created…
A: A directory is collection of files which stores and arrange files in sequence. When you don't give…
Q: This week assignment is from file processing. • Read a file Count number of lines • Count number of…
A: This assignment is for the file processing. Create a random file. Read the data from the file.…
Q: Answer This question paper within 1500-1700 words and send me the answer in a text file
A: The primary objective of a computer system is to run user programmes and simplify tasks. This task…
Q: • Make a directory name • Make a directory name called in your home directory Make a filename call…
A: Linux commands to perform all the operations given below.
Q: Suppose a file contains student's records with each record containing name and age of a student.…
A: In below c program a student attributes are taken like age,name,rollno and print their names in…
Q: What ramification does reading numeric data from files have in Python? What Python function is used…
A: The solution for the above given question is given below:
Q: Python 3 Given that a variable named pathName contains a string describing a directory path, write…
A: named pathName contains a string describing a directory path, write a single Python statement that…
Q: Write a C++ program to create a file with variable length records.The records in the file are of two…
A: Here I have code for you in C++ were you can differentiate given code into employee base and student…
Q: A file is typically large list that is stored in -- memory of a computer. O a. Depends on the…
A: A computer file is a computer asset for recording information in a computer stockpiling gadget.…
Q: Write a Python program to count the number of lines in a text file.
A: The required python program has been provided by using the readlines() function of python.
Q: Write a complete C or C++ program to implement a digital music archive program. The program should…
A: void save2file(){ // openig file in appand mode ofstream fo; fo.open("song.txt", ios::app);…
USE PYTHON
Generate a computerized telephone directory for a cellular service consisting of name and cell phone number. Present the user with a menu that allows the user to search the directory for a specified record, insert a new record, delete an existing record, or print the entire phone list.
Step by step
Solved in 2 steps with 2 images
- You are a cyber investigator, your task is to write a python program that can read file signatures from a file and save them into a list. Each file signature is an element of your list. Then, try to find out if there is a JPG file in there. If there is a JPG file, print out a True on screen. (File Signature for JPG file is: FF D8 FF DB) The input file is: FSCS360_Midterm_Exam_Part2.txtPython: I am trying to write a simple GUI based program with two input fields “Directory/filename” and “word” next to each other and one output text field below. Using recursion the program should go through all the files and folders searching for the entered word. If a match is found the path to the file should be printed in the text field + the content of line the word is found in . It should also print how many folders and files has been searched and how many times the word was found. Any ideas?A temperature file consists of five records, each containing a temperature in degrees Fahrenheit. A program is to be written that will read the input temperature, convert it from degrees Fahrenheit to degrees Celsius and print both temperatures in two columns on a report. Column headings, which read ‘Degrees F’ and ‘Degrees C’, are to be printed at the top of the page. What ist he best solution algorithm to successfully implement the above question?
- Hi there, could you help me with this ? with explanation please! 2. Develop a program that asks for the user's name, phone number, and address. The program then saves all information in a data file (each information in one line) named list.txt. Finally, the program reads the information from the file and displays it on the screen in the following format:Name: User's Name Phone Number: User's Phone Number Address: User's Street Address User's City, State, and Zip CodeIn python, rite a recursive function, displayFiles, that expects a pathname as an argument. The path name can be either the name of a file or the name of a directory. If the pathname refers to a file, its filepath is displayed, followed by its contents, like so: File name: file_path Lorem ipsum dolor sit amet, consectetur adipiscing elit... Otherwise, if the pathname refers to a directory, the function is applied to each name in the directory, like so: Directory name: directory_path File name: file_path1 Lorem ipsum dolor sit amet... File name: file_path2 Lorem ipsum dolor sit amet... ... Test this function in a new program.Create a program in C language for reading and writing student records. Submit all necessary source codes and files to run this program (it is recommended to compress all files and submit a single file). First create text file "student_records.txt". The file should look like: Name Surname Quiz 1 Quiz 2 Quiz 3 Ada Lovelace 93 88 97 Babbage Turing Нopper Charles 26 80 70 Alan 74 85 92 Grace 99 87 100 a. Read the file contents and load them into an array of Record structs. b. The record struct has the member variables: o char array name o char array surname o int quiz_1 o int quiz_2 o int quiz_3 c. Write a function that calculates a students quiz average. The function takes a Record struct and returns a double. d. Create two new records for students inside your main program. e. Create a new text file with the new records to a a file called "student_records_new.txt"
- Modify the program on computerized telephone directory (see in this pic) by adding an address. As the user enters the name, the telephone number and address will display.Suppose a file contains student's records with each record containing name and age of a student. Write a program to read these records and display them in sorted order by name. Use C language to write a program.Write and execute a PYTHON program to perform the following tasks. Create separate files for each of the tasks in Anaconda given below. 1. Consider the courses you are taking this term. Create a list to store the course codes, and another list to store the course titles. Use a loop to add each course to your new course dictionary. 2. Add to the program you wrote above, to allow for changes during the add/drop period. Loop until the user enters 'DONE' and allow for additions and removals from your course dictionary. 3. Write a decorator function to capitalize names
- Python Create a program that reads the file (create a paragraph in a file). It should analyze each character of the file. For output, it should produce a well-formatted table indicating: The total number of printable characters The total number of capital letters The total number of lowercase letters The total number of numbers The total number of sentences (which end in a period) The total number of paragraphs (which end in a newline) Since the lab is an exercise in strings, you must use at least TWO different string methods to required information. And each stastic will need its own function.How to search for a user from the text file using the user id and then let the program display the user's details. The program should display the user's details as follows: user_id, first_name, last_name, gender, age, phone, and address. C++ coding using a doubly-linked list.Plotting linear and quadratic equations Write a program graph.py that prompts a user for three coefficients a, b, and c comma-separated. Next, in the same figure: Plot the linear equation y = ax + b. Plot the quadratic equation y = ax^2 + bx + c. Create a directory named equations in the current working directory and save the figure as graph.png in the directory equations. Your figure should include at least: A title: Linear and quadratic equations. Axis labels: x values and y values A legend: ax + b and ax^2 + bx + c where a, b, and c are the provided coefficients. Grid lines Your plot should cover only all the integers in the closed interval [-10,10] using a linear scale. Sample Output Enter coefficients: 12,6,4 Plot