Question: Code is in python. Please if possible upload a screen shot that is typed and indented correctly if possible. Thank you s arroWS ca Main
Code is in python. Please if possible upload a screen shot that is typed and indented correctly if possible. Thank you

s arroWS ca Main PageProblems >Solve a Problem calculate line Favorite Language/Type: Author Python basics console output expressions variables interactive programs Nick Troccoli (added by Marty Stepp on 2017/07/08) Write an interactive console program that calculates y coordinates on a line. First, it prompts the user for a slope m, and an intercept b (as seen in the line equation of the form y= mx + b). Then the program prompts the user for x values until the user enters a-1. For each entered number, print the y value on that line for that entered x value. Here is a sample run of the program (user input is shown like this) This program calculates y coordinates for a line. Enter slope (m): 2 Enter intercept (b): 4 Enter x 5 f (5)14 Enter x: 1 f (1)6 Enter x: -1 Type your Python solution code here 4 This problem asks for bare code. Submit a fragment of Python code as described. Do not write any class or method heading around your code; just write the lines of code that will produce the result described. Sound F/X Highlighting Submit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
