Write a program that generates student records in a database file. Your program should be able to generate at least 10 records. The format in the database should be: student name, student id The first student id should be 20180001, second id will be 20180001 and so forth.
Q: Let's say that an employee's regular pay is rate times hours. If they work more than 40 hours, they…
A: When calculating an employee's pay, it's common for businesses to provide a standard rate for…
Q: Using string functions, compare the string "I have a 3.72 GPA" to string "I have a 3.72 GPA" where…
A: Initialize str1 with the string "I have a 3.72 GPA".Initialize str2 with the string "I have a 3.72…
Q: Let's say that an employee's regular pay is rate times hours. If they work more than 40 hours, they…
A: In this question we need to write a Python program to take hours and rate of work for an employee as…
Q: Develop an algorithm and write a C++ program that counts the number of letters in the string; make…
A: Call by reference is a parameter-passing mechanism in programming languages where a function…
Q: Explain the approaches for developing SOAP web-based service?
A: Developing SOAP (Simple Object Access Protocol) web-based services involves creating a standardized…
Q: Write a program that asks for the names of three runners and the time it took each of them to finish…
A: Algorithm:Read the name of the first runner.We use input() function in python to get input from…
Q: import org.firmata4j.IODevice; import org.firmata4j.Pin; import org.firmata4j.firmata.FirmataDevice;…
A: It seems like you're trying to create a program that monitors soil moisture using various components…
Q: The requirements below partially describe a game management system (such as Steam) that is used for…
A: The provided diagram is a UML (Unified Modeling Language) class diagram, which is commonly used to…
Q: Assume the network uses packet switching and 2 Kilobyte packets. Assume both L1 and L2 each have a…
A: The time required to send a 100 Kilobyte file from Node A to Node B depends on the speed of…
Q: Does the pipelined processor execute instructions in an atomic and in-order manner? Atomic: no,…
A: In computer architecture, a pipeline refers to a technique where different stages of instruction…
Q: Briefly describe the RSA cipher. If the prime numbers e, p, and q are 17, 7, and 11, respectively,…
A: A popular public-key cryptography algorithm is RSA. In 1977, Ron Rivest, Adi Shamir, and Leonard…
Q: Consider the int Array below and determine the values of A and B so that Array[0] has an integer in…
A:
Q: Draw a square with a Pentagram hole! The 3×3 square extends from −0.7 to 2.3 on the X axis and from…
A: We have to draw a square with a pentagram hole! The 3×3 squares extend from −0.7 to 2.3 on the X…
Q: T(n/3)+t(3n/3)+O(n) using substiution what is the recurence (runtime)
A: The recurrence relation you've provided, T(n) = T(n/3) + T(3n/3) + O(n), represents the runtime…
Q: Define the term "virtual machine" and explain why it is necessary.
A: A virtual machine (VM) is a crucial technology in modern computing. It involves the emulation of a…
Q: Let's say that an employee's regular pay is rate times hours. If they work more than 40 hours, they…
A: 1. Input the rate and hours worked for the employee.2. Define a function regular_pay(rate, hours):If…
Q: Let h₁ and h₂ be two admissible heuristics. Which of the following heuristics are admissible?…
A: An admissible heuristic is a heuristic in the context of A* search that never overestimates the true…
Q: Given a hard drive with the following characteristics: 1024 B sector 15,000rpm 4 ms average seek…
A: The rotational speed is 15000 rpmThat is,15000 rotation 60 second1 rotation x…
Q: How are truly distributed systems modeled?
A: Truly distributed systems are modeled to portray the intricate interactions and behaviors of several…
Q: Make a class Student. The Student class has data members such a sroll number, name, branch. Create a…
A: here's the algorithm in a step-by-step format for the classes Student, Exam, and Result:Student…
Q: 3 BGP 20. 21. 22. 23. AS1 has the following routing table, draw the network of AS's that these paths…
A: In the context of routing and autonomous systems (AS), a routing table contains information about…
Q: Write a php program to take the current room temperature from the user in degree celsius and try to…
A: Step-1) First, telling the system that the file is a type of the PHP.Step-2) Then, taking the room…
Q: python
A: I have provided PYTHON CODE along with CODE SCREENSHOT and OUTPUT SCREENSHOT----------------
Q: A lottery ticket buyer purchases 10 tickets a week, always playing the same 10 5-digit “lucky”…
A: I have provided PYTHON CODE along with CODE SCREENSHOT and OUTPUT SCREENSHOT--------------
Q: Write a recursive function called print_num_pattern() to output the following number pattern. Given…
A: The print_num_pattern() function is defined with two parameters: num1 and num2, which represent the…
Q: Which fibre is utilised to protect the inner core and prevent the cable from straining in…
A:
Q: B. Add the necessary forwarding paths for the following instructions in the datapath shown here. B 1…
A: The datapath includes registers, ALU and interconnected bus that allows data to flow between them.…
Q: 11. What do you mean by functional and non-functional requirements? Give at least two examples of…
A: Functional requirementsFunctional requirements describe the specific functionalities or features…
Q: Question 2. Describe the TCP flow control. Specifically, what happens if network layer delivers data…
A: TCP (Transmission Control Protocol) is a fundamental protocol in computer networking that ensures…
Q: Consider the int Array below and determine the values of A and B so that Array[0] has an integer in…
A: Given,Consider the int Array below and determine the values of A and B so that Array[0] has an…
Q: in c++ How would you compare Heap with Tree? with an example.
A: In C++, both heaps and trees are fundamental data structures used to organize and manage data…
Q: How do key hyperparameters such as C and the kernel parameter affect the model?
A: Support Vector Machines (SVMs) are powerful tools in the realm of machine learning, often utilized…
Q: What is Standard Error, and what does it mean?
A: When dealing with data, it's common to have variability or fluctuations. The standard error is a…
Q: Total = a + b + c; Average = Total / 6; A. B. O C. D. Logic Errors Run-time Errors None of the above…
A: A programming language must follow rules and regulations to execute task successfully. Logical…
Q: The OSI transport layer refers to a component of the Open Systems Interconnection (OSI) model, which…
A: The Open Systems Interconnection (OSI) model is a fundamental framework that helps us understand the…
Q: .How often a classifier is right when it says something is fraud is called Precision. Precision is…
A: Precision becomes a crucial parameter in the classification space, where algorithms try to identify…
Q: Given a hard drive with the following characteristics: 1024 B sector 15,000rpm 4 ms average seek…
A: In order to compute the average read time and the time it takes to read 100 sectors of a hard drive,…
Q: Explain the services provided by the data link layer to network layer with their applications.…
A: The data link layer and the network layer are essential components of the OSI (Open Systems…
Q: Create a Java program that will display the student's information. The program should perform the…
A: The below program is created to retrieve and display the student's information. The program will ask…
Q: Prove using Pumping Lemma for CFL if the following languages are context free or not. (a) { a'b'a'b'…
A: Pumping Lemma for CFL asserts that the W may be broken down into W=abcde such that, for some…
Q: Without using Ai Draft, a five-paragraph summary that explains each type of operating system…
A: Wireless sensor networks (WSNs) can be defined in such a way that it is used to enable data series…
Q: How many of the relations in Johnny's logical database design have a composite primary key?
A: In a database, a composite primary key refers to a method of uniquely identifying a specific record…
Q: Assume that a reliable delivery of data from a machine M1 to another machine M2 is provided through…
A: The transport layer would be the best layer to choose in order to guarantee the accuracy and…
Q: Suppose you have a consulting practice implementing local area networks for fraternities and…
A: In the realm of campus networking, establishing reliable and efficient local area networks (LANs)…
Q: Question 3. Calculate the total number of unique MAC addresses, IPv4 addresses, and IPv6 addresses.…
A: MAC addresses are the physical addresses which are 48 bit addresses. MAC stands for Media Access…
Q: Most ISA's have an instruction that simply does nothing, called NOP, which is short for NO OPeration…
A: "NOP" stands for "No OPeration." It's a computer instruction that doesn't perform any meaningful…
Q: QUESTION 1 Write a complete program that consists of the main function that will call 4 user-defined…
A: To repeat users calculation, use while(1) loop and in one of choice put break. Use two functions for…
Q: The request queue for disk cylinders is 78, 137, 156, 120, 103, 87, 177, 65. Initially, the read…
A: The answer of 2 questions are given in the below steps with proper explanation
Q: Because of virtual memory, the memory can be shared among A. processes B. threads C. instructions D.…
A: Virtual Memory is a memory management technique that allows the utilization of secondary memory,…
Q: Guve point-What is UDDI? What are the features of UDDI? Answer:.
A: UDDI:UDDI is a database that records universal descriptions, discoveries, and integrations. An…
Write a
Show screenshot of script
Step by step
Solved in 4 steps with 3 images
- Write a program that generates student records in a database file. Your program should be able to generate at least 10 records. The format in the database should be: student name, student id The first student id should be 20180001, second id will be 20180001 and so forth.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-ZAD011-76540-022 ASUS battery Milton-EAST 34-56-CBH561-09239-026 HP HD Scarborough-NORTH 12-98-AZC451-12349-029 Mac FD North York-LAWRENCE 34-49-ZWL01Add 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.Python: I am trying to write a simple GUI based program with two input fields “Directory/filename” and “word” next to each other and one output text field below. Using recursion the program should go through all the files and folders searching for the entered word. If a match is found the path to the file should be printed in the text field + the content of line the word is found in . It should also print how many folders and files has been searched and how many times the word was found. Any ideas?
- Sometimes data is not always in the format we need it to be in. In this hypothetical situation, you are writing a program to load phone numbers into a database from user entered survey data. The 10 digit phone number will be stored in the database as an integer (e.g. 1234567890), however the user may enter the phone number in any format (e.g. 123-456-7890). You will write a program that creates a new string from the user entered number consisting of only the digits so it should have the same structure as word_quiz.py in the Unit 5 lecture slides. Below are two examples of how your program should run with different inputs: Enter phone number: (530) 555-1212 Numbers: 5305551212 Enter phone number: 916-123-4567 Numbers: 9161234567 The last line of your program should be: print("Numbers:", phoneNum)java program that Creates an INDEXCEPTION value of the unique vowels and unique consonants that the name that was given to you can create.Input: A string of the name that was GIVEN TO YOU. CASE SENSITIVE.Process1: For every unique vowel of a name, you need to get the first index of that vowel from the original string. 2: For each vowel index you get from step 1, you will get the unique consonant from that position. if the index is out of scope of the consonant array, ignore that vowel index. 3: For each unique consonant that you get from step 2, you need to get the first index of that consonant from the original string. 4: Get the value of indexception by adding all index you get from step 3.OutputTO BE DISPLAYED- 2 lists that consists of unique vowels and unique consonants- The vowel, the vowel index, the consonant, the consonant indexFINAL OUTPUT- The total indexception value of the name that was given to you.Instructions The history teacher at your school needs help in grading a True/False test. The students’ IDs and test answers are stored in a file. The first entry in the file contains answers to the test in the form:TFFTFFTTTTFFTFTFTFTTEvery other entry in the file is the student ID, followed by a blank, followed by the student’s responses. For example, the entry:ABC54301 TFTFTFTT TFTFTFFTTFTindicates that the student ID is ABC54301 and the answer to question 1 is True, the answer to question 2 is False, and so on. This student did not answer question 9. The exam has 20 questions, and the class has more than 150 students. Each correct answer is awarded two points, each wrong answer gets one point deducted, and no answer gets zero points. Write a program that processes the test data. The output should be the student’s ID, followed by the answers, followed by the test score, followed by the test grade. Assume the following grade scale:90%–100%, A; 80%–89.99%, B; 70%–79.99%, C; 60%–69.99%,…
- Instructions The history teacher at your school needs help in grading a True/False test. The students’ IDs and test answers are stored in a file. The first entry in the file contains answers to the test in the form:TFFTFFTTTTFFTFTFTFTTEvery other entry in the file is the student ID, followed by a blank, followed by the student’s responses. For example, the entry:ABC54301 TFTFTFTT TFTFTFFTTFTindicates that the student ID is ABC54301 and the answer to question 1 is True, the answer to question 2 is False, and so on. This student did not answer question 9. The exam has 20 questions, and the class has more than 150 students. Each correct answer is awarded two points, each wrong answer gets one point deducted, and no answer gets zero points. Write a program in C++ that processes the test data. The output should be the student’s ID, followed by the answers, followed by the test score, followed by the test grade. Assume the following grade scale:90%–100%, A; 80%–89.99%, B; 70%–79.99%, C;…Virus DNA files As a future doctor, Jojo works in a laboratory that analyzes viral DNA. Due to the pandemic During the virus outbreak, Jojo received many requests to analyze whether there was any viral DNA in the patient. This number of requests made Jojo's job even more difficult. Therefore, Jojo ask Lili who is a programmer for help to make a program that can read the file containing the patient's DNA data and viral DNA and then match them. If on the patient's DNA found the exact same string pattern, then write to the index screen the found DNA. Data contained in the file testdata.in Input Format The first line of input is the number of test cases TThe second row and so on as many as T rows are the S1 string of patient DNA and the S2 string of viral DNA separated by spaces Output Format The array index found the same string pattern. Constraints 1 ≤ T ≤ 1003 ≤ |S2| ≤ |S1| ≤ 100|S| is the length of the string.S will only consist of lowercase letters [a-z] Sample Input (testdata.in)…Java Problem The teacher at a school needs help grading an exam with a number of True/False questions. The students’ IDs and test answers are stored in a file. The first entry of the file contains the answer to the test in the form: TTFTFTTTFTFTFFTTFTTF Every other entry in the file is the student’s ID, followed by a blank, followed by the students’ response. For instance, the entry: ABC54102 T FTFTFTTTFTTFTTF TF The student’s ID is ABC54102, answer to question 1 is True, the answer to question 3 is False. Also, the student did not answer question 2 and question 18. The exam has 20 questions. Here is the grading policy: each correct answer is awarded two points, each wrong answer get -1 point, and no answer gets 0 point. Write a program that processes the test data. The output should be the student’s ID, followed by the answers, followed by the test score (total points), followed by the test grade. Assume the following grade scale will be used: 90%-100%, A; 80%-89.99%, B; 70%-79.99%,…
- JAVA PPROGRAM Write a program that prompts the user to enter a file name, then opens the file in text mode and reads names. The file contains one name on each line. The program then compares each name with the name that is at the end of the file in a symmetrical position. For example if the file contains 10 names, the name #1 is compared with name #10, name #2 is compared with name #9, and so on. If you find matches you should print the name and the line numbers where the match was found. While entering the file name, the program should allow the user to type quit to exit the program. If the file with a given name does not exist, then display a message and allow the user to re-enter the file name. The file may contain up to 100 names. You can use an array or ArrayList object of your choosing, however you can only have one array or ArrayList. Input validation: a) If the file does not exist, then you should display a message "File 'somefile.txt' is not found." and allow the…In Java, the File class is used to represent the data in a directory entry. Write a program that uses the File class to print all the attributes of a file.The file Names.txt is located in the folder input_files within your project. The content of that file is shown in the following figure Java: import java.io.FileInputStream;import java.io.FileNotFoundException;import java.util.ArrayList;import java.util.Scanner;public class Question2 {public static void main(String[] args) throws FileNotFoundException {/*** Part a* Finish creating an ArrayList called NameList that stores the names in the file Names.txt.*/ArrayList<String> NameList;/*** Part b* Replace null on the right-hand-side of the declaration of the FileInputStream object named inputStream* so that it is initialized correctly to the Names.txt file located in the folder specified in the question description*/FileInputStream inputStream = null;Scanner scnr = new Scanner(inputStream); //Do not modify this line of code/*** Part c* Using a loop and the Scanner object provided, read the names from Names.txt* and store them in NameList created in Part a.*//*** Part d* Reorder the…