Add the following method to the Point class: public double distance(Point other) Returns the distance between the current Point object and the given other Point object. The distance between two points is equal to the square root of the sum of the squares of the differences of their x- and y-coordinates. In other words, the distance between two points (x1, y1) and (x2, y2) can be expressed as the square root of (x2 - x1)2 (y2 - y1)2. Two points with the same (x, y) coordinates should return a distance of 0.0.
public class Point {
int x;
int y;
// your code goes here
}

Answers

Answer 1

Answer:

public class Point

{

  public int x;

  public int y;

  Point(int x,int y)

  {

      this.x=x;

      this.y=y;

  }

  public static void main(String[] args)

  {

      Point p1=new Point(-2,3);

      Point p2=new Point(3,-4);

      System.out.println("distance:"+distance(p1,p2));

 }

  private static double distance(Point p1,Point p2)

  {

      return Math.sqrt(Math.pow(p2.x-p1.x, 2)+Math.pow(p2.y-p1.y, 2));

  }

}

Explanation:

The java program defines the Point class and the public method 'distance' to return the total distance between the two quadrants passed to it as arguments (they are both instances of the Point class).


Related Questions

You can write a function to find Fibonacci numbers using recursion.

How do you find the next number?


add five to the previous number

add one to the previous number

multiply the two previous numbers

add the two previous numbers

Answers

Answer:

Add the two previous numbers

Explanation:

A recursive definition of the Fibonacci sequence would look like this, in python:

def fibonacci(n)

   if n <= 1:

       return n

   else:

       return(fibonacci(n-1) + fibonacci(n-2))

The cash register program will have items. For each item, the name and cost are saved. For a transaction, it will accept any number of items (not known in advance) and any number of payments of different payment types (not known in advance). For each transaction, it calculates the total including a 7% sales tax and keeps prompting for a payment until the total has been paid. It also determines if any change is required. Thus, a transaction is responsible for calculating the amount of money that needs to be paid, accepting money, and generating a receipt. A receipt holds information about a transaction so that it can display how much each item cost, how the transaction was paid for, etc. (see example outputbelow).Payment type includes CASH, DEBIT_CARD, CREDIT_CARDandCHECK. Each payment consists of an amount and payment type
Hints
1. All fields should be private.
2. The PaymentType class should be an enum class with values: CASH, DEBIT_CARD, CREDIT_CARD, CHECK
3. Payment type information should not print the enum directly
4. Use final to store the transaction for each receipt.
5. Output:
A. The values for subtotal, tax, total, and payment information are all aligned. You can achieve this by using the tab character '\t' in your Strings. The item lines do not need to be aligned.
B. Do not worry about only using 2 decimal places. Let Java decide how many decimal places to use.
6. Create a main class to house the main method. In the main method, create some items, a transaction, and display the receipt.
A. Example outputs
Example: Pay everything with one payment
Transaction listing the items and asking for payment:
Item 1: apple: 0.5
Item 2: pear: 0.75
Item 3: pineapple: 0.75
Total: 2.14
Please enter payment type.
1. Cash
2. Debit card
3. Credit card
4. Check
2
Enter the amount to pay with this type.
2.14
Total after payment: 0.0
Receipt printed:
apple: 0.5
pear: 0.75
pineapple: 0.75
----------------------------------------------------------
Subtotal:
Tax:
Total:
Debit:
Change: 2.0 0.14 2.14 2.14 0.0
Example: Paying with multiple payments and payment type
Item 1: refrigerator: 800.71
Total: 856.7597000000001
Please enter payment type.
1. Cash
2. Debit card
3. Credit card
4. Check
1
Enter the amount to pay with this type.
400
Total after payment: 456.75970000000007
Please enter payment type.
1. Cash
2. Debit card
3. Credit card
4. Check
2
Enter the amount to pay with this type.
475
Total after payment: -18.240299999999934
refrigerator: 800.71
3
Subtotal: 800.71
Tax: 56.04970000000001
Total: 856.7597000000001
Cash: 400.0
Debit: 475.0
Change: 18.240299999999934
Example: Using the same payment type multiple times
Item 1: apple: 0.5
Item 2: pear: 0.75
Item 3: pineapple: 0.75
Total: 2.14
Please enter payment type.
1. Cash
2. Debit card
3. Credit card
4. Check
1
Enter the amount to pay with this type.
1.25
Total after payment: 0.8900000000000001
Please enter payment type.
1. Cash
2. Debit card
3. Credit card
4. Check
1
Enter the amount to pay with this type.
10.50
Total after payment: -9.61
apple: 0.5
pear: 0.75
pineapple: 0.75
Subtotal: 2.0
Tax : 0.14
Total: 2.14
Cash: 1.25
Cash: 110.5
Change: 9.61

