CSCI 1301 Study Guide - Quiz Guide: Migos, Wireless Emergency Alerts

54 views5 pages

Document Summary

File - the name of the . txt file. This problem won"t be too clever, it"s just your average problem description. Anyways, the text file we will use has numbers in it, each number is saved on a separate line. Write a function that reads in a filename and prints out the average of the numbers in the file. *hint: remember that the numbers will be read out of the file as a string , and we cannot take the average of a string. The average of the number in the file is 28. 0. The average of the number in the file is 75. 0. By the time this homework drops, it will be payday, which is good because khalil has almost completely run out of groceries. In fact the only things left are defined in these text files: list1. txt and list2. txt .

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents