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
- Assuming that a text file named FIRST.TXT contains some text written into it, write a function namedcopyupper(), that reads the file FIRST.TXT and creates a new file named SECOND.TXT contains allwords from the file FIRST.TXT in uppercase. (write c++ code)Question 55 Write a function that takes two parameters, a file name to create and an integer. The function should write all the even numbers between 0 and the integer to the file name passed in. The numbers should be all on one line of the file For example: write_evens("even_file.txt",20) This should create a file called even_file.txt that contains 0 2 4 6 8 10 12 14 16 18 20 Full explain this question and text typing work only thanksWrite a function called countWord(). It takes 2 parameters: The name of a text file(e.g. gettysburg.txt) and a word to be searched within that file. Your code should returnthe number of times the given word appears in the file.>>> countWord('gettysburg.txt', 'people')3
- Finish 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 function it takes a file name as an arguments and returns whether it exist or not, if it then it's a folder or a file. This task is from shell scrpting1-) Write a code to do following operationsa-print the contents of filewrite a function to print the contents of a given file on screen. Your function prototypeshould be in given format.void PrintFileContent(FILE* fptr)b-copy contents of one file to another filewrite a function to copy contents of one file to another file. Convert all characters intouppercase while copying the content. You are allowed to use toupper() function in ctypelibrary. Your function prototype should be in given format.void copy_file(FILE* fptr1,FILE* fptr2)c- count the Number of Characters in a Filewrite a function to count the Number of Characters in a File. Your function prototypeshould be in given format.int findNumberofChar(FILE* fptr)Please design your main.c file as follow1- Open a text file to read in your directory.2- Create an empty text file for writing and reading in same directory.3- Check if both files are opened.4- Print the contents of first file by calling PrintFileContent function.5- Call…
- please solve these Part 4 Write a program that creates and stores student grades.Your program should start by asking users whether they would like to add orview stored grades. If the user selects the first option, they should be repeatedlyprompted for the names and module results (4CS001, 4CS015 and 4CI018) ofstudents until the users enters a blank string, storing the information in adictionary, before writing the data to a text file in JSON or CSV format.If the user selects to view student grades, any data stored in the results fileshould be read, loaded into a dictionary and presented to the user.Make sure to validate all inputs and utilise exception handling to avoid crashes.In Python, Create a program that will write 100 integers created randomly in a file. The integers will be separated by a space in the file. Read the data back from the file, and display the sorted data. The program should prompt the user to enter a file name. Utilize the following function headers for this problem: Main() WriteNumbers(filename) ReadNumbers(filename) The main function will first prompt the user to enter the filename. Then the main function calls WriteNumbers-then ReadNumbers. The WriteNumbers function opens an output file and writes 100 random numbers as long a large string text. Do not use lists for this problem- please just write a random number followed by a space 100 times. The ReadNumbers function will then read the text file and display the numbers sorted. In order to sort the numbers, read the big string and then split it into a list. Now convert them into integers by using list comprehension and then sort the list. Loop through the list and print each…Write a function void saveByDept(char *fileName, char *deptName , student allStudents[], int size) that will save the information of all students who belong to the department with name pointed to by deptNameinto a text file. The name of the file is given as an input parameter, fileName
- Consider a file named transaction.txt which contains unknown number of lines. Each line contains data of one transaction as follows: username (string), amount (float), and membership number (int). Write a C++ program that reads the data from the file, then displays on screen the number of users, the total amount, the average of amounts, the lowest amount and the highest amount. Reading from the file should stop when one or more of the conditions given below becomes true:(a) The end of file has been reached. (b) The “user999” is reached.Consider a file named transaction.txt which contains unknown number of lines. Each line contains data of one transaction as follows: username (string), amount (float), and membership number (int). Write a C++ program that reads the data from the file, then displays on screen the number of users, the total amount, the average of amounts, the lowest amount and the highest amount. Reading from the file should stop when one or more of the conditions given below becomes true:(a) The end of file has been reached. (b) The “user999” is reached.transaction.txtHassan 12.5 12345 Mariam 5.2 87542 Zahra 33.1 93568 :::: ::Sample Screen OutputNumber of users: 54 Transactions total amount: 2658.7 The average of amounts: 120 The highest amount: 280 The lowest amount: 5.2Average grades bar chart Write a python program grades.py that reads a file of assignment grades and draws a bar chart of the average grades for each assignment. Save the figure as grades.png in the current working directory. The format of a line in the file is: assignment_type grade Note that there is a single space between the assignment type and the grade. E.g. exam 92.80 Your program must contain the following functions: Function name Function description Function input(s) Function return value(s) get_grades() This function takes a file name as input and populates a dictionary containing the assignment types and grades. Filename string Dictionary of grades main() This function prompts for the grades file name. Next, it calls the functions get_grades(). Next, it draws the bar chart of the average grade for each assignment. Hint: You can use the mean function of the statistics module to calculate the average of a list. None None Use the starter…