Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help making a simple C program that achieves the following: prompts user for X1 and then Y1 and then prompts user for X2

I need help making a simple C program that achieves the following: prompts user for X1 and then Y1 and then prompts user for X2 and Y2. Program will then calculate and print the slope and equation of the line. Lastly it will promot the user for X3 and then print out the Y3. Thanks
image text in transcribed
The input/output formats for your program should look like this: enter lst X coordinate: enter lst y coordinate: enter 2nd X coordinate: enter 2nd y coordinate: slope = 9.999999 y-intercept - +9.999999 line equation: y = 19.999999 * x + 19.999999 enter 3rd X coordinate: 3rd y coordinate = +9.999999 Your knowledge of mathematics, an explanation of the Cbuilt-in float data type [with its formatstringsforprintf()andscanf(), and this program description provides the information you will need to solve this problem and write the program, but we will have a group problem solving session in class before the program is due. This will allow us to fully understand the problemand to develop a structured top-down designforyour algorithmand forthe program. Part of this assignment is to develop the algorithm before you code the program. You are expected to submit a written copy of the algorithm in pseudo code or diagram. The algorithm maybeon paperorsubmittedon Blackboard as a file with the Csource code. An algorithm that fits on one page is reasonable

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases 28th British National Conference On Databases Bncod 28 Manchester Uk July 2011 Revised Selected Papers Lncs 7051

Authors: Alvaro A.A. Fernandes ,Alasdair J.G. Gray ,Khalid Belhajjame

2011th Edition

3642245765, 978-3642245763

More Books

Students also viewed these Databases questions

Question

Types of cultural maps ?

Answered: 1 week ago

Question

Discuss the various types of leasing.

Answered: 1 week ago

Question

Define the term "Leasing"

Answered: 1 week ago

Question

What do you mean by Dividend ?

Answered: 1 week ago