Write a program to compute Letter grades for a course. The course records are in a file that will serve as the input file. Each line of the file contains a student’s last name, then one space, quiz scores, All on one line. The program should ask the instructor about the grading scheme. Based on the input grades and the grading scheme, the system will print out for the instructor the final letter grades for all students. The instructors can choose an option to save all the grades in a text file.
Q: Discuss the significance of MAR and MDR in the context of interruptions. What are the mechanisms ...
A: Introduction the question is about Discuss the significance of MAR and MDR in the context of interru...
Q: What is the significance of backup and security for computer systems and data, in your own words?
A: Introduction: A computer system is a group of networked devices that manage, store, and input data a...
Q: #Assuming the number does not contain any factor(more than 2 digits) which is a prime number. check ...
A: The program is written in Python. Check the program screenshot for the correct indentation. Please c...
Q: Cloud computing is becoming more common and has been utilized by numerous businesses. (a) Provide t...
A: The information will be stored everywhere in this data-driven environment. If we use physical hardwa...
Q: particular in your response by taking into account OS resources such as CPU, RAM, I/O devices, and s...
A: Intro CPU scheduling is a process that allows one process to use the CPU while the execution of anot...
Q: DVDs are stored on 50 racks with ten shelves each at a DVD rental facility. Each shelf has a capacit...
A: Intro the above question is about DVDs are stored on 50 racks with ten shelves each at a DVD rental...
Q: Implementation of a dictionary In an unordered list and a binary search tree, compare dictionary imp...
A: Introduction: Implementation of a dictionary in an unordered list - Dictionaries are either sorted o...
Q: What does the term "dual-channel memory architecture" mean?
A: Introduction: Here we are asked what does the term dual channel memory architecture mean.
Q: Are you aware of how to obtain a list of all the files in your current directory, as well as their p...
A: Introduction: The ls command displays extensive information about the file system's files and direct...
Q: o send the following message to Bob. ”Hello! I will be there at 5:37.” (a) Derive the alphabet A of...
A: the solution is an given below :
Q: 12. Simplify the following Boolean expressions to a minimum number of literals: A. (a’ + c’) (a + b...
A: Given: Simplify the following Boolean expressions to a minimum number of literals: A. (a’ + c’) (a +...
Q: What were The Atlas Computer's functions?
A: The functions are explained with the Extra code: Fixed store The function code would appear within ...
Q: With the help of an example, distinguish between the Java classes GenericServlet and HttpServlet.
A: Introduction: In this answer, I will show you how to tell the javas Generic Servlet from the HTTP Se...
Q: Class Student needs to create different constructors, but only have the initialization of instances ...
A: initialization - initializes variables and is executed only once.condition - if true , the body of f...
Q: Using java: Display how many are positive and negative numbers in the two-dimension array. 32 5 45 2...
A: Start Take the 2D array of elements size Take the elements Find positive and negative numbers Print ...
Q: Given: Language L1 = {w ϵ {0,1}* | w ends in either 10 or 11} Construct the DFA representing the gi...
A: Given language L1 = {w ϵ {0,1}* | w ends in either 10 or 11}. The set of strings that represent L1 ...
Q: I need explanation for these instructions: 1- CALL 2- RETURN 3- RETLW
A: According to answer policy we can answer only 3 parts . You can resubmit the question for remaining ...
Q: Can you please help me with the question: Write a program in C
A: Introduction: C is a general-purpose, procedural computer programming language supporting structured...
Q: What exactly are NoSQL databases? Describe its traits and benefits.
A: NoSQL databases NoSQL database is a non relational data management system. It does not require a fi...
Q: Collaboration creates in our
A: The value that Innovation & Collaboration creates in our current and future IT and Computer sy...
Q: A) Explain resources ownership. B) Explain scheduling execution. C) Explain multithreading.
A: The answer is given in the below step
Q: What is it about documentation that is so critical to a successful criminal investigation? Make a li...
A: The following is the response: The Importance of Documenting Criminal Investigation ProceduresWhile ...
Q: v. What is NAT? Why is it needed? NAT stands for: Why/when to use NAT?
A: To access the internet IP address is needed but private IP can also be used to access the internet. ...
Q: 17. Referring to the definitions of symbols in Fig. 2.10, give the value, type, and intuitive meanin...
A: To execute any program or application on the computer, the user gives commands in user understandabl...
Q: What are the key differences between services and software components?
A: Intro the above question is about differences between services and software components
Q: What exactly are IMDBs? How does this system function? What distinguishes them from regular databas...
A: IMDBs An in-memory database (IMDB) is a computer architecture that stores and retrieves data record...
Q: Assume you have access to the caches in your department's local DNS servers. Can you provide a metho...
A: Introduction Assume you have access to the caches in your department's local DNS servers. Can you ...
Q: Explain how operating systems use basic file-organization architectures.
A: Introduction: The basic file-organization structures employed by operating systems are described in ...
Q: the signal receives a SIGTSTP (Ctl-Z), it should print the number of signals SIGINT he received. a...
A: Code: #include <stdio.h> #include<string.h> int main() { int count = 0; char str1[20]...
Q: Define the minimax algorithm and the terminology used in it.
A: Introduction: Actually, artificial intelligence involves giving machines the ability to think, sense...
Q: Finish the racket code bellow to be able to do >(n- list? '(1 (2 (3 4) 5) 6)) and produce an output ...
A: Given code can Returns a newly allocated list containing as its elements.
Q: Make five recommendations for what a system designer can do to reduce the user's memory burden.
A: Introduction: Here we are required to mention five recommendations for what a system designer can do...
Q: Question: - JOY is a CS (B.TECH) student and now has days she wants to work on marketing. AND you ar...
A: Intro: If your batch process needs information that is shared across transactions, one approach is t...
Q: One of the difficulties with computer security is that it is frequently seen as an afterthought, to ...
A: The following is the answer: Assume that a bank has decided that in addition to requiring the user's...
Q: 5.25 Consider the Nim game: There are n number of tokens. Each player is required to divide the pile...
A: Below is the correct answer to above query. I hope this will meet your requirements...
Q: Create a Java program that detects whether the mouse is clicked inside or outside a circle. The cir...
A: Let's see the solution in the next steps
Q: function 2: series_generator2(int n); // n is the number of elements to display // series: 19683 656...
A: Code for given function is: void series_generator2(int n){ // n is the number of elements to displa...
Q: Design and develop a VB.NET console application to display all the Armstrong numbers between the giv...
A: Armstrong number: A number that is equal to the sum of the cubes of its own digits. For example, 370...
Q: Evaluate each binary question and determine which one is out of sequence 9. 1010 in binary is ____ ...
A: answer is
Q: Consider the following instruction: nstruction: and rd, rs1, rs2 nterpretation: Reg[rd] = Reg[rsl] A...
A: According to bartleby guidelines, i can solve only first question. Answer is in given below.
Q: Teacher ask different version of this code please provide that ''' Problem A DNA: CG Pairs Purpose...
A: Please refer below for different version of the above code: Original Code: def cg_pairs(dna): dna...
Q: e python Write a function named concat_keys whose parameter is an object/dictionary. The parameter w...
A: Please refer below for your reference: def concat_keys(d): ans='' for i in d.values(): ...
Q: The field of computer science What are the many functions in the cybersecurity sector, as well as th...
A: Introduction: IT What responsibilities do governments, corporations, and people play in cybersecurit...
Q: To utilise the Memory Diagnostics tool, what is the command?
A: Introduction: The Memory (RAM) Diagnostic Tool in Windows runs a check of your computer's physical m...
Q: Both abstract classes and interfaces can be used to express common object behaviour. What factors sh...
A: Introduction: The abstract class It is a class that has been declared abstract; it may or may not ha...
Q: What are the requirements for computer hardware to work?
A: Introduction: When we speak of computer hardware, we are referring to the actual components that all...
Q: Assuming you're doing a System Restores, you'd prefer for no interrupts at all, but if you had to ch...
A: Introduction: the question is about Assuming you're doing a System Restores, you'd prefer for no int...
Q: In terms of digital memory, there are several types to choose from, including hard disk drives (HDD)...
A: Introduction: Digital memory is accessible in a variety of forms, including hard disc drive (HDD), r...
Q: Is it usual or unusual for TCP SYN and ACK segment to carry data during the three-way handshake conn...
A: answer is
Q: What is the distinction between call by reference and call by value in terms of programming? Func...
A: Intro the above question is about the distinction between call by reference and call by value in ter...
Write a
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 8 images
- A Personal Fitness Tracker is a wearable device that tracks your physical activity, calories burned, heart rate, sleeping patterns, and so on. One common physical activity that most of these devices track is the number of steps you take each day. The steps.txt file contains the number of steps a person has taken each day for a year. There are 365 lines in the file, and each line contains the number of steps taken during a day. (The first line is the number of steps taken on January 1st, the second line is the number of steps taken on January 2nd, and so forth.) Write a program that reads the file, then displays the average number of steps taken for each month. (The data is from a year that was not a leap year, so February has 28 days.) You don't need to see the file , Just write a code using the "file" like this def main(): with open("steps.txt", "r") as file: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 ProgrammingA Company wants to produce a product orders report from its product orders file. Each record on the file contains the product number of the item ordered, the product description, the number of units ordered, the retail price per unit, the freight charges per unit, and the packaging costs per unit. Your algorithm is to read the product orders file, calculate the total amount due for each product ordered and print these details on the product orders report. The amount due for each product is calculated as the product of the number of units ordered and the retail price of the unit. A discount of 10% is allowed on the amount due for all orders over GHC100.00. The freight charges and packaging costs per unit must be added to this resulting value to determine the total amount due. Answer should be in pseudo code
- The manager of a football stadium wants you to write a program that calculates the total ticket sales after each game. There are four types of tickets—box, sideline, premium, and general admission. After each game, data is stored in a file in the following form: ticketPrice numberOfTicketsSold … Sample data are shown below: 250.75 5750 100.50 28000 50.25 35750 25.00 18750 The first value indicates that the ticket price is Php 250.75 and that 5750 tickets were sold at that price. Output the total number of tickets sold and the total sale amount using c++ compiler. Format your output with two decimal places.The names and student numbers of students are save in a text file called stnumbers.txt. Example of the content of the text file: Peterson 20570856 Johnson 12345678 Suku 87654321 Westley 12345678 Venter 87654321 Mokoena 79012400 Makubela 29813360 Botha 30489059 Bradley 30350069 Manana 30530679 Shabalala 28863496 Smith 87873909 Nilsson 30989698 Makwela 30256607 Govender 30048117 Ntumba 30598303 Ramsamy 29952239 Skosana 29982995 Jameson 30228484 Xulu 29092248 Wasserman 27469352 Bester 28615425 Babane 27154033 Maboya 29897890 Mahlangu 30031338 Majavu 30165970 Myene 30954177 Motaung 30907276 Ramaroka 30804507 Radebe 30007674 Sekake 30017416 Zwane 30038227 Shuro 30238072 Viljoen 28881389 Sithole 45688555 Write a function called displayData() to receive the array and number of elements as parameters and display the names and student numbers of the students with a heading and neatly spaced. Write a function, isValid(), which receives a number as parameter and determines whether the number…In Java Oleae nust read a file A photographer is organizing a photo collection about the national parks in the US and would like to annotate the information about each of the photos into a separate set of files. Write a program that reads the name of a text file containing a list of photo file names. The program then reads the photo file names from the text file, replaces the "_photo.jpg" portion of the file names with "_info.txt", and outputs the modified file names. Assume the unchanged portion of the photo file names contains only letters and numbers, and the text file stores one photo file name per line. If the text file is empty, the program produces no output. Ex: If the input of the program is: ParkPhotos.txt and the contents of ParkPhotos.txt are: Acadia2003_photo.jpg AmericanSamoa1989_photo.jpg BlackCanyonoftheGunnison1983_photo.jpg CarlsbadCaverns2010_photo.jpg CraterLake1996_photo.jpg GrandCanyon1996_photo.jpg IndianaDunes1987_photo.jpg LakeClark2009_photo.jpg…
- PYTHON: Write a program that reads the student information from a tab separated values (tsv) file. The program then creates a text file that records the course grades of the students. Each row of the tsv file contains the Last Name, First Name, Midterm1 score, Midterm2 score, and the Final score of a student. A sample of the student information is provided in StudentInfo.tsv. Assume the number of students is at least 1 and at most 20. The program performs the following tasks: Read the file name of the tsv file from the user. Open the tsv file and read the student information. Compute the average exam score of each student. Assign a letter grade to each student based on the average exam score in the following scale: A: 90 =< x B: 80 =< x < 90 C: 70 =< x < 80 D: 60 =< x < 70 F: x < 60 Compute the average of each exam. Output the last names, first names, exam scores, and letter grades of the students into a text file named report.txt. Output one student per row…A MyPetStore sells many pets and their accessories. As new pets are added to the MyPetStore, theirinformation is entered into a flat text file. Each month, the manager requests a listing of all pets sorted bytheir price. You must write a program to produce a report of MyPetStore and their types sorted by their pricesfrom the data in the flat text file. Below is a description of the information on the text file:• The first entry is the number of animals on the file (numeric) •The fields below repeat for each animal:o Pet name (String)o Birthdate (java.time.LocalDate)o Price (numeric)o Species Type (String)o Special feature (boolean or String)The animals sold by the MyPetStore are of six types: Dogs & Cats, Reptiles, Birds, Rabbits & SmallAnimals.For Dogs & Cats, the special feature field on the flat file is the breed of the animal (String).For Reptiles, the special feature field is the blood type (warm vs cold-blooded, String).For Birds, the special feature field is the…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…
- 2. The manager of a basketball stadium wants you to write a program that calculates the total ticket sales after each game. There are four types of tickets – box, sideline, premium, and general admission. After each game, data is stored in a file in the following forms: ticketPrice numberOfTicketsSold Sample data are shown below: 250 5750 100 28000 50 35750 25 18750 The first line indicates that the box ticket price is 250 pesos and that 5750 Tickets were sold at that price. Output the number of the tickets sold and the total sale amount. Format your output with two decimal places.The Springfork Amateur Golf Club has a tournament every weekend. The club president has asked you to write a program that will read each player's name and score as keyboard input, and then save these as records in a file named golf.txt . First, the program should ask the user for the number of players. Then, it should ask the user for each name and score individually. The file golf.txt should be structured so that there is a line with the player's name, followed by their score on the next line. Here is an example: Emily 30 Mike 20 Jonathan 23 Look carefully at the following sample run of the program. In particular, notice the wording of the messages and the placement of spaces and colons. Your program's output must match this. Sample Run (User input shown in bold) Enter number of players :4↵ Enter name of player number 1 : Jimmy↵ Enter score of player number 1 : 30↵ Enter name of player number 2 : Carly↵ Enter score…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 v