Answers

Answer:

Explanation:

package sample;

import java.util.Scanner;

public class Main extends newOrder{

   public static void main(String[] args) {

       newOrder order = new newOrder();

       order.newOrder("apple", 0.5);

       order.newOrder("pear", 0.75);

       order.newOrder("pineapple", 0.75);

       double newTotal = order.getTotal();

       order.printItems();

       order.printTotal();

       while (newTotal != 0) {

           Scanner in = new Scanner(System.in);

           System.out.println("Please enter payment type.\n" + "Cash \nDebit card \nCredit card \nCheck");

           String paymentType = in.nextLine();

           System.out.println("Enter the amount to pay with this type: ");

           double amount = in.nextDouble();

           newTotal -= amount;

           System.out.println("Total after payment: " + newTotal);

       }

       System.out.println("Receipt Printed:");

       order.printItems();

       order.printSubtotal();

       System.out.println("Tax: 7%");

       order.printTotal();

   }

}

------------------------------------------------------------------------------------------------------------

package sample;

public enum PaymentType {

   CASH, DEBIT_CARD, CREDIT_CARD, CHECK

}

-----------------------------------------------------------------------------------------------------------

package sample;

import java.util.HashMap;

class newOrder {

   private String name;

   private double cost;

   private double total;

   private double subtotal;

   HashMap<String, Double> itemList = new HashMap<>();

   public void newOrder(String name, double cost) {

       this.name = name;

       this.cost = cost;

       this.total += cost;

   }

   

   public void printItems() {

       for (String i: itemList.keySet()) {

           System.out.println( i + ": \t" + itemList.get(i));

       }

   }

   public double getTotal() {

       return (total * 1.07);

   }

   public void printSubtotal() {

       for (double i : itemList.values()) {

           subtotal += i;

       }

       System.out.println("Subtotal: " + subtotal);

   }

   

   public void printTotal() {

       double total = subtotal * 1.07;

       System.out.println("Total: " + total);

   }

}

Write a program that calculates the amount of money in a savings account that earns a guaranteed yearly interest rate. The program will accept from the user the account is present value (i.e. what is in the savings account now), the annual interest rate (in a percentage), and the number of years the money will be left in the account (years). The program should display the savings account future value and the number of years the money will be left in the account.

Answers

Solution :

# Reading principle amount from user

[tex]$\text{accountPresentValue}$[/tex] = eval([tex]$\text{inpu}t("$[/tex]Enter principle amount: "))

# Reading time duration in number of year from user

years = eval(input("Enter time duration in number of year: "))

# Reading interest rate from user

annualInterestRate = eval(input("Interest rate: "))

# calculating futureValue using user input data

futureValue = accountPresentValue * (1 + annualInterestRate / 100) ** years

# printing calculated futureValue to console

print("Final balance =",futureValue)

Match the OOP concept to its definition.
encapsulation
data abstraction
inheritance
derived class
defines a class in terms of another class
arrowRight
inherits the properties of a base class
arrowRight
provides only essential information to the world
arrowRight
binds data and functions together
arrowRight

Answers

Answer:

defines a class in terms of another class = inheritance

inherits the properties of a base class = derived class

