subject

The in-class activities class on day 1 of week 11 was focused on plotting and the method of selected points (msp). the purpose of this task is to develop a python script which will determine an estimated equation of best fit using the msp. for this task, you can assume the data has already been plotted and an estimated line of best fit has been drawn.
your script should have the user input the two data points they selected from their estimated equation of best fit. the user should also input the type of axis the data was plotted on (see test cases below for guidance on this). a set of conditional statements should be used to calculate m and b based on the type of axis the data was plotted on. the script should then output the estimated equation of best fit with the m and b values included in the equation. you do not need to provide any plots.
i do not have the test cases but they are just to check to see if the code works correctly. if it is possible write the code that could perform these actions in general for any set of data and i will test it later when i get the test cases. however these are the data for one of the
eide problem 5.14: voltage across a capacitor during discharge was recorded as a function of time as shown below:
time, t, s voltage, v, v
6 98
10 62
17 23
25 9.5
32 3.5
38 1.9
42 1.3

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Your task this week is to write a very simple spam classifier in python. it will classify messages as either spam (unwanted) or ham (wanted). the program will have a set of spam_words, words that are known to appear in spam messages. that set is included in the template file spam.pypreview the document. you will also define a spam threshold which reflects the allowed percentage of spam words in the message. you'll compute a 'spam indicator', which is the ratio of spam words to the total number of unique words in the message. if the spam indicator exceeds the spam threshold, the message is classified as spam. otherwise it is classified as ham. we'll assume that the spam threshold is a constant and has a value of 0.10. your program will prompt the user for a message and then will print the corresponding spam indicator with two decimal digits and the corresponding classification (spam or ham). the program will be case insensitive. the spam words are detected whether they are in lower case or upper case or mixed case. each word, spam or not, is counted once (even if it appears multiple times in the message.) the program will remove punctuation from the message before identifying the words and computing the spam indicator. for example '! ' must be identified as the spam word 'now'.
Answers: 3
question
Computers and Technology, 22.06.2019 11:50
You have written, as part of a school assignment, a research paper on the solar system. you want to share this paper on your school website. on which type of server will you upload it?
Answers: 1
question
Computers and Technology, 23.06.2019 05:00
Acompany is inviting design for its new corporate logo from its users. this is an example of ? a. crowdfunding b. crowdvoting c. crowdsourced design d. crowdtracking
Answers: 3
question
Computers and Technology, 25.06.2019 01:00
When a new name is registered on the internet, the process can take two hours to four hours four hours to three days two hours to two days one hour to eight hours
Answers: 1
You know the right answer?
The in-class activities class on day 1 of week 11 was focused on plotting and the method of selected...
Questions
question
Mathematics, 19.09.2019 09:30
question
Mathematics, 19.09.2019 09:30
Questions on the website: 13722363