1. The file Final.txt contains student grades on a final exam. Write a program that displays the number of grades, the average grade, and the percentage of grades that are above the average grade as shown below. Write a main() function to initialize (kickstart) the application, and a calculate percent above_average() function to calculate the percentage of grades that are above the average grade. Hint: Read in the input file Final.txt using the open() method and assign the grades to a list of integers. Number of grades: 24 Average grade: 83.25 Percentage of grades above average: 54.17% 67 56 99 80 83 82 91 94 95 77 88 85 92 91 79 88 82 81 86 94 93 92 45
Q: Provide a normalized version of the Index metadata relation and explain why utilizing it will result…
A: Given: Provide a normalized version of the Index metadata connection and explain why utilising it…
Q: Assume you've been tasked with demonstrating how the Memory Module, I/O Module, and CPU Module…
A: Module of Memory: The Memory Module interfaces with other computer components through three…
Q: What is the difference between a serial schedule and a serializable schedule?
A: Given: When will there be a show? It is called a "serial schedule" when it includes all of the…
Q: Define and explain what direct memory accesses are used for.
A: Direct memory access (DMA): A technology known as direct memory access (DMA) allows I/O devices to…
Q: 1. When does the + operator concatenate instead of add? What happens if you try to use + on a string…
A: Let us see the details below.
Q: What are the advantages and disadvantages of using a serial bus instead of a parallel bus to convey…
A: A bus in a computer system is a mechanism used to transport data from one location to another inside…
Q: What would be the advantages for a university computer lab to install thin clients rather than…
A: Introduction: Personal Computers contain a local hard drive with applications and data files. Thin…
Q: What are the advantages of automating server deployment? Doubts about automation?
A: There might be several advantages, as well as numerous causes.
Q: discuss how to creat a non-executable stack and disuss the stack's exploitable weaknesses
A: Non-Executable Stack Non-executable stack (NX) is a virtual memory protection method that restricts…
Q: 1. In what ways are exploits, backdoors and rootkits differ from one another? 2. How can you detect…
A: The answer is given in the below step
Q: In executing Jobs A and B using the priority scheduling algorithm, what will happen if both jobs…
A: We arr given two cases in priority scheduling algorithm. We will understand each case in context of…
Q: Python only Write a method that asks the user for their favorite songs until the user says ”stop”.…
A: I have provided PYTHON CODE along with CODE SCREENSHOT and OUTPUT SCREENSHOT--------------
Q: This is possible because computers nowadays are so powerful. What factors, and what evidence, have…
A: Computer Education: Online education and research are both possible with computers. Students may…
Q: The pros and cons of using thin clients at a university computer lab as opposed to desktop PCs are…
A: The answer to the following question:-
Q: How comparable are cloud computing's benefits? Cloud computing's risks and difficulties remain…
A: Cloud computing is referred to store and access data over the internet. It doesn’t store any data on…
Q: 1 Pushdown A ut omata & Context-Fr ee Languages 1. together to solve problems. | Give a precise…
A: Finite Automata It is a computer machine that recognize a particular pattern in a tape which is…
Q: List the three design objectives for relational databases and explain why each is beneficial.
A: Your answer is given below. Introduction :- A relational database is a form of database that stores…
Q: Buffers are used to minimise access latency between various levels of the memory hierarchy. List the…
A: Introduction: A designated memory section within a program for storing the data being processed.…
Q: s calculat
A: This Eurocode supports generally underlying model independent of the material of development. It…
Q: Why automate server provisioning and configuration? What are some of the drawbacks of automated…
A: INTRODUCTION: Automated provisioning is the process of delivering and controlling access to IT…
Q: What effect has the internet had on system architecture?
A: The Internet has had a dramatic impact on business sectors, businesses, and enterprises. It has…
Q: Defining the Information Assurance Plan's Purpose
A: Given: Undetected programming flaws might expose sensitive data to unauthorized users. Information…
Q: Write a PHP code to the total current for the intrinsic semiconductor after taking current due to…
A: I give the code in PHP as per the instructions along with output and code screenshot
Q: Write a program that finds the number of times a specific word appears in a text file. The program…
A: The complete C++ code is given below with Output screenshots F1.txt file is used for the code…
Q: What is the difference between a logical address and a physical address, and how do they differ?
A: Definition: The physical address is a location in the memory unit, but the logical address is…
Q: Identify four different kinds of modulation methods.
A:
Q: Construct the CFG of the given DF
A: All the final state will have e or epsilon as one of the production.
Q: Explain how multiplexing and demultiplexing are different.
A: INTRODUCTION: Multiplexing, often known as muxing, is a method of simultaneously conveying many…
Q: Task 2 Stored PL/SQL procedure Implement a stored PL/SQL procedure PARTSUPPLIER that lists…
A: For task 1 Tab_Sup is supplier table name having columns Sup_name, Sup_key Tab_Part is part table…
Q: Explain how multiplexing and demultiplexing are different.
A: answer is
Q: 149. Write a C# Sharp program to create a new list from a given list of integers removing those…
A: The program is written in C#. Check the program screenshot for the correct indentation. Please check…
Q: Define and explain what direct memory accesses are used for.
A: What exactly is DMA? DMA stands for direct memory access; for example, a CPU can read but not write…
Q: What is the size of the cluster? How can the cellular system's capacity be increased? (as an…
A: A cluster is a group of sectors that make up the smallest unit of disk allocation for a file within…
Q: What exactly is a virtual address, and how does one go about converting one into a real one?
A: The virtual address is a logical address created by the CPU that does not exist in the real world.…
Q: Due to the increasing power of computers, this is possible. How can we establish that computers have…
A: Introduction: Computers have proven reliable since their introduction, but they are now omnipresent;…
Q: What is the difference between a serial schedule and a serializable schedule?
A: Schedule of Episodes: The term "serial schedule" refers to a schedule that contains all of the…
Q: Why does the introduction of networking technologies increase or decrease the risk faced by…
A: Given: We have to discuss Why does the introduction of networking technologies increase or…
Q: m prgartng publicatos, Al of the ober getions 6 four enyty gacs after petoas c singe-lne headings E…
A: Publishing scientific articles is essential for the development of modern science and career…
Q: Consider this code: int nums[4] - {169, 69, 619, 88}; int *ptr - nums; Suppose that below is the…
A: Here ptr = 301 and nums = 301
Q: By simply adding relevant properties, we may transform any weak entity set into a strong entity set.…
A: Definition of a weak entity set: 1.There may not be enough properties in an entity set to construct…
Q: Is there a limit to how many functions may be nested?
A: Generally speaking, we can best up to 64 levels of functions which are in the formula. With the…
Q: Provide an overview of the fundamental memory operations.
A:
Q: In GSS. which of the follwing is a contectual selator? a ol d ul 6. 6l. 6 C. avisit ( None of the…
A: The question is to select the correct option from the given four options.
Q: What are your alternatives when it comes to commercial software? What criteria should \syou use?
A: Given: It's a software package that you can buy off of the shelf. There are a lot of things to think…
Q: Provide a normalized version of the Index metadata relation and explain why utilizing it will result…
A: A normalized version of the Index metadata relationship has been created. The Index metadata…
Q: A systems analyst who is just starting out at a corporation would not be the best person to head a…
A: Foundation: A systems analyst is a person who utilises information technology to address business…
Q: Consider this code: int nums[4] = {169, 69, 619, 88}; int *ptr = nums; Suppose that below is the…
A: Here in this question we have given a code segment using pointer and we have asked to do some…
Q: How are truly distributed systems modeled?
A: A distributed system uses resources from different system located on multiple networks. Distributed…
Q: Describe the step-by-step approach for developing the smallest transport-layer protocol imaginable.
A: The following technique details how to create the simplest possible transport-layer protocol:
Q: Describe the various transmission modes available.
A: Transmission mode Transmission modes are used to transferring the data between the two devices that…
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Task: Loading data from files This exercise will require you to load some information from files and use it in your program. scene.txt contains a description of a series of shapes and colours to draw. You need to write code to read in the file data and draw the requested shapes in the correct colour. Each line in scene.txt will contain one of the following starting keywords followed by some data: COLOUR followed by 3 values: R, G, B CIRCLE followed by 3 values: X, Y, RADIUS RECT Followed by 4 values: X, Y, W, H LINE Followed by 4 values: X1, Y1, X2, Y2 CIRCLES are defined from the center. RECT's are defined from the top left. All values are space separated, and you can assume all input is correct (no errors). Please solve this program to draw the scene. I can't upload the file scene.txt, so I decide to screenshot a file for you. Subject: Java ProgrammingFinish 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…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…
- Slide Type Slide • Exercise # 4 A hotel salesperson enters sales in a text file. Each line contains the following, separated by semicolons: • The name of the client, the service sold (such as Dinner, Conference, Lodging, and so on), • The amount of the sale, and the date of that event. • Write a program that reads such a file and displays the total amount for each service category. Display an error if the file does not exit or the format of the record is incorrect. No need to display anything else in this regard. Note that you can assume that the dates are entered correctly (no need to validate them). You may also assume that the name of the input text file is inputex4.txt. • Make sure you use a dictionary in your solution. • Sample run is included below for the given input file inputex4.txt Summary of total sales according to services Dinner 634.75 Conference 1133.25 Lodging Dinner and Lodging 550.25 625.14 Slide Tyne Fragment vWrite the code in python Create an application that can create, display, search and maintain the book information for a bookstore. Requirements: 1) you need to use functions to write code for each menu item. 2) Information of books will be saved in a file, e.g,, books.txt. 3)User can add any number of books to the booklist. There can be 5 books or 500 books. In order for your program to handle it without any changes in the code, you cannot hardcode the number of books in your program.Python Create a text file named “Books.txt”.Open the text file and add the name of at least two books.In your Python3 code file, create a function that will loop through and display a menuwith options to Display, Add, Exit. It will end once the user selects the option for exit.Create another function that will accept the user’s choice with the outcome for eachoption.Display – read the file and output each lineAdd – prompt the user for a book name and append it to the file. Exit – close the file and exit the loopRun the code to display your output.
- Instructions: 1. Create a Python file A01_RO6_CUSN_monthlyBalance.py that shows customers how their deposits grow over time (in units of months). The program should: 1.1. Read the initial balance and the annual interest rate. The interest rate should then be increased by the last digit of your student number (e.g. if your student number is 100123456 and the user inputs 2%, then the interest used for calculations would be 2% + 6% to be 8%) 1.2. Calculate interest that is compounded monthly. 1.3. Print the monthly balance for the entered number of months. The output of your code should resemble the following: Please enter the annual interest rate: Please enter the initial balance: 1000 Please enter the number of months to know the balance: Initial Balance: $1000 Annual Interest Rate: 9% After 1 month: $1007.5 After 2 month: $1015.06 After 3 month: $1022.67 After 4 month: $1030.34 After 5 month: $1038.07 Additional Notes: 1. The green text above represents the user's input. This can be…Python - Next Birthdate In this task, we will write a program that reads birthdate data from a given CSV file, and given the current date, determines which person's birthday will be celebrated next. Create a function with the following signature: nextBirthdate(filename, date) filename: parameter, which represents the CSV filename. date: parameter, which represents the current date. The function should open the CSV file, read the birthdate data, and determine which person's birthday will be celebrated next, given the current date. The name of the person should be returned. In other words, given a date, find the person whose birthday is next. Sample Run birthdates.csv Draven Brock, 01/21/1952 Easton Mclean, 09/02/1954 Destiny Pacheco, 10/10/1958 Ariella Wood, 12/20/1961 Keely Sanders, 08/03/1985 Bryan Sloan,04/06/1986 Shannon Brewer, 05/11/1986 Julianne Farrell,01/29/2000 Makhi Weeks, 03/20/2000 Lucian Fields, 08/02/2018 Function Call nextBirthdate("birthdates.csv", "01/01/2022") Output…Each of the following files in the Chapter.05 folder of your downloadable student files has syntax and/or logical errors. In each case, determine the problem, and fix the program. After you correct the errors, save each file using the same filename preceded with Fixed. For example, save DebugFive1.cs as FixedDebugFive1 .cs. a. DebugFive1.cs b. DebugFive2.cs c. DebugFive3.cs d. DebugFive4.cs
- Python Please! Create a program that will allow a user to do either of the following things: Get input from the user to write the following information to a file: Student name Assignment average grade Mid-term test grade Fi-nal project grade Fi-nal test grade Allow the user to search the file by student name and output a weighted average (15%, 25%, 25%, and 35%, respectively) based on the grades for that student in the file. The user should be able to choose either of the two options until they want to stop.● Create a Python file called holiday.py in this folder.● You will need to create four functions:● hotel_cost — This function will take the number of nights a userwill be staying at a hotel as an argument, and return a total cost forthe hotel stay (You can choose the price per night charged at thehotel).● plane_cost — This function will take the city you are flying to as anargument and return a cost for the flight (Hint: use if/else ifstatements in the function to retrieve a price based on the chosencity).C programming create a text base game to race 4 cars across the screen and determine the first second and third place. A text file (car.txt) with the name of the driver, type of the race car, car number, and the color of the car is given to you. In addition to the above, the user(s) should be asked if they want to modify their car’s specs. Such as the type of race car (Ford, Chevy, Dodge, etc.), the car number, name of driver, and the color. The user should be able to make changes to their vehicle between each race. The modifications are to be saved to a file. With each key press a random number between 0 and 10 is generated to represent the cars next distance to travel.