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 07:00
You will be given two character arrays of the same size, one will contain a number of ships. ships will move around the character array based on which way they are facing and the route they are on. routes are given in the other array. the route consists of '-' and '|' for straight paths, '\' and '/' for curves, and '+' for intersections. there are ships on these routes. ships always face a direction, '^' for up, '> ' for right, 'v' for down, and '< ' for left. any time the ships hit a '\' or a '/' it will turn as you would expect a ship to turn (e.g. a '^' that moves into a '/' will turn right). at an intersection, ships will always continue straight through. all ships move at the same speed, ships take turns moving and all ships move during one 'tick'. the one in the most top left goes first, followed by those to its right, then the ones in the next row. it iterates along the rows and then down the columns. each ship moves one space on its turn moving along the route. your function needs to return the position of the first collision between two ships and the number of ticks before the crash occurred.
Answers: 2
question
Computers and Technology, 22.06.2019 15:10
Which activity should be part of a long-term plan to positively affect yourhealth? oa. wearing regular clothing when handling toxinsob. not worrying about secondhand smokeoc. avoiding excessive exposure to sunlightod. drinking only well water
Answers: 1
question
Computers and Technology, 22.06.2019 15:20
The north and south regions had very diferent economies in the 1800s.
Answers: 1
question
Computers and Technology, 22.06.2019 21:40
Develop a function to create a document in the mongodb database “city” in the collection “inspections.” be sure it can handle error conditions gracefully. a. input -> argument to function will be set of key/value pairs in the data type acceptable to the mongodb driver insert api call b. return -> true if successful insert else false (require a screenshot)
Answers: 2
You know the right answer?
Write a function maxtemp which takes a filename as string argument and returns the maximum temperatu...
Questions
Questions on the website: 13722359