provides only essential information to the world = data abstraction

binds data and functions together = encapsulation

Explanation:

What is used to prevent all vlans from going across a trunk?

Answers

If you want to play Valorant with me my name is
Ticklemyguitar and my riot id is 2735

In QBasic, create a number guessing challenge. Your program should generate a random number from 1-
100 (inclusive). Let the user guess a number. The program should let the user guess until they get the
correct number. After each input, the program should tell the user whether they guessed the correct
number, or if they guessed too high or too low. While the user is entering guesses, the program should
keep a count of the number of guesses that it takes to get the correct number. After the user guesses
the correct number, the program should congratulate the user and tell them how many guesses it took
them to get the correct number. By the way, if the user chooses carefully, they should be able to guess
the number within 7 tries. But, your program should still let the user keep guessing until they guess the
correct number

Answers

Answer:

yes

Explanation:

1) Raj wants to create a presentation of 20 slides on MS PowerPoint. He wants that all the slides should have uniform background and theme. Suggest him which option in MS PowerPoint makes it possible.​

Answers

Raj wants to create a presentation of 20 slides on MS PowerPoint. He wants that all the slides should have uniform background and theme. Suggest him which option in MS PowerPoint makes it possible. Ans:- Slide Master option.

It is for employees to make mistakes that compromise the security of an organization’s computer devices and sensitive information.

impossible
difficult
easy

Answers

Answer: Easy

Explanation: Correct on my Edg 2021.

It is simple for employees to make mistakes that jeopardize a company's computer system security and sensitive data.

What exactly is sensitive data?

Sensitive information has been defined as personal data that includes facts or opinions concerning a person's race or ethnicity. political affiliations or beliefs. beliefs in religion or philosophy. Data that needs to be shielded from unwanted access in order to protect the security or privacy of a person or organization is considered sensitive information.

Pattern-based classifiers called sensitive information types (SIT) are used. To see a complete list of all SITs, see Sensitive information types entity definitions. They look for sensitive information like social security, credit card, or bank account numbers to identify sensitive things.

Therefore, It is simple for employees to make mistakes that jeopardize a company's computer system security and sensitive data.

To know more about sensitive information visit;

brainly.com/question/26191875

#SPJ3

A license plate has 7 characters. Each character can be a capital letter or a digit except for 0. How many license plates are there in which no character appears more than once and the first character is a digit?

a. 9 P(35, 6)
b. 9 P(34,6)
c. 9.(35)^6
d. 9.(35)^6

Answers

Answer:

b. 9 P(34,6)

Explanation:

Since the 1st character of the number plate is the digit, therefore, there are nine possible ways to select them from digits 1 to 9.

And in the license plate there are 7 characters, the first character is counted before and the remaining 6 characters that can either be a digit or a letter has to be considered.

Now there are in total 34 symbols remaining form a total of 26 letters and 8 digits. They can be placed as 34x33x32x31x30x29 ways = P(34, 6) ways.

Therefore in total for all the characters there are 9 x P(34, 6) different ways.

What is the first step in finding a solution to a problem? Choose a solution. Think of options to solve the problem. Try the solution. Turn the problem into a question.\

Answers

Answer: Summarize the six steps of the problem solving process.

Explanation:

Answer:

turn the problem into a question

Explanation:

I got it right on a test!

Why did Elena Gilbert Turn her humanity off when she was sired to Damon? (In The Vampire Diaries)

Answers

Answer:

Ok, so when her brother died she couldn't take it and was in denial for like the longest time. And since she was still sired to Damon bofre her humanity was off she could still listen to him.

Explanation:

Your tasks include identifying competitors, determining your company's market penetration and consulting market research sources. These tasks are examples of:
This task contains the radio buttons and checkboxes for options. The shortcut keys to perform this task are A to H and alt+1 to alt+9.
A

search engine optimization (SEO).
B

off-site Web analytics.
C

on-site Web analytics.
D

pay-per-click.

Answers

Answer:

