Please create a short program that will list the total directories that are found within /etc/ along with a count.
Q: Create an object diagram (showing qualities of attributes and methods) for the classes you designed…
A: Solution- Introduction- The book circulation system in book library may also be said as library…
Q: Does using passwords with salts make attacking a specific account more difficult than using…
A: The answer is given below.
Q: State application of soft computing.
A:
Q: Section: Bugs in hospital project Review the flowchart, pseudocode, and C++ code from the hospital…
A: A bug can be denoted as an incorrect or erroneous statement in a code or program that results in…
Q: Description of program: Relational operators. Suppose the variables a and b have values 20 and 10.…
A: python introduction:- Python is a dynamic, interpreted language that uses bytecode compilation. The…
Q: quicksort as follows: Recursive algorithm, and Non-recursive algorithm Analyze the efficiency of…
A: Summary The implementation uses the closing index as a pivot. This reasons worst-case conduct on…
Q: Each Node has a reference to the previous Node as well as to the next Node in the list. MINIMALLY…
A: In this question we have to write a java code for add data to specific index in doubly linked list…
Q: What technology could replace CCD in some future scientific applications? The LDCs The CID The…
A: CCD sensors are being gradually phased out in favor of CMOS sensors.However, there are distinct…
Q: What is the bandwidth needed by a 10bps ASK signal using: a. Half-duplex system b. Full-duplex…
A: We need to find the bandwidth needed by a 10bps ASK signal using Half-duplex system and Full-duplex…
Q: In Java Please. Write a unit conversion program that asks the users from which unit they want to…
A: Here is the java program of the above problem. See below steps.
Q: Q.4 Bag contains 5 red balls and 2 white balls. Two balls are drawn successivly without replacement.…
A: The probability tree is the graphical representation where a tree represents the events and their…
Q: In Java Please. Write a unit conversion program that asks the users from which unit they want to…
A: Here is the java program of the above problem. See below steps.
Q: Is There is a no set rule for how often you should post. True or False
A: The question has been answered in step2
Q: Write a C++ program that evaluates Ly=b and then Ux=y. L and U are the upper and lower triangular…
A: A two-dimensional array is provided. Create software that prints the lower and upper triangular…
Q: Using Python Matplot display a bar chart showing the response frequencies and their percentages of…
A: Python Popular general-purpose programming language Python is used frequently. It is employed in…
Q: Develop two time delay routines for the PIC 16F84A microcontroller and calculate the actual time…
A: PIC Microcontroller:-A family of microcontrollers known as PIC is produced by Microchip Technology…
Q: Privacy and Security work hand-in-hand since both have the same basic need. True or False
A: Data protection is the objective of security, whereas user identity protection is the objective of…
Q: shows the complete anagram.cpp program. use a class to represent the word to be anagrammed. Member…
A: cpp program is given in next step:-
Q: 45, What information does the KeyValue of HBase HFiles contain? A. Key Type B. TimeStamp c. Value D.…
A: A key-value database is a type of non-relational database that uses a simple key-value approach to…
Q: Full explain this question and text typing work only thanks TRUE/FALSE part A,B C solution sent me…
A: A) TRUE Explanation:- In an extended access list is a particular services will to be permitted or…
Q: 1. The game begins by welcoming the player and asking their name. Input verification is not needed.…
A: Python which refers to the high-level, general-purpose programming language. Its design which also…
Q: Create a vector (name it vecA) that has 14 elements of which the first is 49, the increment is -3,…
A: Matlab Code : - Command Window : -
Q: Q.2 Explain decision tree algorithm.
A: Solution : Explaninig of decision tree algorithm : The Decision Tree algorithm is a member of the…
Q: a.What is time complexity of two_sum? b. Is it possible to improve on above algorithm performance…
A: Answer the above question are as follows
Q: After the SHR instruction is executed in the code sequence below, what is the final value for AL?…
A: The final value for AL: MOV AL, 1010_1111b SHR AL,2 while doing the shift right instruction highest…
Q: Consider the following binary 3 5 8 5 1 2 10) 1 7 6 a) List the nodes visited with a preorder…
A:
Q: In Java, The First National Bank of Parkville recently opened up a new “So You Want to Be a…
A: Java : On billions of devices, including laptops, smartphones, gaming consoles, medical equipment,…
Q: After the SHR instruction is executed in the code sequence below, what is the final value for AL?…
A: We need to find the correct option regarding the given assembly statement.
Q: 34. Which field can a receiver reassemble fragments based on? A. Flags B. Protocol OC. Fragment…
A: Fragments:- In order for the resultant fragments to fit across a connection with a smaller maximum…
Q: Write detailed code for Fibonacci sequence number print in go programming language code and give…
A: Algorithm: Step 1: First we have to define the function to take the numbers. The number(num) can be…
Q: you have to choose one option
A: Corrected Answer for the given MCQ is given in answer section
Q: In python language: What does csv reader() function do?
A: Python:-Python was created by Guido van Rossum and is an interpreted, object-oriented, high-level…
Q: How does the 802.11 MAC four frame exchange protocol improve reliable data delivery between source…
A: MAC layer:- It provides functionality to perform several tasks like control medium access or the…
Q: # See the table and answer the question use Python language: Name Dr. ISA Dr. Mohd Dr. Ali Dr. Mousa…
A: CSV file : Data can be saved in a tabular manner in a CSV file, which stands for comma-separated…
Q: Design a program that allows two players to play a game of tic-tac-toe. Use a two dimensional…
A: I use in C++ program:- C++: - In a C++ is an object-oriented programming language that is a…
Q: Methods Java Write the appropriate method headings using the provided method name for the following…
A: The program is written in Java. Please find the source code and output in the following steps.
Q: Q.2 Explain decision tree algorithm.
A:
Q: The first two bytes of a 2M x 16 main memory have the following hex values: 1. Byte 0 is FE 2. Byte…
A: The question has been answered in step2
Q: Formative Task 3 - Understanding primary research methods (250 words) Choose two of the following…
A: Answer starts from step 2
Q: 4. Write a program that allows the user to enter the last names of five candidates in a local…
A: C++ Programming Some computer languages are created with a particular objective in mind. Like Java,…
Q: Section: Debugging Define and describe 1. What a bug is. 2. What debugging is and why debugging is…
A: Note: Due to company policies I am compelled to solve only one question and that is the first…
Q: What is the big O function of the following code? for k = 1 to n{…
A: Given To know about the Big O of this C++ code.
Q: The following query is intended to list the titles of all books that sold more than 3 copies. Fill…
A: Answers:- The data is the fetched after two tables have been joined The tables trans and book has…
Q: What is the Big O function for the following growth rate function? F(n) = n10 + 2n
A: Hi please find the solution below and I hope it would be helpful for you.
Q: Q23. The following program negates a 2D array. int sum_array(int a [N] [M]) { int i, j; for (i=0;…
A: The solution requires to have a substantial amount of concept how matrixes ( i.e. 2D arrays) are…
Q: 17/23? Explain the results. sting 4.2.2 and ge /* mulDiv.c * Asks user to enter an integer. Then…
A: C++ introduction:- As an extension of the C language that incorporates the object-oriented paradigm,…
Q: Using the "AVR Instruction Set Nomenclature Document", . Derive the machine code for the following…
A: "AVR instruction set" form [doc0856]- "The program & data addressing modes”. It is mainly…
Q: Describe an algorithm for finding the smallest integer is a finite series
A: An algorithm is a list of instructions used to solve a problem or perform a calculation.
Q: 3. Suppose+and - have HIGHER PRECEDENCE than * and /, and that you have the following infix…
A: According to the information given:- We have to evaluate the postfix expression to find the final…
Q: Convert the decimal signed number -7 into 8-bit signed binary number. The signed binary number is…
A: your answer is given below!!
Please create a short program that will list the total directories that are found within /etc/ along with a count.
Step by step
Solved in 2 steps
- A list named parking_tickets has been defined to be the number of parking tickets given out by the city police each day since the beginning of the current year. (Thus, the first element of the list contains the number of tickets given on January 1; the last element contains the number of tickets g iven today.) Write some code that assigns the largest value found in parking_tickets to the variable most_ tickets. You may, if you wish, use one additional variable, k. Submit History: x - (9 of 9) - 02/28/21 6:19pmFinish 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…An organization has a file named “staff.txt” that has 10 records of staffs having their id, name and salary. Using the concept of structure, you are required to write a program to ask the details of three more staffs and add them in the file. Also, finally you need to display all the records and the total salary paid by the organization.
- A teacher stores the most recent quiz scores for her class in the list scores. The first element in the list holds the maximum possible number of points that can be awarded on the quiz, and each remaining element holds one student’s quiz score. Assume that scores contains at least two elements. Which of the following code segments will set the variable found to true if at least one student scored the maximum possible number of points on the quiz and will set found to false otherwise?#Data is given in the order: Serial Number | Item Name | Quantity | Priceprice_list = [["01","Keyboard",4,200.0],["02","Mouse",4,150.0],["03","Printer",2,300.0]] #Write Code to increase the price of all the items by 50 taka #Code1 #Write code to add a new item to the list using user input #Code2 print()#Print the list using nested loops #Code3 #Sample output given below: Enter Serial: 05Enter Item Name: MonitorEnter Quantity: 200Enter Price: 50 01Keyboard4250.0-----------------02Mouse4200.0-----------------03Printer2350.0-----------------05Monitor20050-----------------You will need the two files attached to this note: GirlNames.txt and BoyNames.txt.GirlNames.txt file contains a list of the 200 most popular names given to girls born in the UnitedStates from the year 2000 through 2009. BoysNames.txt does the same for boys.Write a program that reads the contents of the two files into two separate lists. The user should be ableto enter a boy’s name, a girl’s name, or both, and the application will display messages indicatingwhether the names were among the most popular.Hint: there might be list functions that do a fast search versus using an IF statement.
- The Apgar Medical group keeps a patient file for each doctor in the office. Each record contains the patient's first and last name, home address, and birth year. The records are sorted in ascending birth year order. Write a program so that display a count of the number of patients born each year John Hanson, 23 Elm, 1927Mary Locust, 476 Maple, 1950Susan Monroe, 512 Peachtree, 1957Carol Fortune, 2819 Locust, 1960James Fortune, 2819 Locust, 1963Lawrence Fish, 12 Elm, 1968Janice Weiss, 234 Birch, 1971Henry Garza, 199 Second, 1973Kimberly Swanson, 310 Appletree, 1980Louis Claude, 2716 Third, 1981Jill Fox, 12 Oak, 1985Opal Reynolds, 78 County Line, 1987Francis Dumas, 67 Fourth, 1992Madison Conroy, 23 Fifth, 1996Daniel Moy, 100 Sunset, 1987In the attached city list.txt file, the names of the provinces in Turkey are given in a single line according to the format given in Figure 1. In the application you will write, write the city names read from this file into the license plate list.txt file in the format shown in Figure 2. In more descriptive terms, citylist.txt is a file given to you. license plate list.txt is the file you will get with your code. city list: Adana, Adıyaman, Afyon, Ağrı, Amasya, Ankara, Antalya, Artvin, Aydın, Balıkesir, Bilecik, Bingöl, Bitlis, Bolu, Burdur, Bursa, Çanakkale, Çankırı, Çorum, Denizli, Diyarbakır, Edirne, Elazığ, Erzincan, Erzurum, Eskişehir, Gaziantep, Giresun, Gümüşhane, Hakkari, Hatay, Isparta, İçel (Mersin), İstanbul, İzmir, Kars, Kastamonu, Kayseri, Kırklareli, Kırşehir, Kocaeli, Konya, Kütahya, Malatya, Manisa, Kahramanmaraş, Mardin, Muğla, Muş, Nevşehir, Niğde, Ordu, Rize, Sakarya, Samsun, Siirt, Sinop, Sivas, Tekirdağ, Tokat, Trabzon, Tunceli, Şanlıurfa, Uşak, Van, Yozgat,…Retrieve quartsal.cpp from the Lab 7 folder. The code is as follows:// This program will read in the quarterly sales transactions for a given number// of years. It will print the year and transactions in a table format.// It will calculate year and quarter total transactions.// PLACE YOUR NAME HERE#include <iostream>#include <iomanip>using namespace std;const MAXYEAR = 10;const MAXCOL = 5;typedef int SalesType[MAXYEAR][MAXCOL]; // creates a new 2D integer data typevoid getSales(SalesType, int&); // places sales figures into the arrayvoid printSales(SalesType, int); // prints data as a tablevoid printTableHeading(); // prints table headingint main(){int yearsUsed; // holds the number of years usedSalesType sales; // 2D array holding// the sales transactionsgetSales(sales, yearsUsed); // calls getSales to put data in arrayLesson 7B 133printTableHeading(); // calls procedure to print the headingprintSales(sales, yearsUsed); // calls printSales to display tablereturn…
- Transcribed Image Text A summer camp offers a morning session and an afternoon session. The list morningList contains the names of all children attending the morning session, and the list afternoonList contains the names of all children attending the afternoon session. Only children who attend both sessions eat lunch at the camp. The camp director wants to create lunchList, which will contain the names of children attending both sessions. The following code segment is intended to create lunchList, which is initially empty. It uses the procedure IsFound (list, name), which returns true if name is found in list and returns false otherwise. FOR EACH child IN morningList { <MISSING CODE> Which of the following could replace <MISSING CODE> so that the code segment works as intended? IF (IsFound (afternoonList, child)) { A APPEND (lunchList, child)Cargo Container Report. You will be producing a program which will allow the user to generate the container report on the following page in Container Number order or Ship Name order. The program will also the user to lookup the data for any given Container by number. The % cargo weight is the percentage of the cargo of the gross weight (cargo weight/gross weight), % total is the percentage of the cargo for that container of the total amount of cargo unloaded (cargo weight for the container / total cargo unloaded. Hint: you are expected to use methods for your calculations. The accompanying file has the data for the containers unloaded today. The data includes container number int ship name. String tare weight of the container (empty weight) int the gross weight (container plus the cargo). Int You will need to computer the cargo weight as the gross weight minus the tare weight. If you have issues reading the data with the String, you may remove the String. However, you will lose points.…O kgeme: ot Co htioseeningodmataorkconlaundh Readng r Excel File I/O The attached Distances xlsx file contains a spreadsheet with the pairwise distances in mies of the top 100 US cities by population. A preview of the spreadsheet is shown below. The first row and first column contain the city names using the following format: city name comma space capitalized state abbreviation, e.g, Nashville, TN. Note that the very first cell of the spresheet, A1, is blank. Write a function called get_distance that accepts two character vector inputs representing the names of two cities. The functian returns the distance between them as an output argument called distance. For example, the cali get_distance('Seattle, WA', Miami, FL') should return 3723. If one ar both of the specified cities are not in the file, the function returns 1. Your function should load the data only once. File VO is a time consuming operation. Loading the date multiple times is will likely cause a time-out error when…