Write program that calculates the slope and length of sides

Assignment Help Programming Languages
Reference no: EM131402971

Object-Oriented Programming-I Java

You are to write a program that calculates the slope and length of sides and the perimeter of a rectangle given four of its vertices as ordered pairs (x, y). 

A vertex is a point which consists of an x-value and a y-value, and you have four points as the vertices of a rectangle, so you'll need to prompt the user to enter the x-value and y-value for the four vertices of the triangle. You'll need to store these input values inside variables that are declared with appropriate names and data types. Your prompts to the user should be clear, concise, and use proper spelling/grammar.

Your user prompts and output must appear exactly as shown above. Vertices must be formatted with one decimal digit and other calculations should be formatted with exactly two digits after the decimal.

Your program must use variables of the appropriate type and with self-documenting names.

You must include appropriate documentation in your code.

Attachment:- Assignment File.rar

Reference no: EM131402971

Questions Cloud

Informal and formal learning opportunities : You want to encourage your staff to be creative and innovative. What informal and formal learning opportunities might you provide them with to help them develop the skills needed for innovation? Provide at least five examples
Locate the estimated standard error of the regression model : List the assumptions required for the regression analysis.- Locate the estimated standard error of the regression model, s, on the printout.
What are key business cycle regularities in the labor market : Describe the key business cycle regularities in consumption and investment expenditures.
What would you do if you were in clyde and fresnos shoes : What will they have to prove? Is there a better course of action for Clyde and Fresno to follow? What would you do if you were in Clyde and Fresno's shoes?
Write program that calculates the slope and length of sides : PROG10082 Object-Oriented Programming-I Java. You are to write a program that calculates the slope and length of sides and the perimeter of a rectangle given four of its vertices as ordered pairs (x, y)
Connecting on an emotional level : How does emotional intelligence relate to connecting on an emotional level with someone -- through marketing especially, but also through any other means such as music or art, or business communications?
Customer relationship management : After reading Lesson 5 Customer Relationship Management and text book readings please complete the exercise described below.
What are the three features of comovement : Give a noneconomic example of two variables that are positively correlated and an example of two variables that are negatively correlated.
What interest rate would you earn if you bought the bond : No payments will be made until the bond matures 5 years from now, at which time it will be redeemed for $1,000. What interest rate would you earn if you bought this bond at the offer price?

Reviews

len1402971

2/22/2017 12:20:50 AM

Functionality: Program functions as specified: Program calculates and displays the information specified; output appears exactly as stated in the requirements. Code Efficiency: Program logic is written concisely and is not cluttered with unnecessary tasks or statements; calculations are correct and efficient. Appropriate variable names used and proper data types used. Uses concepts and techniques discussed in class. Programming Style: Code uses proper indentation and spacing. Use of header and inline comments. Adherence to programming standards. Miscellaneous: All other instructions were followed, including submission instructions above.

len1402971

2/22/2017 12:20:43 AM

This lab is based on the material studied in the first three weeks of the course, including exercises done in the class. This assignment is to be done individually; you are not allowed to work on this assignment with anyone. You must submit only the source code file (.java) for your program. DO NOT submit anything else or you will lose marks. DO NOT submit .class files, DO NOT submit your editor's backup files (e.g. .java~ or .bak), etc.

Write a Review

Programming Languages Questions & Answers

  Design application that reads arbitary number of integers

Design and implement an application that reads an arbitary number of integers that are in the range of 0 to 50 inclusive and counts how many occurences of each are entered.

  Write application that inputs a telephone number as string

Write an application that inputs a telephone number as a string in the form (555) 555-5555. The application should String method split to extract the area code as a token.

  Create a menu type form that gives user to select subforms

Create a menu type form that provides the user the capability to select one of the following two subforms. Means of selection is programmers choice.

  Write software application development coding practices

Use the Library and other resources to write a software application development coding practices guide. Your guide should include recommendations

  Create an object oriented application to handle inventory

Working at the GM used car dealership you need to create an object oriented application to handle inventory. To start you create a detailed uml diagram that helps to plan your solution.

  Explain modular concepts incorporated in program logic

The title of the report is Kyles Transportation Company and could you also please do the code for the report so that the program will run in Qbasic or Microsoft QuickBASIC

  Write a set-list of enumerated constants for week

Write a set/list of enumerated constants called week which contains days of the week. Have variable called today that is of type week. Allot value to today.

  Find a way to have only a few fibonacci numbers in memory

Implement an iterative solution that runs in O(n) time and returns a pointer to a HugeInteger struct that contains F(n). Be sure to prevent memory leaks before returning from this function.

  Advantages and disadvantages of server

One of the features of Javascript that we have been looking at this week is that the code is interpreted within the browser environment, on the client machine.

  Develop a functional c program that implements a design

Develop a functional C program that implements a design and create a C program that declares and uses strings.

  What are application programming interfaces

What are application programming interfaces (APIs)? Identify several APIs that could or do exist in the software developed and maintained by a company for which you currently work or would like to work

  Implement a function for computing the achromatic phong

In this question you need to implement a function for computing the achromatic Phong illumination at a surface point.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd