In a python program, create a new file and call it “ tracking”. Write to it four lines each contains information about an order like this: 1-00654-021 Dell charger Toronto-WEST 99-49-ZAD01 1-76540-022 ASUS battery Milton-EAST 34-56-CBH56 1-09239-026 HP HD Scarborough-NORTH 12-98-AZC45 1-12349-029 Mac FD North York-LAWRENCE 34-49-ZWL01 Add the file two more lines: 1-34567-055 Lenovo SSD Milton-ON 34-09-MT04 1-90432-091 Lenovo battery Oakville-ON 78-KL98 Define a function that searches for a brand (e.g. Dell, ASUS, etc.). Test the function in your program.
Q: With the rise of smartphones and tablets with smaller displays, how is user interface design…
A: Mobile phone interface: As a result, the goal of user interface design is to make information…
Q: Fill in the following blanks 1. The memory address of the first element is called 2. Suppose you…
A: 1. The Memory address of the First element is called Base Address. 2)suppose you have int list…
Q: What are the variables that lead to scope creep in the design of information systems?
A: Good design is critical to the success of information systems. However, what constitutes a good…
Q: What is it about arrays that makes them such a useful tool?
A: Array is the most widely used data structure in the programming arena.
Q: What are the current countermeasures or information security services that may be used to ensure the…
A: According to the information given:- We have to describe current countermeasures or information…
Q: Convert below expression into three address code a := (c+d) * (c+b)
A: HI THEREI AM ADDING THREE ADDRESS CODE FOR GIVEN EXPRESSION BELOWPLEASE GO THROUGH ITTHANK YOU
Q: using html, Create a function taking any number of arguments (Numbers), returning true if they are…
A: The required code is given in the next step by using JavaScript operators and if-else.
Q: Is it worthwhile to use an object-oriented approach while evaluating and developing systems?
A: OOP: Object-oriented programming (OOP) is a computer programming model that organizes software…
Q: Question 7 Match each Python code snippet with what the operator in that code snippet does. Not yet…
A: k<<0 Bitwise (binary) shift left not k :- Bitwise (binary) not (AKA negation) k | o :- Boolean…
Q: Suppose that you have received the following encrypted message from your friend, ciphertext…
A:
Q: Is a top-down approach to information security better than a bottom-up one?
A: Information: Any truth or collection of facts, knowledge, news, or guidance, whether transmitted by…
Q: Write a java application that handles a student report card. The application shall save the marks of…
A: The Answer is from step-2.
Q: 1. A point in the x-y plane is represented by its x-coordinate and y-coordinate. Design the class…
A: Question given - A class description is given. Implement this class and perform all operations are…
Q: Power (xY): Complete the code below to compute for p = x° (where x and y are byte-size variables).…
A: We need to complete the given assembly code to compute power.
Q: Write a python program using strings to read input from the user and count the character a. Write a…
A: Answer 1: Code in Text format: string=input()print(string.count('a')) Output: Answer 2: Code…
Q: Is there a best time and duration for doing a network maintenance task?
A: Network Maintenance: To put it another way, network maintenance is the sum total of all the…
Q: Assignment 1. How can use algorithm and flowchart to find the area and perimeter of a circle…
A: Please refer below for your reference: According to company guidelines I am able to anser first…
Q: Examine the role and importance of an enterprise's commission for the investigation of abuse of…
A: Commission Investigation Abuse Authority: The panel to investigate allegations of official…
Q: TCSEC is divided into four divisions. Each division should be expressed separately.
A: Let us see the answer:- Introduction:- The TCSEC divides the country into four divisions: D, C, B,…
Q: : Write a program to find the multiply of two numbers stored in the memory location 2000, 2001 using…
A: Find the required code given as below :
Q: Discuss the necessity of project scheduling as well as the obstacles that come with it. As…
A: Project scheduling is the one of the activity holds the details of the project and it specifies the…
Q: Create/Produce a brief debate based on your knowledge of the import software quality assurance…
A: Software development is the most common way of considering, determining, planning, programming,…
Q: Compare and price the components for the implementation of Amazon Alexa and Google Home to control…
A: More or less, Internet of Things is the idea of connecting with any gadget (as it has a switch on…
Q: In what situations will automated mail room procedures be most beneficial? Which benefit is the…
A: Given: It is most beneficial to use automated mailroom procedures when the following conditions are…
Q: What is it about arrays that makes them such a useful tool?
A: Array: A collection of homogenous items is referred to as an array. Homogeneous elements imply that…
Q: Question 7. A string that is obtained by rearranging the letters of the word ARABICA is stupendous…
A: We are going to find out the number of stupendous strings from the given word ARABICA . Question…
Q: Find the errors in the program and rewrite the correct statements. w-int(input("Enter the W value")…
A: i have provided the fixed code in step-2 with error description as a comment.
Q: What is the difference between sequential and direct access? Let me give you an example.
A: The Answer is in given below steps
Q: What sets Sqoop apart from the rest?
A: Sqoop is a command-line tool that makes data migration from relational databases to Hadoop easier.…
Q: Draw derivation tree for string : bbabb For context free grammar S -> bSb | a | b
A: HI THEREI AM ADDING DERIVATION TREE AS PER REQUIREMENT BELOWPLEASE GO THROUGH IT THANK YOU
Q: Do you want to learn more about social networking blogs and other connected topics?
A: Instagram, Facebook, and Tumblr are social media blogs that offer data or information on different…
Q: Write a MATLAB program to calculate answers to the nearest integer. a) ==V5x2+y2 Matlab a) z=V5x+y…
A: Answer:
Q: List the eight most important user interface design rules. In what order do you think they should be…
A: Foundation: A good user interface makes it simple for users to tell the computer what they want to…
Q: he file is listed below (separated by a single space): first_name last_name employee_id phone_number…
A: Code::(IN C++ PROGRAMMING LANGUAGE) ------------------------------------------------------ #include…
Q: What is an overload? When compared to coercion and polymorphism, how does this one differ?
A: Introduction: Defining a single body for several functions/methods with the same name is the process…
Q: ate purpose of AI
A: Solution - In the given question, we have to tell the ultimate purpose of AI and also summarize…
Q: Write a program using if-else statements that convert from lbs to kg and vice versa. The input…
A: Weighting System Weight is the measure of the relative mass a body has or the amount of matter.…
Q: 8 Evaluate > r(3+2r +r2) T=1
A: Since no programming language is mentioned, this problem is solved by using discrete mathematics.
Q: What are the signs that Visual Studio has found a syntax error?
A: According to the question the syntax error only when comes if made a mistake when you writing the…
Q: Which information system flaws need to be addressed and how should we go about doing that?
A: Introduction: People utilize corporate productivity software, such as word processing, tablet, and…
Q: What are your thoughts on the TCSEC orange book?
A: Computer security: PC security protects a computer's structure and data from damage, robbery, and…
Q: Create a PEAS description for a robot soccer player's mission environment.
A: PEAS (Performance Measure, Environment, Actuator, Sensor) is an acronym for Performance Measure,…
Q: Question 4 Which of the possible answers is logically equivalent to the expression below? ((-((P →…
A: Given expression ((~((P → P) → (¬Q))) ^ (¬Q))
Q: How can you get access to Visual Studio documentation? What resources does the MSDN Library offer?
A: We need to mention, how can we get access to Visual Studio documentation and what resources does the…
Q: To what extent does each of the Common Criteria for Information Assurance contribute to a system…
A: Common Criteria: What are the Common Criteria Information Assurance, and what role does each one…
Q: In what situations will automated mail room procedures be most beneficial? Which benefit is the…
A: Automated mailroom methods are particularly beneficial in the following situations: It is…
Q: How do Agile Methodologies and Traditional Approaches differ?
A: I have provided the difference in step 2.
Q: Design a DFA which will accept string only if it has three consecutive 0's L = {0,1 | have three…
A: HI THEREI AM ADDING ASNWER BELOWPLEASE GO THROUGH ITTHANK YOU
Q: Create/Produce a brief debate based on your knowledge of the importance of software quality…
A: The Answer is start from step-2.
Q: Write a MATLAB program answers to the nearest integer a) z=5x2 5x-+y² 2. a) Z=1
A: MATLAB MATLAB is a high level programming platform which is use for developing computer algorithms,…
PLEASE COMMENT CODE
In a python program, create a new file and call it “ tracking”. Write to it four lines each contains information about an order like this:
1-00654-021 Dell charger Toronto-WEST 99-49-ZAD01
1-76540-022 ASUS battery Milton-EAST 34-56-CBH56
1-09239-026 HP HD Scarborough-NORTH 12-98-AZC45
1-12349-029 Mac FD North York-LAWRENCE 34-49-ZWL01
Add the file two more lines:
1-34567-055 Lenovo SSD Milton-ON 34-09-MT04
1-90432-091 Lenovo battery Oakville-ON 78-KL98
Define a function that searches for a brand (e.g. Dell, ASUS, etc.). Test the function in your program.
Step by step
Solved in 4 steps with 2 images
- In Python, Given the grades.csv file, where hours = [15,7,8,7.3,19.1,17,14,9.3,4.3,8,12.4,9,6,7.5], and grades = [94,86,87,100,96,94,90,79,88,91,90,86,88,89]. The first column is hours studied and the second column is grades, read its data and place them into two numpy arrays. Find the regression line using the built-in linregress() method. Plot the data points along with the regression line and print: slope, y-intercept, r (correlation coefficient), p-value, standard error. Predict a student’s grade given 10.5 hours of study''' xhours = [ ] yhours = [ ]Please do this in PYTHON PROGRAMMING Write an address book program that stores your contacts' names and their email addresses. The names and email addresses are originally stored in a file called phonebook.in, in the format:Harry P..d@hogwarts.eduHermione G..h@hogwarts.eduRon W..b@hogwarts.eduDraco M..s@hogwarts.eduSeverus S..e@hogwarts.eduAlbus D..x@hogwarts.eduYour program should read from the file, storing the names and corresponding email addresses in a dictionary as key-value pairs. Then, the program should display a menu that lets the user enter the numbers 1 through 5, each corresponding to a different menu item:1) look up an email address2) add a new name and email address3) change an email address4) delete a name and email address5) save address book and exitWhen the user enters 1, the program should prompt them for a name, and then print the corresponding email address. If there is no dictionary entry under that name, the program should print, "Sorry, no contact exists…WHATS THE ALGORITHIM FOR THIS The course records are shown below: Each student has 4 assignments. 108194 9 10 10 10 197526 10 10 10 10 197008 10 10 0 10 197746 10 10 9 10 108154 10 0 10 9 Create an input file ‘CSassignments.txt’ using an editor such as Notepad++ with a student number, then a space, then four assignment marks on one line. The assignment marks are whole numbers and are separated by a space. Your C++ program will read from the file ‘CSassignments.txt’ and write to a second file ‘CSgrades.txt’ which includes the average of the student’s four assignments. e.g. 108194 9 10 10 10 9.75 Your C++ program should work with any number of records in the ‘CSassignments.txt’ input file – that is –…
- in python. Write a function named file_sum that takes as a parameter the name of a text file that contains a list of numbers, one to a line, like this: 23.77 116 94 -12.8 0 14.999 The function should sum the values in the file and write the sum (just that number) to a text file named sum.txt.A miniature robot designed to mimic the behavior of an ant is being tested to evaluate the robot’s ability to avoid a chemical repellant (the robot has a chemical sensor, and a control loop that makes the robot avoid moving in a direction that will result in the sensor detecting a chemical concentration above a certain limit). The x and y positions of the robot are measured with time, and the resulting data is saved to a file called data.txt which contains 3 columns: the time of the measurement (in seconds), the x position (in cm), and the y position (in cm). The first line of the file is a “header”: it has a single integer that specifies how many lines of data follow. Write a C++ program called ant.cpp that reads files of this type (i.e., your program should work with another, but similar, file!) and then does the following: it asks for an X and Y position, and then prints to screen the time at which the ant robot was closest to this position. For example, if we wish to know when the…For an e-Shop, there is a Customer whose data is stored in a file ‘Customers.txt’, where ID, Name, Phone, Address, Email and AmountBalance. When the customer buys a product and pays from his AmountBalance, the system checks his balance and deducts if enough amount is there. Otherwise the customer receives a message “You don’t have sufficient Balance in your wallet”. Write python code to create a ‘Customers.txt’ file with at least one customer’s record. Write a function pay(), that takes amount as an input, reads the file and gets AmountBalance, print “Successful Transaction” when payment can be made or a message “You don’t have sufficient Balance in your wallet”. Write a function checkBalance(), that reads the file and gets AmountBalance, prints “Amaount Balance” Write a function recharge(), that takes “Enter Amount you want to recharge”, reads the file and gets AmountBalance, adds the new amount in AmountBalance, update the file and prints “Success”
- The example of the two CSV files is attached below. One of the file is the crime database and the other one is the suspect database. Specification Your task is to write a python program that will take three CSV file names on the command line. The first CSV file contains STR counts for DNAs found in a list of crime scenes; the second CSV file contains a list of suspect's names and their DNA sequences; the third CSV file name is the output file where you write a CSV file that maps each suspect's name to the list of Crimes that have DNAs matching the suspect. Your program will take three file names on the command line: The first command line argument is a file name for a crime database file in csv file format. The header row would look like this:CrimeID,STR1,STR2,STR3,...Where each STRi is a short DNA sequence that is composed of DNA bases A/C/G/T. And each row will comprise of a CrimeID of the form CIDXXXXX, an integer count for each of the STRs. The second command line argument is a…Create a file in your project named employees.txt with the following data (you can simply create the file by hand rather than with Python code): 123 Bob Smith345 Anne Jones256 Carol Lee845 Steve Robert Anderson132 Jill Thompson From your program's main function, give the user the following options: lookup a name based on ID number, lookup an ID number based on name, and quit the program. OPTION 1: The user chooses to lookup a name based on ID number: Use a try/except and ask the user to enter an integer. If they don't enter an integer, print an error message. If they do enter an integer, call a function named lookup_employee which takes the id as a parameter. If an employee with the given id number is found, return the name. Otherwise, return the string “Employee not found” Back in main, print the return result. OPTION 2: The user chooses to lookup an ID based on name: Ask the user to enter the first and last name (don't ask for the middle name). Call a function named…The following needs to be debugged in Python. // The two senior class homerooms at Littleville High School// are having a fundraising drive for the prom. Each time a student// solicits a contribution, a record is created with the// student's name and the value. Two files have been created for// Homeroom A and Homeroom B. Each file is sorted in contribution// value order from highest to lowest. This program merges the two files.start Declarations string roomAName num roomAValue string roomBName num roomBValue string bothFilesDone = "N" num HIGH_VALUE = 999999 InputFile roomAFile InputFile roomBFile InputFile mergedFile getReady() while bothFilesDone = "N" detailLoop() endwhile allDone()stop getReady() open roomAFile "roomAFile.dat" open roomBFile "roomBFile.dat" open mergedFile "mergedFile.dat" readA() readB() checkBoth()return readA() input roomAName, roomAValue from roomAFile if eof then roomAValue =…
- I need help with my code Ask the user for a filename. Display the oldest car for every manufacturer from that file. If two cars have the same year, compare based on the VIN. here is my code so far import java.io.File;import java.io.FileNotFoundException;import java.util.ArrayList;import java.util.Scanner;class Car {String manufacturer;String model;int year;String vin;public Car(String manufacturer, String model, int year, String vin) {this.manufacturer = manufacturer;this.model = model;this.year = year;this.vin = vin;}public String getManufacturer() {return manufacturer;}public void setManufacturer(String manufacturer) {this.manufacturer = manufacturer;}public String getModel() {return model;}public void setModel(String model) {this.model = model;}public int getYear() {return year;}public void setYear(int year) {this.year = year;}public String getVin() {return vin;}public void setVin(String vin) {this.vin = vin;}}public class Demo {public static void main(String[] args)…In python: The file contain the content in the form pet1,pet2,pet3 Output will return [[‘pet1’, ‘pet2’, ‘pet3’],[‘pet1’, ‘pet2’, ‘pet3’],…] or none if wrong format for example : PET.txt Cat, Dog, Turtle Hamster, Dog, Dog, , Turtle PETS = read_file(‘PET.txt’) len(PETS) Output: 3 PETS[1] Output: [‘Hamster’, ‘Dog’, None] PETS[2] Output:['Dog', None, 'Turtle'] Play.txt Hamster, Fish Crocodile Play = read_file("Play.txt") print (Play) Output : NoneThis C++ menu-driven program on LIBRARY MANAGEMENT SYSTEM has book and student class with data members like a book no, book name, author name. Books records are stored in a binary file. A student can issue a book and deposit it within 15 days. The student is allowed to issue only one book. Student Records are stored in the binary file. The administrator can add, modify or delete records.In this project, do not use graphics to keep the program simple.