num.txt is a file that contains a list of scores. num.txt 10 25 36 45 89 42 54 create a program that reads the scores from num.txt file one line at a time. The program should display their total and average. since the number of scores is unknown, the program must keep looping until readline is blank. Sample Output: There are 7 scores The total is 301 T he average is 43.0
Q: The majority of the time, networked security cameras are not vulnerable.
A: One: It's Easier to Manage Security Access to Separate IP Camera Networks. Cameras on a separate…
Q: I need help in constructing a struct in C for the following statement. If the score of the player…
A: #include <bits/stdc++.h>using namespace std; // Function to print top k numbersvoid kTop(int…
Q: To what extent does MVC architecture play a role in designing internet applications? A number of…
A: Introduction: MVC keeps the business logic layer and the show layer separate from each other. It was…
Q: Both RAMs and SSDs belong to a type of logic circuit. In this question concisely and precisely 1.…
A: We need to answer questions related to SSD and RAM.
Q: In the context of FAT and process modelling, what exactly does it mean to "level" DFDs
A: let us see the answer:- Introduction:- The functions, or processes, that capture, manipulate, store,…
Q: Any possible governance difficulties may develop while transitioning from on-premise servers to an…
A: global problems: At the turn of the century, threats such as ethnic conflicts, infectious diseases,…
Q: In this section, we will explore 10 international computer science and information technology…
A: Start: ACM supports approximately 75,000 computing professionals in over 100 countries through…
Q: It's unclear what a Windows Service is, and how it works.
A: Given: Microsoft Windows services, which were formerly known as NT services, provide users the…
Q: most_frequent_word() takes a string as the input parameter and returns two values; the word that…
A: The required python program has been provided in the next step.
Q: an Student endpoint that will connect to database and pull in the back all the data from table (The…
A: using System; using System.Data; using System.Data.SqlClient; namespace DatabaseConnectivity {…
Q: What impact does employee happiness have on the success or failure of an organization?
A: Work satisfaction and a company's success or failure: Motivating and engaging your most precious…
Q: When was the very first personal computer made available to the public?
A: Individual Computer System (PC): A personal computer is designed to be used by a single person at a…
Q: What inspired the development of the computer and why did it become so popula
A: Introduction : The personal computer was introduced in 1975, a development that made the computer…
Q: Implement Verilog code for 4-bit fibonacci series generator in structural style
A: module abc;bit [10:0] a;int f_b [$]; task automatic fb (input bit[10:0] b,inout int fib[$]);fib[0] =…
Q: write an 8085 program that that Manipulate the Are ассиживатor as follows: IF bit 6 is logic I,…
A: mvi a,40h ani 06h jz label xri 80h label: xri 0A8h mvi a,40h ani 06h jz label1 xri A0h label1:…
Q: GSM time slot is 577 s (microseconds) in duration and includes far more than a snapshot of each…
A: The answer is
Q: What will be printed by this code? 1 int main() { 1234ST 5 6 7 8 9 10 { 11 12 13 14 } 01234 int a =…
A: Initial value of a is 31 and b is 75 Then test function is invoked by passing references of…
Q: What exactly is meant by the phrase "the internet of things"?
A:
Q: Create your first Responsive Web Page, also add HTML Lists for this activity.
A: // Html Code <!DOCTYPE html> <html lang="en"> <head> <meta name="viewport"…
Q: Add string conversion operations to the following print statement such that it prints aaaaa525252 to…
A: Let's understand step by step : So here a print statement is given : print(a*5+(5+2)*3) And the…
Q: Problem 4. BFS and DFS Trees. Let G be a connected graph with the property that both BFS and DFS…
A:
Q: Question 2: A. Read the 16 bit data stored in an input device that has port number FF00H and store…
A: Answer is given below-
Q: What are the several tiers that make up the model of the Internet?
A: Start: There are five levels of information in the internet paradigm. The 5-Layer Model is what it's…
Q: bits required transmitting the data (ii) positions of redundant bits (iii) total code length (iv) t
A: The answer is
Q: Q: Design a visual basic program with two textboxes. One is used to enter ny string and the other is…
A: C# : private static string ReverseString(string input) { string output = string.Empty;…
Q: Each set's computation must be orthogonal for an instruction set to be considered orthogonal. There…
A: Start: In order for an instruction set to be considered orthogonal, the calculation of each set…
Q: A school report card database program (maintains reads and stores student name, number, counced…
A: Answer has been explained below:-
Q: Create a robot with two or more components
A: The answer is
Q: 1. Using ARRAYS, create a program using PHP that will contain 10 differer numbers and get the sum,…
A: <?php $arr = array(1,2,3,4,5,6,7,8,9,10); $sum = 0; //Variable to store sum $diff…
Q: What operating systems are available for desktop PCs? Compare and contrast macOS, Windows and…
A: Given: Operating systems for desktop computers An operating system is software that coordinates the…
Q: a. Fill the table based on the Logic diagram Delay Gate Fanin Driving Load (ns) G1 2 G2 1 G3 3 G4 2…
A:
Q: Describe in detail how to use Process Mining (Diagram Required) The focus of this course is computer…
A: Process mining is a family of techniques relating to the field of data sciences and the process…
Q: What type of possible error messages you can get when you try to login with the s
A: The answer is
Q: A. Use MOV instruction to write an equivalent for the following instructions: 1. CHG AX, [ES] 2. LEA…
A: Question 1) A If you want Alternative of MOV ax, data Then it is LEA ax, data So answer 2. LEA…
Q: The 3n+ 1 problem is based on a famous sequence in mathematics that follows a very simple rule: • If…
A: Step 1 : Start Step 2 : In the main function , declare the integer array variable and take user…
Q: Design the address encoder for the followings: 1) IN AL, 68H 2) OUT A9H, AL
A: The IN AL, 3CH address encoder is marked A and B. Since the only way to enter a 6-bit number is to…
Q: Gain as much knowledge as possible about social networking. What exactly is meant by the term…
A: Social networking: Social networking sites such as Facebook, Twitter, and LinkedIn are examples of…
Q: What does it mean when someone refers to DHCP, or dynamic host configuration protocol
A: Please find the answer below
Q: (a) Minimise the following Boolean expressions using Boolean algebra or Karnaugh maps, and draw the…
A: Here in this question we have given some boolean expression and we have some to simplify these…
Q: Are you familiar with the development of today's computers?
A: Given: In the last several years, the area of computer science has seen a variety of developments in…
Q: ude in an abstra
A: Solution - In the given question, we have to tell about what should we include in an abstract.
Q: What exactly is DNS, which stands for "Domain Name Server," and how does it operate? Could you…
A: The Domain Name System - (DNS) was introduced in the early 1980s. It is a network of computers that…
Q: For a system that connects 33 CPU registers with an ALU which has 35 operations, the possible size…
A: Given that, For a system that connects 33 CPU registers with an ALU which has 35 operations, the…
Q: The use of a surrogate key for the main key of a connection has been explained in three cases.
A: In data analysis, a surrogate key is a key with no contextual relevance used to identify the…
Q: using tinkercad with arduino uno create an intruder alarm system using an ultrasonic distance…
A: Intruder Alarm System In this project the green led glows and red led switches off when the…
Q: Are you interested in learning more about the DSDM concepts and the features of DSDM? The Dynamic…
A: Given: The DSDM method is an Agile approach that focuses on the full project life cycle. DSDM…
Q: What are the key distinctions between synchronous and asynchronous modes of communication?
A: Asynchronous and Synchronous Communication: The difference between synchronous and asynchronous…
Q: Discuss certification and training, along with examples from the workplace.
A: A product, person, or organization can be certified if it contains particular characteristics that…
Q: FUNDAMENTALS OF SECURITY IN ETHICAL HACKING 5) Write five lines of command to configure SSH service…
A: The SSH is known as Secure Shell which is a technique for secure and reliable remote login from…
Q: " Implement the following Boolean function with an 8-to-1-line multiplexer and a single inverter…
A:
num.txt is a file that contains a list of scores.
num.txt
10
25
36
45
89
42
54
create a
Sample Output:
There are 7 scores
The total is 301 T
he average is 43.0
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- python Write a program that uses a text file to store the days and hours that a user worked in a week. The program should begin by prompting for the number of days worked in the week. It should continue with a loop for input of the days and hours and for writing these to the file, each on its own line. Sample Output (inputs shown in boldface)How many days did you work this week? 5Enter day of week MondayHow many hours did you work on Monday? 10Enter day of week TuesdayHow many hours did you work on Tuesday? 8Enter day of week WednesdayHow many hours did you work on Wednesday? 12Enter day of week FridayHow many hours did you work on Friday? 12Enter day of week SaturdayHow many hours did you work on Saturday? 8File was createdWHOEVER IS THE PERSON THAT KEEPS ANSWERING THIS EVERYTIME I REPOST IT PLEASE STOP YOUR SOLUTION IS INCORRECT. LET SOMEONE ELSE DO IT!!!!! PYTHON!!!! Write a program that allows the user to navigate the lines of text in a file. The program should prompt the user for a filename and input the lines of text into a list. The program then enters a loop in which it prints the number of lines in the file and prompts the user for a line number. Actual line numbers range from 1 to the number of lines in the file. If the input is 0, the program quits. Otherwise, the program prints the line associated with that number. An example file and the program input and output is shown below: example.txt Line 1. Line 2. Line 3. Enter the input file name: example.txt The file has 3 lines. Enter a line number [0 to quit]: 2 2 : Line 2. The file has 3 lines. Enter a line number [0 to quit]: 4 ERROR: line number must be less than 3. The file has 3 lines. Enter a line number [0 to quit]: 0 The program works…IN PYTHON, num.txt is a file that contains a list of scores. num.txt 10 25 36 45 89 42 54 create a program that reads the scores from num.txt file one line at a time. The program should display their total and average. since the number of scores is unknown, the program must keep looping until readline is blank. Sample Output: There are 7 scores The total is 301 The average is 43.0
- IN PYTHONnum.txt is a file that contains a list of scores. num.txt 10 25 36 45 89 42 54 create a program that reads the scores from num.txt file one line at a time. The program should display their total and average. since the number of scores is unknown, the program must keep looping until readline is blank. Sample Output: There are 7 scores The total is 301 T he average is 43.0*Code in python Write a program that allows the user to navigate the lines of text in a file. The program should prompt the user for a filename and input the lines of text into a list. The program then enters a loop in which it prints the number of lines in the file and prompts the user for a line number. Actual line numbers range from 1 to the number of lines in the file. If the input is 0, the program quits. Otherwise, the program prints the line associated with that number. An example file and the program input and output is shown below: example.txt Line 1.Line 2.Line 3. Enter the input file name: example.txt The file has 3 lines. Enter a line number [0 to quit]: 2 2 : Line 2. The file has 3 lines. Enter a line number [0 to quit]: 4 ERROR: line number must be less than 3. The file has 3 lines. Enter a line number [0 to quit]: 0 Make sure the program gracefully handles a user entering a line number that is too high.Python 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 ofthese 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. Write a program that reads the file, then displays the average number of steps taken for each month Your program should use a function to calculatethe averagenumber of steps. You will need to pass more than one argument to the function.
- 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…What does the following python code do? f = open("sample.txt", "w") Choose all that apply. Select 2 correct answer(s) Question 11 options: If the file called sample.txt exists, it writes at the bottom of the file if the file sample.txt exists, deletes everything in it reads the file called sample.txt starting from the top if the file sample.txt does not exist, it creates the file and opens it for writing opens a file called sample.txt for appending writes "w" to the file called sample.txt opens a file called sample.txt for reading closes a file called sample.txt# Method: Load levelsList using the data in levelsFile def readLevelsFromFile(self): try: # Set levelsList to an empty list pass # Open the file pass # Use a loop to read through the file line by line pass # This code is inside the loop: # Convert the line to a float and then append it to levelsList pass # Close the file pass except: return
- Please I really need help with this question it is confusing me a lot I don't understand how should I start, Also can you please attach the TEXT FILE Screenshot. PLEASE! Write a program that allows the user to navigate lines of text in a file. The program should prompt the user for a filename, read the file and input the lines of text into a list. The program then enters a loop in which it prints the number of lines in the file and prompts the user for a line number. Actual line number range from 1 to the number of lines in the file. If the input is 0, the program quits. Otherwise, the program prints the text associated with that number. You must also run the script and provide a screenshot of the output along with the textfile.Python program language You and a friend sell your farm goods at a local farmers market 4 weekends (both Saturday and Sunday) a year. Design a program that asks your friend for the total amount of sales for each day you were selling. Store this information in a list. Use a loop to calculate the total yearly sales and save the result in a new file called yearly_farmers_market_sales.txt. Report the worst days sales. Report the best days sales. Report the average sales. Be sure to use a main function and a calculation function. Your output "storing" can be done in main function.scores.txt : Jan,86 Drew,92 Blake,85 Alex,81 Taylor,88 Jordan ,72Cam,89 Note: code is written in python please The file scores.txt (attached) contains a list of names and test scores. Create a program that reads each line of the file and determines the highest score and who obtained it. This is an exercise in strings. You are required to use at least one string method to determine the names and the scores. Your output should resemble the following: Highest Score: 100Achieved by: Jay Note; i could not send an attachment of the actual file but i have copied its contents.