directory is basically a list of names paired with inode numbers. When a directory is first created what are the default names in the list, if any? If here are none write none in both fields below. If there are two, list the shorter name first.
Q: This C++ menu-driven program on LIBRARY MANAGEMENT SYSTEM has book and student class with data…
A: Program #include<fstream> #include<iostream> #include<stdio.h>…
Q: Lists and tuples are both mutable objects Select one: O True False Files are used to permanently…
A: In python, List: The list is a data structure to store the collection of data. It contains…
Q: What value does the sizeof operator return for: A pointer to an integer A pointer to a double A…
A: sizeof() operator: - It is a unary operator(compile-time) which is used to find the size of its…
Q: A __________ object is an object that is associated with a specific file and provides a way for the…
A: The file object enables us to utilize, access, and manipulate every user-accessible file. One can…
Q: write asimple code using python language toread from an external file called "data.txt" and print…
A: By given problem, the requirement is to write a program to read from an external file called…
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: Program a python program that demonstrates reading and comparing Create a python program…
A: According to the information given:- We have to follow the instruction to get the desired outcome.
Q: he teacher at a school needs help grading an exam with a number of True/False questions. The…
A: Required: The student’s ID is ABC54102, answer to question 1 is True, the answer to question 3 is…
Q: Given the variable names pathName contains a string describing a directory path, write a statement…
A: Note- since programming language is not specified we providing answer in python programming. Answer…
Q: By using the C language, generate a computerized student record consisting of name, matric number…
A: Coded in c language.
Q: This is the question I am stuck on - A personal phone directory contains room for first names and…
A: Actually,given NamePhone #Gina(847) 341-0912Marcia(847) 341-2392Rita(847) 354-0654Jennifer(414)…
Q: What is printed? def user_print(user_list, my_mod=2, private=True): for counter, user in…
A: Answer in step2
Q: Create a program that reads the contents of a names text file into a list. Ask the user to enter a…
A: The prerequisite for this code is to create a file "names.txt" with all the content in it. The file…
Q: FoodOrder # date: Date # foodOrderlID: int - foodPrice: double # DISCOUNT: double + FoodOrder() +…
A: The java files below are the best I could achieve with this info! Some information about the…
Q: written in Java.
A: Complete explanation is given below.
Q: A file that contains program code is called a(n) __________.a. destination code fileb. executable…
A: Solution: option D : source code file
Q: Challenge Activity 1: Word List File Writer and Reader (a)Write a console and GUI program using…
A: Step 1: Prompt and accept the number of words to write to file from the user. Step 2: Prompt and…
Q: One of your colleagues has started to a new project, which is a shop to sell mobile phones, and…
A: ALGORITHM:- 1. Take input for the items. 2. Store them into the array object of class Equipments. 3.…
Q: def create_dict_by_region(directory_path, number_of_regions): """ Given a directory of files with…
A: Code for above function :- def create_dict_by_region(directorypath, number_of_regions): dict1 =…
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: Plotting linear and quadratic equations Write a program graph.py that prompts a user for three…
A: import matplotlib.pyplot as plt import numpy as np x = np.linspace(-5,5,100) y = 2*x+1 plt.plot(x,…
Q: Using Python, write a program which opens a text file and loads the data into a dictionary where the…
A: Introduction : Here I am give step by step solution of the given problem . TextFile.txt
Q: ser look up a person’s email address, add a new name and email address, change an existing email…
A: given - #code should be in python with comments as they are helpful for me to understand what you…
Q: A personal phone directory contains room for first names and phone numbers for 30 people. Assign…
A: The code is almost perfect, there were small changes that were needed. When ( Enter the limit the…
Q: In Linux, the file system layout, /bin is for O a. driver files O b. executable files paging files O…
A: here, I have to choose an option for the above question.
Q: True or False: A portion of a “deleted” file may befound in a computer’s unallocated…
A: Please find the answer below :
Q: #include #include #include using namespace std; #define M 100 int count=0; struct AddressBook{…
A: According to your given program, it is very well written and completely fine.
Q: . Write a program that add a new column to ‘B1.csv’ file named as Sequence then read multiple…
A: Coding
Q: Modify the program on computerized telephone directory (see in this pic) by adding an address. As…
A: MULTIDIMENTIONAL ARRAY: it is known as array of array where as the data's are stored in tabular form…
Q: This is the question I am stuck on - A personal phone directory contains room for first names and…
A: import java.util.*; public class Main { public static void main(String[] args) {…
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: Let's finish working on our booking system. The last part for our booking system will be to manage…
A: Given :- Let's finish working on our booking system. The last part for our booking system will be…
Q: This is the question I am stuck on - A personal phone directory contains room for first names and…
A: package Java.C.c; import java.util.*; public class LongestLine { publicstaticvoidmain(String[]…
Q: A Comma Separated Value (CSV) text file called movies.txt is located in the directory of your…
A: Program: import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import…
Q: in visual studio 2019 The GetCurrentDirectory method of Directory class is used to return the…
A: In visual studio 2019 ,The GetCurrentDirectory method of Directory class is used to return the…
Q: The linker utility combines a program's with one or more object files and b [ Choose ] b [Choose ]…
A: According to the information given:- We have to chose the correct option to satisfy the mention…
Q: Write a Python program to create a table and insert some records in that table. Finally selects all…
A: import sqlite3 from sqlite3 import Error def sql_connection(): try: conn =…
Q: Write a Python program to create a table and insert some records in that table. Finally selects all…
A: Python program to create a table and insert some records in that table. Finally selects all rows…
Q: Write operations that can be performed on a directory.
A: Question. Write operations that can be performed on a directory. Answer. Some operations that can…
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: Alice used a password to create a zip file secret.zip which contains only a secret.txt file. The…
A: To solve this problem let's first understand what is already given in question: A locked zipped…
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: The given text files represent a list of account numbers and associated balances. Balances change…
A: here in the question ask for read data from a file and perform some operation on it and display it…
Q: The Directory.txt file contains names of the employees and their phone numbers in the following…
A: Required:
Q: all word files (Le has extension docx or doc) in the root directory "C:", which have size larger…
A: As there is no programming language specified, we are using Java here to find the .doc/.docx files
Q: Write a program that prompts the user to enter a text file name (either mbox.txt or mbox-short.txt),…
A: #file name input name = input("Enter file:") fh = open(name) #dict mails ids and count master =…
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- PHONE DIRECTORYDescription: Create a phonebook directory that will store the contact numbers of N persons. Your program should allow the user to add, view, delete, and update the contacts in the phonebook. Note that one person can have multiple contact numbers. The program will stop when the user command is ‘X’. Program command and entry should not be case-sensitive. That means commands ‘I’ or ‘i’ and the name “Jacky” or “JACKY” are the same. Each contact number can be 7 digits or 11 digits only. The user should input a string containing the command, name, and contact number(s) (Limit the contact number of each person to three). This string should be broken down into fields in order to separate the different values and store them in their appropriate variables. Use linked list in the implementation. Your node must declare at least four instance variables. Program flow: Command> I Jacky 09211234567 Remarks: New contact has been added. Command> V Jacky Contact…This is the question I am stuck on - A personal phone directory contains room for first names and phone numbers for 30 people. Assign names and phone numbers for the first 10 people. Prompt the user for a name, and if the name is found in the list, display the corresponding phone number. If the name is not found in the list, prompt the user for a phone number, and add the new name and phone number to the list. Continue to prompt the user for names until the user enters quit. After the arrays are full (containing 30 names), do not allow the user to add new entries. Use the following names and phone numbers: Name Phone # Gina (847) 341-0912 Marcia (847) 341-2392 Rita (847) 354-0654 Jennifer (414) 234-0912 Fred (414) 435-6567 Neil (608) 123-0904 Judy (608) 435-0434 Arlene (608) 123-0312 LaWanda (920) 787-9813 Deepak (930) 412-0991 This is the code I have done so far but I know I am missing pieces or messing it up fully - import java.util.*; class PhoneNumbers…This is the question I am stuck on - A personal phone directory contains room for first names and phone numbers for 30 people. Assign names and phone numbers for the first 10 people. Prompt the user for a name, and if the name is found in the list, display the corresponding phone number. If the name is not found in the list, prompt the user for a phone number, and add the new name and phone number to the list. Continue to prompt the user for names until the user enters quit. After the arrays are full (containing 30 names), do not allow the user to add new entries. Use the following names and phone numbers: Name Phone # Gina (847) 341-0912 Marcia (847) 341-2392 Rita (847) 354-0654 Jennifer (414) 234-0912 Fred (414) 435-6567 Neil (608) 123-0904 Judy (608) 435-0434 Arlene (608) 123-0312 LaWanda (920) 787-9813 Deepak (930) 412-0991 I asked my teacher for help and he sent me this but it just confused me more - When the user types in a name that is not…
- This is the question I am stuck on - A personal phone directory contains room for first names and phone numbers for 30 people. Assign names and phone numbers for the first 10 people. Prompt the user for a name, and if the name is found in the list, display the corresponding phone number. If the name is not found in the list, prompt the user for a phone number, and add the new name and phone number to the list. Continue to prompt the user for names until the user enters quit. After the arrays are full (containing 30 names), do not allow the user to add new entries. Use the following names and phone numbers: Name Phone # Gina (847) 341-0912 Marcia (847) 341-2392 Rita (847) 354-0654 Jennifer (414) 234-0912 Fred (414) 435-6567 Neil (608) 123-0904 Judy (608) 435-0434 Arlene (608) 123-0312 LaWanda (920) 787-9813 Deepak (930) 412-0991 This is the code I have. I have gotten 1 out of the 4 checks right - import java.util.*; class PhoneNumbers { public static…Python: if possible answers in one line of code def name_sort(staff): ''' Question 2 You are given a list of Georgia Tech staff members- each with a first and last name separated by a space, and need to sort them alphabetically by last name for a directory. However, the person who provided you the list did not proofread the records and accidentally misspelled some of the names. You can identify which ones have typos just by looking at the first letter of the first name. - First, sort the list alphabetically by the last name. - Remove any members whose first name starts with "Q" or "X". - Return the resulting list. Args: staff (list) Returns: list >>> name_sort(['Damon Williams', 'Xngel Cabrera', 'George Burdell', 'Brett Key', 'David Joyner', 'Qon Lowe']) ['George Burdell', 'David Joyner', 'Brett Key', 'Damon Williams'] ''' # print(name_sort(['Damon Williams', 'Xngel Cabrera', 'George Burdell', 'Brett…If a file contains an index directory that allows for random access, what does it mean?
- 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 PlotGiven the variable names pathName contains a string describing a directory path, write a statement that will store the names of all files in a List structure named volume. DO NOT traverse the path/directory. You are only interested in the immediate path. You may assume that any neccesay statments already exist.The minimum permissions you need to read the contents of the directory dir1 is: x on dir1 rwx on dir1 Or on dir1 rx on dir1
- 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?Unix assignment Purpose: The purpose of this assignment is to use various concepts of the C Shell. 0. Change your default login shell to the C Shell. 1. Create a .cshrc file in your home directory that will do the following: * Create the alias (lsall) that will do all of the following: display the date, and a recursive long list of all files in a directory. * Create the alias (whoson) that will display the date and a sorted list of users logged in. * Declare the LOCAL variable that controls the size of your history list to the value 200. * Declare the shell variable that will cause the C Shell to send a message to your terminal whenever one of your background commands complete. 2. Create a .login file in your home directory to do the following. * Declare the GLOBAL Terminal Type variable to the value vt100. Display the value of the variable. Logout and log back in to make sure your .cshrc and .login files are automatically executed. Create a lab8.scr…Java assignment Create a java program that allows a user to input customer records (ID number, first name, last name, and balance owed) and save each record to a file.