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, 22.06.2019 10:00
According to alisa miller foreign news bureaus
Answers: 3
question
Computers and Technology, 23.06.2019 04:31
Jennifer has to set up a network in a factory with an environment that has a lot of electrical interference. which cable would she prefer to use? jennifer would prefer to use because its metal sheath reduces interference.
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
1. which of the following is not an example of an objective question? a. multiple choice. b. essay. c. true/false. d. matching 2. why is it important to recognize the key word in the essay question? a. it will provide the answer to the essay. b. it will show you a friend's answer. c. it will provide you time to look for the answer. d. it will guide you on which kind of answer is required.
Answers: 1
question
Computers and Technology, 23.06.2019 23:40
Which of the following calculates the total from the adjacent cell through the first nonnumeric cell by default, using the sum function in its formula? -average -autosum -counta -max
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, 11.05.2021 09:20
question
Mathematics, 11.05.2021 09:20
question
Mathematics, 11.05.2021 09:20
question
Chemistry, 11.05.2021 09:20
question
Mathematics, 11.05.2021 09:20
question
Physics, 11.05.2021 09:20
question
Social Studies, 11.05.2021 09:20
Questions on the website: 13722361