B. off-site Web analytics.

Explanation:

Marketing can be defined as the process of developing promotional techniques and sales strategies by a firm, so as to enhance the availability of goods and services to meet the needs of the end users or consumers through advertising and market research. The pre-service strategies includes identifying the following target market, design, branding, market research, etc.

Market research can be defined as a strategic technique which typically involves the process of identifying, acquiring and analyzing informations about a business. It involves the use of product test, surveys, questionnaire, focus groups, interviews, etc.

Web analytics refers to a strategic process which typically involves the collection of data, as well as the study of user behavior in an attempt to enhance or boost market share and sales. It is divided into two main categories;

I. on-site Web analytics.

II. off-site Web analytics.

In this scenario, your tasks include identifying competitors, determining your company's market penetration and consulting market research sources. These tasks are examples of off-site Web analytics.

g Consider the turning point problem again, but this time you are given a sequence of at least three integers, which consists of a decreasing subsequence followed by an increasing subsequence. Using the divide and conquer technique, develop a recursive algorithm that finds the index of the turning point in the sequence (that is, the point where it transitions from a decreasing subsequence to an increasing subsequence). For example, in the sequence [43 30 16 10 7 8 13 22], the integer 7 is the turning point and its index is equal to 4 (assuming the starting index is 0). So, the algorithm should return 4

Answers

Answer:

Explanation:

The following code is written in Python, it creates a recursive function that takes in a list as a parameter, then compares the first two items in the list if the first is greater, it increases the index by one and calls the function again. This is done until the turning point is found, it then prints out the position of the turning point int the list.

def find_turning_point(list, x=0):

   if list[x] > list[x + 1]:

       x += 1

       return find_turning_point(list, x)

   else:

       return "The turning point position is: " + str(x)

The rhythmic note that three beats is called a____half note.

Answers

Answer:

it is called a dotted half note

Answer:
Dotted half note

On the MarketingConsultants worksheet, in cells D10:H13, use a PMT function to calculate the end of the month payment amount. Enter one formula that can be entered in cell D10 and filled to the remaining cells. To calculate the amount for the pv argument, subtract the down payment amount from the retainer amount. The formula results should be positive.
Hiring Marketing Consultants Analysis ainted Paradise RESORT&SPA $ 125,000 5 4 Retainer Amount Term (Years) Monthly Loan Payments Down Payment $ 10,000 15,000 20,000 $25,000$30,000 2.0%, 2.5% 3.0% 3.5%. 10 12 13 15 16

Answers

Answer:

sdddddddde22

Explanation:

An organization requires secure configuration baselines for all platforms and technologies that are used. If any system cannot conform to the secure baseline, the organization must process a risk acceptance and receive approval before the system is placed into production. It may have non-conforming systems in its lower environments (development and staging) without risk acceptance, but must receive risk approval before the system is placed in production. Weekly scan reports identify systems that do not conform to any secure baseline. The application team receives a report with the following results:
Host Environment Baseline deviation ID(criticality)
NYAccountingDev Development
NYAccountingStg Staging
NYAccounting Prod Production 2633 (low), 3124 (high)
There are currently no risk acceptances for baseline deviations. This is a mission-critical application, and the organization cannot operate if the application is not running. The application fully functions in the development and staging environments. Which of the following actions should the application team take?
A. Remediate 2633 and 3124 immediately.
B. Process a risk acceptance for 2633 and 3124.
C. Process a risk acceptance for 2633 and remediate 3124.
D. Shut down NYAccounting Prod and investigate the reason for the different scan results.

Answers

Answer:

C. Process a risk acceptance for 2633 and remediate 3124.

Explanation:

There are various business risks. Some are inherited risks while other are risks are associated with nature of business. It is dependent on business owners that they want to accept risk or mitigate the risk. Risk acceptance is based on the strategy of the management. In the given scenario Accounting Prod Production has low risk 2633 which is accepted while 3124 is high risk which is remediated.

