Answered step by step
Verified Expert Solution
Question
1 Approved Answer
!!!!!!!!!!!!!!!!! HAVE TO BE DONE ON MATLAB !!!!!!!!!!!! I need the coding sequence COP2271 MATLAB Module 02 Activities Activity C You are given two lines
!!!!!!!!!!!!!!!!! HAVE TO BE DONE ON MATLAB !!!!!!!!!!!! I need the coding sequence
COP2271 MATLAB Module 02 Activities Activity C You are given two lines in slope-intercept form (y = mx + b) and must find their intersection point. For example, if Line 1 is y = x and Line 2 is y = 3, then the intersect point is (3,3). Develop a program to find the intersection of any two lines (you can assume there will always be an intersection!). Program Inputs Enter m for Line 1: Enter b for Line 1: Enter m for Line 2: Enter b for Line 2: You can safely assume the user will always enter real numbers for all questions. Program Outputs The intersection point is (XXX, YYY) Replace XXX with correct I coordinate and YYY with the y coordinate Sample Output Test Case 1: Enter m for Line 1: 1 Enter b for Line 1: 0 Enter m for Line 2: 0 Enter b for Line 2: 3 The intersection point is (3,3) Test Case 2: Enter m for Line 1: 0.5 Enter b for Line 1: 1 Enter m for Line 2: -2 Enter b for Line 2: 20 The intersection point is (7.6,4.8) Test Case 3: Enter m for Line 1: 3 Enter b for Line 1: -5 Enter m for Line 2: 0.01 Enter b for Line 2: 2 The intersection point is (2.34114,2.02341)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started