Write a program in C that will:· ask the user to input N pairs of data values (xi,yi)display The pairs of data clearly and concisely on the screen. calculate and display the slope m and y-intecept c using the least squares fitting approach ·calculate and display the uncertainty in the slope and y-intercept and [url removed, login to view] a menu which will ask the user if they wish to (a) change a data pair (b) add any additional data, (c) input a totally new data set or (d) exit the program.
If the user opts to change a data point the program will have to prompt the user asking which data point they would like to change and the new values to be inputted. The program should then redisplay the data with new slope, y-intercept and uncertainties etc as [url removed, login to view] the user opts to add additional data then once again the program should then redisplay the data with new slope, y-intercept and uncertainties etc as before. Remember, in this case N will have been increased. Marks obtanied by· Programs that compile, link, run and work.
· Clearly structured and well-documented C programs. In addition to a title, author name and date the program should have adequate comments to clarify the various parts of your program making it easy for someone else to follow.
Good and efficient programming using C functions and your own functions to provide a clean and well-structured program. That means trying to avoid repetition and optimising your functions. Using program control effectively and efficiently
Making the program user friendly allowing a complete stranger to the program easily work out what is required for inputs and clearly labelling and formatting the outputs.
PLEASE CHECK ATTACHEMNET FOR ALL EQUATION REQUIRED.I NEED THE ASSIGNMENT DONE IN 2 DAY IS IT POSSIBLE?
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).