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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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