Traceback (most recent call last): File "C:/app.py", line 20, in main() File "C:/app.py", line 17, in main print report () File "C:/app.py", line 12, in print_report print_id() File "C:/app.py", line 6, in print a message = "Your id is: " + id num TypeError: must be str, not int Process finished with exit code 1 Given this stack trace above, on what line was the main function called? O Line 17 O Line 12 ● Line 20 O Line 6
Q: Interval Difference: Please help me with this assertion error
A: It looks like there's an issue with the implementation of the `interval_sub` method in the…
Q: Compare between Intrusion detection systems (IDS) and Intrusion prevention systems (IPSs):…
A: AspectIntrusion Detection Systems (IDS)Intrusion Prevention Systems (IPS)DescriptionIDS monitor…
Q: I need help with this please
A: In this corrected assembly code: I fixed the syntax errors in the assembly instructions.Used the…
Q: Please help me is this code correct for the flowchart below for the first code its supposed to…
A: FirstThe function does not check if the input number is prime or not. It simply processes the input…
Q: c) What is the value stored in the AC when the program terminates? Hex Address Label Start,…
A: To provide a comprehensive explanation of the program's execution and the value stored in the…
Q: 3. Think about your own university or college and choose an idea that could improve…
A: Increasing the Contentment of Students Through the Utilization of Technology to Improve the Course…
Q: The graph expansion algorithm that involves building a complete graph over the terminal (leaf)nodes…
A: The question is asking about a specific type of graph expansion algorithm. Graph expansion…
Q: 4. Find the length of a shortest path between a and z in the given weighted graph. a b 5 d 5 f 4 7 2…
A: To find the shortest path between node 'a' and node 'z' in the weighted graph, we used Dijkstra's…
Q: Suppose that a license plate consists of three uppercase letters followed by three digits. How many…
A: To find the number of different license plates that start with the letter A and end with the digit…
Q: Please help me with these questions. It is urgently needed. Please construct a Javascript code based…
A: Approach to solving the question:First Program:Counting number of positive and negative…
Q: Write a Java program that uses a TreeMap for a phone directory that holds a list of names with a…
A: The objective of the question is to create a phone directory using TreeMap in Java. TreeMap is a…
Q: The following html and javascript code deals with an Analog clock please do some modification to…
A: clock.js:document.addEventListener("DOMContentLoaded", function () { const canvas =…
Q: (b) The following is the state diagram of a Turing machine M1 with inputalphabet {0, 1} and accept…
A: (i) Sequence of configurations of M1 on the input string 01, starting with initial configuration…
Q: Don't use AI Explanation is must needed
A:
Q: Given and a , a keyword search system will match each keyword against nodes in the graph and compute…
A: FOR ANY QUERIES, PING ME HAPPY LEARNING
Q: Gamit ang uri ng pagbubuod na SINTESIS, pakibuod ang impormasyon na nakaattach, sigurading huwag…
A: Key references:
Q: A customer in a store is purchasing three items. Write a JavaFx application that asks for the price…
A: The objective of the question is to create a JavaFX application that calculates the total cost of…
Q: Calculate the technical complexity factor by answering all required questions and carefully stating…
A: F1 Reliable backup and recovery: How critical is it to have a reliable backup and recovery system in…
Q: Imagine you are designing a new mobile banking app. The app aims to provide a seamless and…
A: Introduction:In designing a new mobile banking app that provides a seamless and user-friendly…
Q: Explain the following in depth: Network security Application security Information security…
A: The question is asking for an in-depth explanation of various types of security measures and…
Q: A red die and a blue die are thrown. Both dice are loaded (that is, not all sides are equally…
A: step by step solutionStep 1:1) First, let's consider the red die. We know that rolling a 3 is half…
Q: what is Java and what are it's pros and cons?
A: Java is a high-level, class-based, object-oriented programming language that is designed to have as…
Q: In the database world, the starting point for uncertain data representations is that of the c-table.…
A: The question is asking whether the c-table (conditional table) is the starting point for uncertain…
Q: The Code Red II worm accomplished rapid infection mainly because of its localized scanning strategy.…
A: The objective of the question is to identify the correct statements about the localized scanning…
Q: ______ is a documentation generator that produces an html file containing documentation of a…
A: Doxygen is a powerful documentation generator used extensively in software development to create…
Q: Please solve all and add explanation
A: Understanding dVar:dVar is declared as a DWORD (Double Word) in the .data section with the value…
Q: What command is used to list all currently enabled repositories on a Red Hat workstation/server?…
A: The objective of the question is to identify the correct command to list all currently enabled…
Q: Explain web as source of data and its bottleneck. How is XML used to represent big data?
A: The web is a vast source of data, with millions of websites, blogs, social media platforms, and…
Q: Hi there, would you be able to assist me with solving this problem? I'm finding it challenging and…
A: This is a classic problem in the theory of computation, dealing with the undecidability of certain…
Q: create an array of 30 random numbers that range between 1and 100. And yet again, write a function…
A: The objective of the question is to create a function that will determine if a given number exists…
Q: Please do fast don't use ai
A: Data Validation Process for Employee Records: In this section, we make sure that the employee IDs…
Q: answer in matlab do not use ai
A: Detailed explanation:To plot the astroid and its catacaustic in MATLAB, you can create a script file…
Q: Examine the following graph. We will be running Dijkstra's algorithm starting at the node labeled S…
A:
Q: In OOP, what can you say about a method that requires a lot of parameters? Having…
A: The question is asking about the implications of having a method in Object-Oriented Programming…
Q: Create a JavaFX application that draws a pattern of evenly spaced circles.• Use four constants to…
A: The objective of the question is to create a JavaFX application that draws a pattern of evenly…
Q: Please help me is this code correct for the flowchart below for the code its supposed to display…
A: Input:The code expects a string of numbers separated by commas (e.g., "3,12,-2,5,15,1,1").Imagine…
Q: I'm having difficulty crafting a Turing machine in JFLAP for my current problem. Would you mind…
A: Approach to solving the question: Dear student , here's a comprehensive response combining the best…
Q: answer with matlab code. do not use ai
A: Approach:The approach taken in the MATLAB code involves:1. Function Definition:Start by defining the…
Q: What are some specific harms of privacy in the digital age?
A: Let's analyze it in more detail along with examples. The widespread surveillance and profiling of…
Q: I need to show me how Analyzing Code with the FindBugs With pictures and thank y
A: Here's a walkthrough on how to analyze code with FindBugs, incorporating pictures:FindBugs…
Q: Download the PA1-Create-Topology.ps1 file to the C:\Scripts folder. • On you VMHost machine, open…
A: To complete the performance assessment instructions, follow these steps:1. **Plan IP Addressing:**…
Q: The BufferedReader reads one line of text at a time. If there are several data items in a single…
A: The objective of the question is to identify the correct method of the String class in Java that can…
Q: Partition vs Partition Gap: Define what a partition is and its purpose in disk management. Explain…
A: Let's delve into each of your questions thoroughly: 1. Definition and Purpose of a Partition in Disk…
Q: Difference between organizational feasibility and operational feasibility
A: The objective of this question is to understand the difference between organizational feasibility…
Q: subroutine stack segment 3 1400 segment o 2400 segment 0 symbol table limit base Sqrt segment 4 1…
A: Calculating the physical address <4,152>, 4 refers to the segment, while 152 refers to the…
Q: Q2. RSA Alice starts the RSA, with key generation. She selects p-19 but she is confused with the…
A: Step 1 RSA consider 2 numbers P and Q which are prime numbers. n=p*q and phi(n) = (p-1)*(q-1) and e,…
Q: What are the most common approaches of probability sampling or nonprobability sampling and what is…
A: The objective of this question is to understand the common approaches of probability and…
Q: In two paragraphs, summarize the pros and cons of software acquisition.
A: Pros and cons of software acquisition:Software acquisition, which means getting software from…
Q: (25 pt.) You are playing Scrabble and you draw seven tiles: M, A, T, C, H, E, S. You line them up in…
A: Let's solve this problem step by step.5.1 Calculating the probability of each event:p(M): There are…
Q: In the database world, the starting point for uncertain data representations is that of the c-table.…
A: The question is asking whether the c-table (conditional table) is the starting point for uncertain…
Step by step
Solved in 2 steps
- The above screen is used to browse the products table it uses the ProductDAO.java file, it calls the getProductByCriteria() function which should accept a parameter, this parameter should be the criteria that would be built from the two combo boxes and the text box, and queries the products table.The getProductByCriteria() function should return a list of Product objects that matches the criteria specified. Modify the function so that it accepts a string paramater consisting of the fields from the combo boxes and a price number from the text box separated by commas and use this string to modify the query in the function to return the desired result set. public List<Product> getProductByCriteria() //MAKE MODIFICATIONS TO THIS FUNCTION SO IT CAN TAKE PARAMETER(S) { if (openConnection()) { try{ List<Product> items = new ArrayList <> (); Product temp = null; String…1. The timeclock.txt file contains the hours worked data for every employee as well as the shift they worked. The layout for the file is as follows: EMPLOYEE NUMBER, HOURS WORKED, SHIFT 2. The personnel.txt file contains the names of all employees and their hourly pay rates. The layout for the file is as follows: EMPLOYEE NUMBER, EMPLOYEE NAME, PAY RATE Note: Both the timeclock.txt and payroll.txt files are pre-sorted by EMPLOYEE NUMBER in ascending order. Business Rules 1. For hours <= 40, the employee gross pay is: HOURS WORKED PAY RATE 2. For hours> 40, the employee gross pay is: HOURS WORKED PAY RATE 1.5 3. For shift 3, add $1 per hour to the employee pay rate The program should: 1. Download both input files in the same folder that you will create your .py program. 2. Read both input files together. 3. Match the input files by the EMPLOYEE NUMBER. 4. For each record in the timesheet.txt file, write a record in a new output file named payroll,txt based on the business rules…In this assignment, you have to write down a file comparison application. You can use this chapters codes to create your file. In your first file, you have to add at least 10 accounts such as (please assume the name of the file as orginal_account_file.txt) ID Name Surname Balance Tel eMail 1) In your second file you have to change Balance, Tel and eMail data of at least five records. In your code, such as(please assume the file name as changed_account_file.xt): ID Name Surname Balance Tel eMail 1) "you have to display the changes in each record, and display as separate records to show changed and unchanged records. "Your code also have to create two separate files to save changed records and un-changed records. Such as: File_Unchanged_Records.txt File Changed_Records.txt You have to upload only C.files, the given files have to create these four files (orginal_account_file.txt, changed account_file.txt, File_Unchanged Records.txt, File Changed Records.bxt)
- List names of all customers who live in a given zip code Feature 18: List names of all customers living in a given zip code. Input: Create a procedure with Cust_name, Cust_Zip and a cursor to store the select statement output into the cursor. Output: Displays a list of all the customer names for a specific zip code with the cursor. Example of calling the feature: Exec customer_name_by_ZIP(‘Daisy Brown’, 64277); using an exception tooelifmenu == 'gr': file6 = open('tasks.txt', 'r') tasks = file6.readlines() total_tasks = len(tasks) total_completed_tasks = 0 total_uncompleted_tasks = 0 total_task_overdue = 0 fortaskintasks: assigned_user, task_title, task_description, current_date, task_due, completed_question = task.strip().split(", ") task_due_2 = parser.parse(task_due) iftask[-1] == "Yes": total_completed_tasks += 1 else: total_uncompleted_tasks += 1 iftask_due_2 < datetime.today(): total_task_overdue += 1 incomplete_percentage = round(total_completed_tasks / total_tasks * 100, 2) overdue_percentage = round(total_task_overdue / total_tasks * 100, 2) print("Report Generated in file: task_overview.txt") file7 = open('task_overview.txt', 'a') file7.write(f"Number of tasks: {total_tasks}\n") file7.write(f"Number of completed tasks: {total_completed_tasks}\n") file7.write(f"Number of uncompleted tasks: {total_uncompleted_tasks}\n") file7.write(f"Number of overdue tasks: {total_task_overdue}\n")…Monthly Sales program COMMAND MENU view - View sales for specified month edit - Edit sales for specified month totals - View sales summary for year exit - Exit program Command: view Three-letter Month: jan Sales amount for Jan is 14,317.00. Command: edit Three-letter Month: jan Sales Amount: 15293 Sales amount for Jan is 15,293.00. Command: totals Yearly total: 77,786.71 Monthly average: 6,482.23 Command: view Three-letter Month: july Invalid three-letter month. Command: exit Bye! Specifications The program should use a list to store the sales data for each month with the three-letter abbreviation for the month (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, and Dec) as the key for each item. Make sure your program uses map to store each month to use as a key Provide pseudocode Use c++ When the program starts, it should read the sales data inserted from the user. If the user edits the sales data, the program should edit the data.
- Monthly Sales program COMMAND MENU view - View sales for specified month edit - Edit sales for specified month totals - View sales summary for year exit - Exit program Command: view Three-letter Month: jan Sales amount for Jan is 14,317.00. Command: edit Three-letter Month: jan Sales Amount: 15293 Sales amount for Jan is 15,293.00. Command: totals Yearly total: 77,786.71 Monthly average: 6,482.23 Command: view Three-letter Month: july Invalid three-letter month. Command: exit Bye! Specifications The program should use a list to store the sales data for each month with the three-letter abbreviation for the month (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, and Dec) as the key for each item. Make sure your program uses map to store each month to use as a key Provide pseudocode Must use c++ Must use the map function to store month as a key for each item When the program starts, it should read the sales data inserted from the user. If the user…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.2. load_friendsdb This function does the reverse of save_friendsdb -- it takes a single argument, filename, and opens that specified file for reading. Then it reads the file one line at a time and creates a new friends database to return. Like in the previous function, each line will contain a friend's name followed by a tab, then the friend's height, and then a newline. Sample calls should look like this: >>> load friendsdb("friendsdb.tsv") [{'name': ' bimmy', 'height': 600}, {'name': 'Ian Donald Calvin Euclid Zappa', height': 175}]
- 2. load_friendsdb This function does the reverse of save_friendsdb -- it takes a single argument, filename, and opens that specified file for reading. Then it reads the file one line at a time and creates a new friends database to return. Like in the previous function, each line will contain a friend's name followed by a tab, then the friend's height, and then a newline. Sample calls should look like this: >>> load_friendsdb("friendsdb.tsv") [{'name': ' bimmy', 'height': 600}, {'name': Ian Donald Calvin Euclid Zappa', height': 175}]In this assignment, you have to write down a file comparison application. You can use this chapters codes to create your file. In your first file, you have to add at least 10 accounts such as (please assume the name of the file as orginal_account_file.txt) ID Name Surname Balance Tel еMail 1) Tolga Medeni -6500 0555555555 tolgamedeni@ybu.edu.tr In your second file you have to change Balance, Tel and eMail data of at least five records. In your code, such as(please assume the file name as changed_account_file.txt): ID Name Surname Balance Tel eMail 1) Tolga Medeni 0999999999 tolgamedeni@gmail.com "you have to display the changes in each record, and display as separate records to show changed and unchanged records. "Your code also have to create two separate files to save changed records and un-changed records. Such as: File_Unchanged_Records.txt File_Changed_Records.txt You have to upload only C. files, the given files have to create these four files (orginal_account_file.txt,…you have to write down a file comparison application. You can use this chapters codes to create your file. In your first file, you have to add at least 10 accounts such as (please assume the name of the file as orginal_account_file.txt) ID Name Surname Balance Tel eMail 1) In your second file you have to change Balance, Tel and eMail data of at least five records. In your code, such as(please assume the file name as changed_account_file.xt): ID Name Surname Balance Tel eMail 1) "you have to display the changes in each record, and display as separate records to show changed and unchanged records. "Your code also have to create two separate files to save changed records and un-changed records. Such as: File_Unchanged Records.txt File Changed_Records.txt You have to upload only C.files, the given files have to create these four files (orginal_account_file.txt, changed account_file.txt, File_Unchanged Records.txt, File Changed Records.bxt)