subject

Write a function maxtemp which takes a filename as string argument and returns the maximum temperature as float type for the week. input file will contain temperature readings for each day of the week. your function should read each line from the given filename, parse and process the data, and return the required information. your function should return the highest temperature for the whole week. empty lines do not count as entries, and should be ignored. if the input file cannot be opened, return -1. remember temperature readings can be decimal and negative numbers. each line of the file contains two elements, separated by commas day, temperature monday,52 note: the split() function is provided, and functions as it does in the homework assignments, to make parsing the output easier. recall that split takes a string s and splits it at the input delimiter sep, to fill the array words[] up to a capacity of max_words. the return value of split is the number of actual words the string is split into.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:30
What’s the process of observing someone actually working in a career that interests you?
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
What is a costume plot? why is it important to a film or theater production?
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
Using the list, you can select the number of photos that will appear on each slide. a. theme b. frame shape c. pictures in album d. picture layout
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
*! 20 points! *jeff wants to create a website with interactive and dynamic content. which programming language will he use? a. dhtml b. html c. css d. javascript
Answers: 1
You know the right answer?
Write a function maxtemp which takes a filename as string argument and returns the maximum temperatu...
Questions
question
Mathematics, 27.07.2019 20:00
Questions on the website: 13722367