Design a software system for a bookstore that keeps an inventory of two types of books: Traditional books and books on CD. Books on CD may also contain music. The bookstore purchases books from publishers and sets a price for each book. Customers can purchase books from the bookstore, using either cash or a credit. The bookstore keeps track of which books it has in its inventory, and the books purchased by each customer

a. What are the objects in your object- oriented Solution?
b. What are the interactions between objects in your solution?
c. Which objects "have" other objects?
d. Which Objects "Use" other objects?
e. Which objects are other objects?

Answers

Answer:

Explanation:

a. In this scenario, the best solution would have an Object of Traditional Books, CD, Music, Bookstore and Customer.

b. All five objects would be able to be called by the main program loop and the Customer Object would call upon and use either the Books or CD object, While the Bookstore object would call upon all of the other objects.

c. Both the Bookstore object and Customer object will "have" other objects as the Bookstore needs to hold information on every Book or CD in the Inventory. While the Customer object would call upon the Book and CD object that they are purchasing.

d. The Music Object will extend the CD object and use information on the CD object as its parent class.

e. Since the Music Object extends the CD object it is also considered a CD since it is in CD format like the Books on CD and therefore is both objects.

How does an online discussion group differ from one that is held face-to-face?

There is no need for group roles when holding online meetings.
Online discussion groups do not allow members to develop critical-thinking skills.
Group members are more likely to bond together as a group online than they would when meeting face-to-face.
Facilitating an online conversation may require even more work, so that participants continue engaging with one another online.

Answers

Answer: they always will have a different thinkage from others

Explanation:Some people need actual in person learning for better grades it also keeps them from getting distracted easily, they have different brains in everyone in the world everyone thinks, acts and talks in different ways some people dont need in person school because they would rather be online wich are both ok so yes they do bond together online but better in person.

Online discussion group differ from one that is held face-to-face as Group members are more likely to bond together as a group online than they would when meeting face-to-face. Thus, option C is correct.

What is software organization?

A system that defines how specific activities, in this case, the software development process, are directed to achieve corporate goals is referred to as an organizational structure. These activities could include putting rules, roles, and responsibilities in place.

There are four basic modes of collaboration, as illustrated by the exhibit "The Four Ways to Collaborate": a closed and authoritarian network (an elite circle), an open and hierarchical connectivity (an innovation mall), an open and flat network (an innovation community), and a shuttered and flat network (a consortium).

Groupware is software that allows a group of people to work together on the same system or application, regardless of where they are. Email, newsgroups, and many more are examples of groupware applications.

Thus, option C is correct.

For more details regarding collaborative applications, visit:

brainly.com/question/8453253

#SPJ3

A mathematical process of coding information so that only the intend user can read it

Answers

Answer:

asymmetric encryption with the intended user's public key.

Explanation:

Only that user will be able to decrypt the information.

Which of the following is the best reason for aspiring visual artists and designers to create greeting cards? a-popularity of greeting cards b-innovative design techniques used in cards c-ease of production d-Low cost of production

Answers

Answer:

ease of production

Explanation:

Swapping Order of Vowels Write a program to swap the order of the vowels in a given word. For example, if the word is programming, the output is prigrammong. Here, the initial order of vowels is o, a, i which changes to i, a, o. Assume that the letters of the words are in lowercase.

Answers

Answer:

Program is as follow:

Explanation:

#include<iostream.h>

#include < conio.h>

bool isVowel(char b)

