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

  Computing first seven values of fibonacci number sequence

Write a program that uses a loop to compute the first seven values of the Fibonacci number sequence.

  Find minimum number of edits (operations)

Given two strings str1 and str2 and below operations that can performed on str1. Find minimum number of edits (operations) required to convert 'str1′ into 'str2′.

  Create logic to enter item until sentinel value is entered

Create a logic for and create the application allows user to enter an order item continuously until a sentinel value is entered.

  Program for vehicle registration department

Consulting firm has narrowed the choice of programming language to Java and C#. Which language do you believe would be more suitable for this application and why?

  What type of join is used between the tables

Which tables are used in the query?

  Create subclass name shippedorder that override computeprice

Create a subclass named ShippedOrder that overrides computePrice() by adding a shipping and handling charge of $4.00. Write an application named UseOrder that instantiates an object of each of these classes.

  Write pseudocode to find number of currency denominations

The atm machine gives amount in following denominations 100,500,100 only. Write down pseudocode that will take the amount and write out the number of currency denominations required.

  Write a program that uses is and else or if and elsif

write a program that uses is and else or if and elsif conditional statementsthat asks the user to enter a value for

  Creating table-find employee attended meeting on given date

The rows of this table record the fact that an employee from a particular project attended a meeting on the given date.

  Write down a program that will loop continuously to get

write a program that will loop continuously to get user input of positive numbers and total them out. the loop will

  Using datagrid in an application

Update the field named fldQuestionDescription.

  One-dimensional as array of counters to solve problem

Write program which determines how many salespeople earned salaries in each of following ranges. Use the one-dimensional as the array of counters in solving this problem

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