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
- 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 - import java.util.*; class PhoneNumbers { public static void main(String[] args) { // Write…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…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 done so far but I know I am missing pieces or messing it up fully - import java.util.*; class PhoneNumbers…A directory is also an object that should have access restrictions applied to it. Why does it not seem acceptable to enable users to make changes to their own directory structures?This is the question I am struggling with - 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 one out of the four checks so somewhere I am either over complicating it or I just…
- Let's use decorators to build a name directory! You are given some information about people. Each person has a first name, last name, age and sex. Print their names in a specific format sorted by their age in ascending order i.e. the youngest person's name should be printed first. For two people of the same age, print them in the order of their input.For Henry Davids, the output should be: Mr. Henry Davids For Mary George, the output should be: Ms. Mary George Input Format The first line contains the integer , the number of people. lines follow each containing the space separated values of the first name, last name, age and sex, respectively. Constraints Output Format Output names on separate lines in the format described above in ascending order of age. Sample Input 3 Mike Thomson 20 M Robert Bustle 32 M Andria Bustle 30 F Sample Output Mr. Mike Thomson Ms. Andria Bustle Mr. Robert BustleGiven a directory full of files, how could you rename everything to have a .bak extension?sd1, a subdirectory of the current directory, has a file called thefile. Move the file to another (already existing) subdirectory of the current directory called sd2 (keeping the same file name).
- In UNIX Say there is a file, students, under your home directory. Here is the content of the file students: 1001, Joe Smith, 111 Main Street 1002, Mary Johnson, 287 Broadway Ave 1003, Taylor Farlan, 255 Becker Street Use cut command to show only the third column of the file (only write down the command)Answer the given question with a proper explanation and step-by-step solution. 1.In the following path name, what is the name of the highest level directory? C:\Windows\System\Calc.exe 2.Typically, dictionary data is lost when a program terminates unless you use a special shelve function. Question 14 options: True False 3.Example of a method used with Regex is: open find replace searchin visual studio 2019 The GetCurrentDirectory method of Directory class is used to return the location of the current working directory (the location from which the program is running). true or false