{

return

( b=='a' || b=='A' || b=='e' || b=='E' || b=='i' || b=='I' || b=='o' || b=='O' || b== 'u' || b=='U');

For swaoing the vowels

string reverseVowel ( String str)

{

int j = 0;

string v ;

for ( int i= 0 ; str [i]]!='0'; i++)

if( isv(str[i]))

v[j++] = str[i[;

for ( int i = 0; str[i]! = '0' ; i++

if ( isv (str[i]))

str{i} = v [--j]

return str;

}

int main ()

{ string str = " Programming";

cout<<swapv(str);

return 0 ;

}

PLEASE HELP ME WITH THIS PYTHON CODE::::: THANKS!!!



Lists are an example of a data abstraction.


A data abstraction can often contain different types of elements. It also provides a separation between the abstract properties of a data type (integer, boolean, string) and the concrete details of its representation. Basically, it doesn’t matter that the type are different!


Create an empty list. Append the integer 3, a string of "hello" and a boolean of False into the list. Print out each index individually. Now, remove the number 3 and False from the list.


Finally, print out the list again.

Answers

Answer:

Explanation:

The following Python code does exactly as requested. Once the list is created and the elements are added to it, it uses a for loop to print out each element individually. Then once the loop is over it removes the 3 and False elements from the list and creates another for loop to print the remaining element(s) individually again.

my_list = []

my_list.append(3)

my_list.append("hello")

my_list.append(False)

for x in my_list:

   print(x)

my_list.remove(3)

my_list.remove(False)

for x in my_list:

   print(x)

qr code is more developed than barcode​

Answers

While a barcode only holds information in the horizontal direction, a QR code does hold information in both horizontal and vertical directions. Due to this, a QR code holds hundreds of times more information than a barcode.

With that being said they have different purposes, and there about the same developed as each other, unless you count how much information they can store.

can you help me with this question please ​

Answers

d. half period because it is the converting of bidirectional current flow to unidirectional currency flow.

Antivirus is a program that detects error.True or False.​

Answers

Answer:  false

Explanation:

Because it isn't true.

You were just hired as an IT Specialist for Smalltown School District. Your first assignment is to review a problem area& in student records processing. It seems that the program currently used to compute student grade point averages and class rankings runs terribly slow and as a result end of year reports are habitually late. Your are asked to come up with a list of items that should be checked in order to determine if a modification to code is in order. The IT department head is asking you to do this without the opportunity to actually see the current application/programs in use. What questions would you ask about the current code? What areas of code would you look at? What would you need to know about the student data?

Answers

Answer:

Explanation:

There are various questions that you can ask in this scenario, such as

What grading policies are being implemented?

How many student grades are being calculated by the program?

What is the requirements for a student to pass?

All of these questions would allow you to get an idea of how extensive the code may be and its complexity. Once you know this you would look at the code revolving around actually looping through the data and doing the necessary calculations. You can then determine how to manipulate the code and make it much more efficient.

You would also need to know how the student data is being saved, which will help determine if it is the best data structure for saving this type of data or if it can be replaced in order to maintain the data secure while increasing the speed of the program. Mainly since this information needs to be continuously used from the data structure.

Other Questions
Help please!! Thanks I don't know how to do this... Please help me Fannie has a credit card that using the average daily balance method. For the first 16 days of one of her billing Cycles, her balance was $1,050, and for the last 14 days of the billing cycle, her balance was $1,280. If a credit cards APR is 19%, which of these Expressions could be used to calculate the amount Fannie was charged in interest for the billing cycle?A. (0.19/365 x 31)(16 x $1050+14 x $1280/31)B. (0.19/365 x 30)(16 x $1050+14 x $1280/30)C. (0.19/365 x 30)(14 x $1050+16 x $1280/30)D. (0.19/365 x 31)(14 x $1050+16 x $1280/31) A town plans to clear a patch of forest to make a road wider. What possible changes should the town take into account? Identify each sentence as either sentence or fragment 1.) Do your work 2.) Every time she raises her hand. 3.) Never in a million years 4.) Because I said so 5.) They wondered 6.) Go7.) left on the frying pan 8.) Each and every one of the misbehaved kids An object with little mass won't require a lot of force to move.Group of answer choicesA. FalseB. TrueC. Only sometimes What kind of questions are used to start a socratic essay A ramp was constructed to load a truck. If the ramp is 8 feet long and the horizontal distance from the bottom of the ramp to the truck is 3 feet, what is the vertical height of the ramp? Lonergan Company occasionally uses its accounts receivable to obtain immediate cash. At the end of June 2021, the company had accounts receivable of $920,000. Lonergan needs approximately $570,000 to capitalize on a unique investment opportunity. On July 1, 2021, a local bank offers Lonergan the following two alternatives:A. Borrow $570,000, sign a note payable, and assign the entire receivable balance as collateral. At the end of each month, a remittance will be made to the bank that equals the amount of receivables collected plus 10% interest on the unpaid balance of the note at the beginning of the period.B. Transfer $620,000 of specific receivables to the bank without recourse. The bank will charge a 3% factoring fee on the amount of receivables transferred. The bank will collect the receivables directly from customers. The sale criteria are met.Required: 1. Prepare the journal entries that would be recorded on July 1 for: a. alternative a. b. alternative b.2. Assuming that 70% of all June 30 receivables are collected during July, prepare the necessary journal entries to record the collection and the remittance to the bank for:____. a. alternative a. b. alternative b. When would a female have a 100% chance of inheriting a sex-linked recessive trait?A. She inherits an affected X chromosome, but only from her mother.B. Mother and father both pass on dominant alleles on somatic (body) chromosomes.oC. She inherits an affected X chromosome from both mother and father.D. Mother and father both pass on recessive alleles on somatic (body) chromosomes. The line plot shows the distances, in miles, run by joggers in a park.---------------------------------A number line with one x above .5, one x above 1.5, one x above 2, one x above 3, two xs above 3.5, two xs above 4, one x above 4.5, and one x above 8.5.How many runners ran at least 3 miles?Enter your answer in the box.{ } runners In 1994, Leroy Burrell of the United States set what was then a new world record for the mens 100 m run. He ran the 1.00 102 m distance in 9.5 s. Assuming that he ran with a constant speed equal to his average speed, and his kinetic energy was 3.40 103 J, what was Burrells mass? Give three examples from the text which support Muhammad Alis statement that, "I have always believed in myself." HELP ME ASAP Qu es? (Limit your response to a definite article and noun) *Your answer Hi yall can plz help me with this it would mean a lot.....Thanks! Please help me someone? Society during the middle ages was organized into a feudal system, which consisted of small communitiescongregated around a central "Lord." The owner of all of the land in a country was ultimately the king, but because the king couldneither protect nor rule all of his land himself, he divided it up into segments called "fiefs" and awarded fiefs to important nobles,typically barons or bishops, in exchange for their contributions of soldiers and/or money to the king's armies. The Lords lived in alarge house or a castle called the manor. People would gather at the manor for celebrations, or for protection, if necessary.Immediately around the manor was the village, which included the church. Farms, which supplied food to the Lord and to thevillagers, were in the outlying areas.About 90% of the people that lived under the feudal system in the middle ages were peasants, usually called "serfs." The Lordsprotected the peasants, and in return the peasants worked for the Lords. Though some peasants were free and practiced trades likecarpentry, baking, and blacksmithing, most were little more than slaves. They worked long, hard days, six days a week for not muchmore than subsistence.Women worked hard during this period too, and not only at the household tasks that you would expect them to do, like cooking,baking bread, sewing, weaving and spinning. They also hunted for food, fought in battles, and worked as blacksmiths, merchants andapothecaries, midwives, fieldworkers, writers, musicians, dancers or painters. Other women became nuns. Some women werebelieved to be witches. A famous woman from the middle ages is Joan of Arc, the daughter of a French peasant, who claimed to hearvoices instructing her to protect France against the English invasion. Dressed in armor, she led a victorious troop of soldiers againstthe English in the fifteenth century. But the Middle Ages was rife with ignorance and superstition, and even after her service to hercountry, Joan of Arc was burned as a witch.1. What was the benefit of the feudal system to the king? What does water offer that attracts human settlement? Help Me!!!I will failll please they never taught me this!!!! A triangle has three angles with the measures of (2x), (2x + 14), and (6x + 6)".What is the measure of the smallest angle in the triangle?