c++

  

Programming Project #1

COSC 1436 -Fall 2019

Instructions

Write a program that determines whether two straight lines are perpendicular. The program must prompt the user for the values of x-y coordinates for two points of each line.

For example, in the graph below, the line  is defined by the pairs: (15,10) and (49, 25); whereas the line  is defined by (29, 5) and (32, 32). Again, these values are to be read from the keyboard.

                   

The program should also avoid a “divide by zero error” by checking for horizontal lines. Also, if one of the lines is horizontal, simply check to see if the other one is vertical to determine whether they are perpendicular.

Output

The program output should be either:

“Lines are perpendicular”

Or

“Lines are not perpendicular”

Grading

1. Module/program description…………………………………………………………………………………………. 10%

2. Algorithm – use pseudo code ……………………………………………………………………………………….. 10%

3. Variable and constant declarations:

a. Use meaningful names…………………………………………………………………………………………. 5%

b. Place all declarations at the beginning of each function ………………………….. 5%

4. Ensure code is easy to read and maintain

a. Use spaces between operands / operators / keywords / identifiers ……… 5%

b. Only one statement per line ………………………………………………………………………………. 5%

c. Add comments as appropriate …………………………………………………………………………. 5%

d. Use constants instead of hard-coded values ………………………………………………… 5%

5. Output accuracy – code works as expected ………………………………………………………………. 50%

Let me know if you have any questions.

Good luck!

-Francisco Hernandez

Order from Academic Writers Bay
Best Custom Essay Writing Services

QUALITY: 100% ORIGINAL PAPER NO PLAGIARISM – CUSTOM PAPER

Why Choose Us?

  • 100% non-plagiarized Papers
  • 24/7 /365 Service Available
  • Affordable Prices
  • Any Paper, Urgency, and Subject
  • Will complete your papers in 6 hours
  • On-time Delivery
  • Money-back and Privacy guarantees
  • Unlimited Amendments upon request
  • Satisfaction guarantee
SATISFACTION

How It Works

  • Click on the “Place Your Order” tab at the top menu or “Order Now” icon at the bottom and a new page will appear with an order form to be filled.
  • Fill in your paper’s requirements in the “PAPER DETAILS” section.
  • Fill in your paper’s academic level, deadline, and the required number of pages from the drop-down menus.
  • Click “CREATE ACCOUNT & SIGN IN” to enter your registration details and get an account with us for record-keeping and then, click on “PROCEED TO CHECKOUT” at the bottom of the page.
  • From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it.

About AcademicWritersBay.com

AcademicWritersBay.com is an easy-to-use and reliable service that is ready to assist you with your papers 24/7/ 365days a year. 99% of our customers are happy with their papers. Our team is efficient and will always tackle your essay needs comprehensively assuring you of excellent results. Feel free to ask them anything concerning your essay demands or Order.

AcademicWritersBay.com is a private company that offers academic support and assistance to students at all levels. Our mission is to provide proficient and high quality academic services to our highly esteemed clients. AcademicWritersBay.com is equipped with competent and proficient writers to tackle all types of your academic needs, and provide you with excellent results. Most of our writers are holders of master’s degrees or PhDs, which is an surety of excellent results to our clients. We provide assistance to students all over the world.
We provide high quality term papers, research papers, essays, proposals, theses and many others. At AcademicWritersBay.com, you can be sure of excellent grades in your assignments and final exams.

NO PLAGIARISM