Preview

irha's essay

Satisfactory Essays
Open Document
Open Document
557 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
irha's essay
Assignment No. 01
Semester: Spring 2013
CS201: Introduction to Programming Total Marks: 20

Due Date:02/05/2013

Instructions:
Please read the following instructions carefully before submitting assignment. It should be clear that your assignment will not get any credit if:

 The assignment is submitted after due date.
 The submitted assignment does not open or file is corrupt.
 Assignment is copied(partial or full) from any source (websites, forums, students, etc)

Note: You have to upload only .cpp file. Assignment in any other format (extension) will not be accepted and will be awarded with zero marks. For example, if you submit code in .doc (Word document) or .txt files or .exe file, no reward will be given in any case.

Objective:

The objective of this assignment is to provide hands on experience of:

 Basic concepts of C/C++ language and Programming
 Dealing with Data types
 Conditional statements of C/C++ language
 Expressions
 Saving a program
 Compiling a program
 Executing the program

Guidelines:

 Code should be properly indented and well commented.
 Follow C/C++ rules while writing variable names, function names etc
 Use only dev-C++ for this assignment.

Assignment

Problem Statement:
Write the C++ language program to calculate the slope of the line that is passing through two points and displays one of the following five messages according to the nature of the slope.

Message No Description
1 Line will make the 45 degree angle with the horizon
2 Line will travel more along X-Axis and Less along Y-Axis
3 Line will travel more along Y-Axis and Less along X-Axis
4 Line is parallel to Y-Axis.
5 Line is parallel to X-Axis. Detailed Description:

Your program will ask for the two inputs for the starting point P1(x1,y1) of the line i.e. X-Coordinate and
Y-Coordinate, and two inputs for the ending point P2(x2,y2) of the line i.e. X-Coordinate and

You May Also Find These Documents Helpful

  • Satisfactory Essays

    cout << "You are in factorial program of C++. Please enter a +ve integer:- ";…

    • 426 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Ionic Analysis Lab

    • 2332 Words
    • 10 Pages

    Using the data on that have been recorded, it was used to create a double line graph.…

    • 2332 Words
    • 10 Pages
    Good Essays
  • Satisfactory Essays

    Read through all of the tasks carefully, so that you know what you will need to do to complete this assignment.…

    • 1187 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Problems1

    • 605 Words
    • 2 Pages

    the three points (0, 1), (0.5, 2) and (1, 4). Plot the resulting spline (you may use the file…

    • 605 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Project one

    • 683 Words
    • 3 Pages

    You will need to complete the following three tasks in order to fully complete the assignment and receive a satisfactory grade!…

    • 683 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Miss

    • 477 Words
    • 2 Pages

    In this assignment, you are required to complete Task A, B & C. All tasks must be submitted together for marking.…

    • 477 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Two Variable Inequalities

    • 682 Words
    • 3 Pages

    I know that my line is going from (0,330) to (110,0). The graph has a solid line rather than a dashed line meaning that points on the line itself are part of the solution.…

    • 682 Words
    • 3 Pages
    Good Essays
  • Good Essays

    American Lit.

    • 881 Words
    • 4 Pages

    Write a response for each of the following activities. Check the Evaluation section at the end of this document to make sure you have met the expected criteria for the assignment. When you have finished, submit your work to your teacher.…

    • 881 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    my paper

    • 285 Words
    • 2 Pages

    r this assignment, you will need to carefully review the instructions for the final assignment in Week Five. In a two- to three-page paper (plus title and reference pages), please provide the following information:…

    • 285 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    2.5 music theory

    • 289 Words
    • 2 Pages

    Please complete the following questions. It is important that you use full sentences and present the questions and answers when you submit your work. The answers to the Review & Critical Thinking questions are worth 10 points.…

    • 289 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Paris

    • 2198 Words
    • 11 Pages

    Please save this document before you begin working on the assignment. Type your answers directly in the document. When you have finished, submit your work to your teacher.…

    • 2198 Words
    • 11 Pages
    Powerful Essays
  • Satisfactory Essays

    Please complete the following questions. It is important that you use full sentences and present the questions and answers when you submit your work. The answers to the Discussion Questions are worth 10 points. Use the rubric to guide you.…

    • 638 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Writing Strategies

    • 1712 Words
    • 7 Pages

    Write a response for each of the following activities. Check the Evaluation section at the end of this document to make sure you have met the expected criteria for the assignment. When you have finished, submit your work to your teacher.…

    • 1712 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    2. Write an equation for the line perpendicular to 5x − 4y = 10 and passes through the point…

    • 369 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Life

    • 1136 Words
    • 5 Pages

    Write a response for each of the following activities. Check the Evaluation section at the end of this document to make sure you have met the expected criteria for the assignment. When you have finished, submit your work to your teacher.…

    • 1136 Words
    • 5 Pages
    Better Essays