For this tutorial, we will be writing a program that will represent a simple linear function. Recall that a linear function is defined as: y = mx + b where m is the slope and b is the y-intercept. The...

For this tutorial, we will be writing a program that will represent a simple linear function. Recall that a linear function is defined as: y = mx + b where m is the slope and b is the y-intercept. The program should prompt the user for each variable before using the scanf() function to read the data in. The user will supply the variables for m,b, and three values for x. The program will evaluate the given function at the three x-values. For example, if the function was: y = 2x+1, and the three points were −2, 0, and 5. The resulting y-values would be output: −3, 1, and 11
Jan 20, 2023
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here