Given 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.
Q: Write a program that prompts the user to input an integer between 0 and 35. If the number is less…
A: The input is taken in num variable from the user. int diff = num - 10; //asciiOfA to be…
Q: 1. Given L₁ = {a, abc, a c) and L₂ = {ab, c ba) are the languages over = {a, b, c), determine L₁ L2…
A: Given :
Q: Trying opening my computer screen online for my class please send me a computer to address Dallas…
A: See second step.
Q: 1. Simplify the following Boolean equation using the laws of boolean algebra an draw the simplified…
A: Here in this question we have given two boolean expression and we have asked to simplify them using…
Q: SELECT P.NAME, P. EMAIL FROM PASSENGER P WHERE P.ID NOT IN SELECT PASSENGER_ID FROM RIDE_PASSENGER;
A: SQL is the structured query languages. This is used to store, manipulate and to retrieve the datas…
Q: tudents are required to construct a Star Schema for the clinic's medicine consumption information…
A: SQL(structured query language) that is used to convert data in relational table by using sql…
Q: A program to converts a binary value between 0 and 9 in R4 into its ASCII representation is to be…
A: Input: str = “0110000101100010”Output: abExplanation:Str is divided into 8 bits as follows: 01100001…
Q: Design a dynamic programming algorithm for the following problem. Find the maximum total sale price…
A: The method of optimizing the plain recursion is known as the dynamic programming.
Q: Problem 8: Design a Turing machine that takes inputs like ...B1110111111B.... deletes the middle 0,…
A: Convert a 0 in the first number in to X and then traverse entire input and convert the first blank…
Q: A conveyor system is a mechanical handling equipment that moves materials from one location to…
A: Please refer below for your reference
Q: Determine the worst case time complexity of the insertion sort algorithm, in terms of the number of…
A: Given list of numbers is: {60, 50, 40, 30, 20, 10} Insertion sort is a sorting algorithm which is an…
Q: I need help in this C program. Assume the following declarations: struct EmployeeTag { char…
A: The question is to write C program for the given problem.
Q: The Internet of Things is not solely focused on home automation or private consumer products.…
A: IntroductionThe term "Internet of things" refers to physical items equipped with sensors, processing…
Q: Question 5 Q9A. Consider the following algorithm: sum = 0 for j in range(1,15): sum = sum +…
A: lets analyse the given code: sum = 0#initially setting sum to 0for j in range(1,15):#runs for j=1 to…
Q: gramming?
A: C programming: C is a procedural programming language. It was at first evolved by Dennis Ritchie as…
Q: Design an algorithm in pseudo code to rearrange elements of a given array of n real numbers so that…
A: See the answer in second step.
Q: Internal control being one of the major determinants of an organization’s success requires the…
A: advantages and five disadvantages/limitations of internal controls.
Q: The function f(x) = x-e has a zero on the interval [0, 1] O False O True
A: please check the solution below
Q: Write a program that calculates the total grade for N classroom exercises as a percentage. The user…
A: C++ is just an object oriented programming language not only based on objects but also based on…
Q: Suppose the Ethernet transmissi follows: After each successful tra one or two slot times before atte
A: According to Ethernet transmission algorithm, the channel is sensed before transmitting the data. If…
Q: Q1) Which encryption method is better: stream cipher or block cipher and why?
A: ANSWER:-
Q: Suppose two subnets share the same physical LAN; hosts on each subnet will see the other subnet's…
A:
Q: Suppose the Ethernet transmission algorithm is modified as follows: After each successful…
A: Introduction: In this, the channel is identified before sending the data. Expecting the channel to…
Q: Q20. Suppose a computer program has been initialized such that the following sets have been stored…
A: The given sets are A = {1, 2, 3, ..., 45} B = {-7, -6, -5, ..., 29} Note that sets are collection of…
Q: I need help in this C program. Assume a list of integers stored in a text file named…
A: #include <stdio.h>int main(){ FILE *f1,*f2,*f3,*f4,*f5; int number,i; printf("integer…
Q: ) Construct an appropriate SQL query (Create Table) for the following i. Member ii. Make ) Use the…
A: Since you have asked multiple questions, we will solve the first question for you. If you want any…
Q: 4. Given two dummy-headed sorted singly linked lists, merge the list in one dummy-headed sorted…
A: Here is the approach : First create the node class having the element value and the next element…
Q: Question 1 Q9. Consider the following algorithm: sum = 0 for j in range(1,15): sum = sum +…
A: Python for Loop: It is used to iterate the set of statements once for each item of a sequence and…
Q: Consult Request for Comments 793 to find out how TCP is supposed to respond if a FIN or an RST…
A: Introduction TCP represents Transmission Control Protocol a correspondence standard that empowers…
Q: Q1. What are the basic interfaces of Java Collections Framework? Q2. What are the Data Types…
A: Below is the answer to above question. I hope this will be helpful for you...
Q: a) Design an array to perform a palindrome operation. Take necessary input from the user like array…
A: PROGRAM:- #include <stdio.h>int pallindrome(int arr[], int n) { // palindrone functionint i,…
Q: Write a program that will read the contents of "essay.txt" and copy all the lower case letters into…
A: // C code given Below
Q: Below is the class Greeter and its method, greet: public class Greeter { } public String greet() { }…
A: The program is written in Java. Check the program screenshot for the correct indentation. Please…
Q: How does empathetic thinking relate to problem definition?
A: As humans, it is not always possible to think/understand the same way as the other person. When a…
Q: c) Refer to Table 1 and answer the following questions. Consider the Available = (3,3,2,1). i. ii.…
A: We are given 4 processes with allocation and maximum resources. First, we will find out the…
Q: features for their customers to browse and search products and to place orders for these products…
A: It is defined as a Unified Modeling Language that is a standardized modeling language consisting of…
Q: where n = 1G (i.e., 4 x n uniquely addressable locations-n: row, 4:2 column/width), what is the…
A: The answer is
Q: Using the smallest data size possible, either a byte (8 bits), a halfword (16 bits), or a word (32…
A: Introduction: In order to find out the 2s complement of any decimal number, we have to first convert…
Q: Assuming the Employee class has a sayName method that returns the employee's name (which is Fred),…
A: => An object is a blueprint of a class in the object-oriented programming language. =>…
Q: Mobile IP allows a home agent to tell a correspondent node a new care-of address for a mobile node.…
A:
Q: Write a program that adds all numbers from 2 to 10,000 to a list. Then remove the multiples of 2…
A: I have provided PYTHON CODE along with CODE SCREENSHOT and OUTPUT…
Q: Must be in JAVA. Please Attached text code and output Create a new project and name it "Lab10" Write…
A: import java.util.*; public class Main { public static ArrayList<Integer>…
Q: Which one is the formula to compute the integral f f(x) dx with the trapezoid rule? O f(0) + f(1)…
A: Given Question: To choose the correct option.
Q: Where True Value = Approx.Value (1) - Approx.Value ( Approx.Value (h) Approx. Value (2) -…
A: C++ is a programming language based on object oriented approach. It also supports functional and…
Q: You are a software engineering manager and your team proposes that model-driven engineering should…
A: Software development and software engineering:- Software development and software engineering…
Q: All of the answers you need are in the picture below! Unfortunately all of the words have been mixed…
A: 1. NOFT can be unscrambled as the word FONT. The font is specific typography applied to a particular…
Q: name, street, city) ii. account (account number, customer id, branch id, balance) iii.…
A: Structured Query Language abbreviated as SQL is a query language. It is widely used language in…
Q: Which of the following statements is true? A function: a. can have the same definition set as value…
A: Here is the explanation regarding all the options.
Q: Write a program that translates a letter grade into a number grade using a dictionary. Letter grades…
A: Introduction: In this question, we are asked to write a Python program to use dictionary to…
Q: The TCP header does not have a boot ID field. Why isn't there a problem with one end of a TCP…
A:
Step by step
Solved in 2 steps with 1 images
- 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…Your goal is to implement an application that reads a file, modify its content, and writes the modification back to the same file. The file includes 2 lines of integers. The first line indicates which integer on the second line has been selected (active). And the second line lists all the integers in the list (maximum of 10). Your application should have a menu that is constantly displayed on the screen (see the menu below). Right below the menu, the program should display list of all integers in the file (second line). Also, it should show which integer is currently selected (active) by displaying an arrow to its left. The user should be able to select a menu item by entering its associated key and pressing the Enter key on the keyboard. “Select Down” selects the next item in the list. If the item at the end of the list is selected, this option selects the first item in the list. “Select Up” selects the previous item in the list. If the first item is selected, this option selects the…In Chapter 11, you created the most recent version of the MarshallsRevenue program, which prompts the user for customer data for scheduled mural painting. Now, save all the entered data to a file that is closed when data entry is complete and then reopened and read in, allowing the user to view lists of customer orders for mural types.
- IN C++ Write a program that represents a playlist on a video streaming service. Each video has a title and total minutes. The user should be able to do the following with the playlist: Add video to list Remove video from list Display list in alphabetical order by title Exit playlist Your driver file will need a storage object that can handle any amount of videos. You will also need to provide a menu that shows and performs the various options above. The menu should continue to display until the user selects the "Exit playlist" option. A description of each menu option is listed below: Add video to list Prompts the user for a video title and total minutes Then your code stores the video onto the storage object of your choice Remove video from list Prompts the user for a video title Then your code removes that video from your storage object Display list in alphabetical order Displays the video's title and total minutes for each video in your storage object. Sample format:…Frames Unlimited is a wholesaler that specializes in picture frames. The company stores its product information (each item’s number, name, size and price) in a sequential access file named pictureFrame.txt. You need to create a report using the pictureFrame.txt sequential access file. The report should contain a list of all picture frames with a size of 5×7. The report will be saved to another sequential access file named pictureFrame57.txt. Your first step is to ____. a. determine whether the pictureFrame.txt file exists b. declare a StreamReader variable for the input file c. open the pictureFrame.txt file for input using the OpenText method d. open the pictureFrame57.txt file for output using the CreateText methodFinish this program from the code posted below! Note: There should be two files Main.py and Contact.py You will implement the edit_contact function. In the function, do the following: Ask the user to enter the name of the contact they want to edit. If the contact exists, in a loop, give them the following choices Remove one of the phone numbers from that Contact. Add a phone number to that Contact. Change that Contact's email address. Change that Contact's name (if they do this, you will have to remove the key/value pair from the dictionary and re-add it, since the key is the contact’s name. Use the dictionary's pop method for this!) Stop editing the Contact Once the user is finished making changes to the Contact, the function should return. Code:from Contact import Contactimport pickledef load_contacts():""" Unpickle the data on mydata.dat and save it to a dictionaryReturn an empty dictionary if the file doesn't exist """try:with open("mydata.dat", 'rb') as file:return…
- Program Description:The project is a student management system which maintains student records in asimple text file.Your task is to write a program to save a list of students records in a FILE and thenperform several operations on this FILE.Your program will ask user to choose the option from a menu.The 3 major function in menu are:ADD STUDENTFIND STUDENTPRINT LISTExitHow it WorksThe menu is handled by do while and switch statement.In Java Oleae nust read a file A photographer is organizing a photo collection about the national parks in the US and would like to annotate the information about each of the photos into a separate set of files. Write a program that reads the name of a text file containing a list of photo file names. The program then reads the photo file names from the text file, replaces the "_photo.jpg" portion of the file names with "_info.txt", and outputs the modified file names. Assume the unchanged portion of the photo file names contains only letters and numbers, and the text file stores one photo file name per line. If the text file is empty, the program produces no output. Ex: If the input of the program is: ParkPhotos.txt and the contents of ParkPhotos.txt are: Acadia2003_photo.jpg AmericanSamoa1989_photo.jpg BlackCanyonoftheGunnison1983_photo.jpg CarlsbadCaverns2010_photo.jpg CraterLake1996_photo.jpg GrandCanyon1996_photo.jpg IndianaDunes1987_photo.jpg LakeClark2009_photo.jpg…You develop a Python application for your school. You need to read and write data to a text file. If the file does not exist, it must be created. If the file has content, the content must be removed. Which code should you use? Group of answer choices open(“local_data”, “r”) open(“local_data”, “w+”) open(“local_data”, “r+”) D. open(“local_data”, “w”)
- You have more flexibility to implement your own function names and logic in these programs. The data files you need for this assignment can obtained from:Right-click and "Save Link As..." HUGO_genes.txt (Links to an external site.) chr21_genes.txt (Links to an external site.) Create an output directory inside your assignment4 directory called "OUTPUT" for result files, so that they will not mix with your programs. Output from your programs will be here! Your program must implement command line options for the infiles it must open, but for testing purposes it should run by default, so if no command line option is passed at the command line, the program will still run. This will help in the grading of your program. Create a Python Module called called my_io.py - You can use the same code from assignment 3's solution. Put this my_io.py Module in a subdirectory named assignment4 inside your assignment4 top-level directory (see the tree below, and see Lecture 7 on how to implement a…You have more flexibility to implement your own function names and logic in these programs. The data files you need for this assignment can obtained from:Right-click and "Save Link As..." HUGO_genes.txt (Links to an external site.) chr21_genes.txt (Links to an external site.) Create an output directory inside your assignment4 directory called "OUTPUT" for result files, so that they will not mix with your programs. Output from your programs will be here! Your program must implement command line options for the infiles it must open, but for testing purposes it should run by default, so if no command line option is passed at the command line, the program will still run. This will help in the grading of your program. Create a Python Module called called my_io.py - You can use the same code from assignment 3's solution. Put this my_io.py Module in a subdirectory named assignment4 inside your assignment4 top-level directory (see the tree below, and see Lecture 7 on how to implement a…In c++, Using STL containers, components, and algorithms show all data from the text file movies.txt. Please make sure the list updates once the user adds a new movie to the text file. Console Movies program COMMAND MENU show - user is able to see all available movies from movies.txt command: show The Adventures of a Babysitter $10 Barney $25 Larry the Car Man $15 Dora and the missing map $15 Ceasar and the Lunch Lady $10 Suzie and the Bad Kids $13.95 command: add cout << "What movie do you want to add?"; cin >> BeeHive $12; cout << "Movie added"; command:show The Adventures of a Babysitter $10 Barney $25 Larry the Car Man $15 Dora and the missing map $15 Ceasar and the Lunch Lady $10 Suzie and the Bad Kids $13.95 Beehive $12 movies.txt with all possible movies: The Adventures of a Babysitter $10 Barney $25 Larry the Car Man $15 Dora and the missing map $15 Ceasar and the Lunch Lady $10 Suzie and the Bad Kids $13.95