In this problem we are going to use ArrayLists and classes to design a road trip.

You have three classes: GeoLocation.java from earlier, which represents a geo location. A RoadTrip.java class which represents a road trip (or an ordered list of places), and a RoadTripTester.java class which brings them all together.

In GeoLocation.java:

Add a private instance variable called name which is a String. This represents the name of the location.

Modify the Geolocation class constructor so that it is now of the format

public GeoLocation(String name, double theLatitude, double theLongitude)
Add a getter method for name called getName().

Update the toString so that it returns a String of the format

San Francisco (37.7833, -122.4167)
Now, youâll also need to create a RoadTrip class. The RoadTrip stores an ordered list of locations, so youâll need to have an ArrayList. Youâll also need to support these methods.

// Create a GeoLocation and add it to the road trip
public void addStop(String name, double latitude, double longitude)

// Get the total number of stops in the trip
public int getNumberOfStops()

// Get the total miles of the trip
public double getTripLength()

// Return a formatted toString of the trip
public String toString()
Weâve given you a tester program to help get you started.

The output from that program would be:

1. San Francisco (37.7833, -122.4167)
2. Los Angeles (34.052235, -118.243683)
3. Las Vegas (36.114647, -115.172813)

Stops: 3
Total Miles: 572.9708850442705

Answers

Answer 1

The program is an illustration of classes, methods and array lists

Classes are templates used to create methods, while array lists are simply arrays that can be resized

The program written in Java, where comments are used to explain each line is as follows:

import java.util.ArrayList;

public class Main{

   //The main method begins here

   public static void main(String[] args){

       //This creates a RoadTrip object

       RoadTrip rt = new RoadTrip();

       //These initialize the RoadTrip object

       rt.addStop("San Francisco", 37.7833, -122.4167);

       rt.addStop("Los Angeles", 34.052235, -118.243683);

       rt.addStop("Las Vegas", 36.114647, -115.172813);

       //The following iteration prints each object

       for (GeoLocation x: rt.getRoadTrip()) {

           System.out.println(x.toString());

       }

       //This prints a new line

       System.out.println();

       //This prints the number of stops

       System.out.println("Stops: " + rt.getNumberOfStops());

       //This prints the total number of miles

       System.out.println("Total Miles: "+ rt.getTripLength());

  }

}

//This defines the RoadTrip class

class RoadTrip{

   //This creates an ArrayList for the RoadTrip

   public static ArrayList<GeoLocation> roadTrip = new ArrayList<GeoLocation>();

   //This declares and initializes i to 0

   int i = 0;

   // This creates a GeoLocation and add it to the road trip

   public void addStop(String name, double latitude, double longitude){

       GeoLocation location = new GeoLocation(name, latitude, longitude);

       roadTrip.add(location);

       i += 1;

   }

   //This defines an ArrayList method that returns the roadTrip

   public ArrayList<GeoLocation> getRoadTrip() {

       return roadTrip;

   }

   // This defines an int method that returns the total number of stops

   public int getNumberOfStops() {

      return i;

  }

  // The following method returns the total miles of the trip

  public double getTripLength(){

      double numberOfMiles = 0;

      for (int x = 0; x < roadTrip.size()-1; x++) {

          if ((x-1) != roadTrip.size()) {

              numberOfMiles += roadTrip.get(x).distanceFrom(roadTrip.get(x+1));

          }

      }

      return numberOfMiles;

  }

}

//This defines the GeoLocation class

class GeoLocation{

   //The next four lines declare the required variables

   public static final double RADIUS = 3963.1676;

   private String name;

   private double latitude;

   private double longitude;

   //This defines the GeoLocation method

   public GeoLocation(String name, double theLatitude, double theLongitude){

       //The next three lines initialize name, latitude and longitude

       this.name = name;

       latitude = theLatitude;

       longitude = theLongitude;

   }

   //The following string method returns the name of the geo location

   public String getName() {

       return this.name;

  }

  // The following string method returns a string representation of this geo location

  public String toString(){

      return this.name +  " (" + longitude + ", " + latitude + ")";

  }

  // The following double method returns the distance in miles between the geo locations

  public double distanceFrom(GeoLocation other){

      double lat1 = Math.toRadians(latitude);

      double long1 = Math.toRadians(longitude);

      double lat2 = Math.toRadians(other.latitude);

      double long2 = Math.toRadians(other.longitude);

      // This calculates the distance between the two locations and the north pole

      double theCos = Math.sin(lat1) * Math.sin(lat2) + Math.cos(lat1) * Math.cos(lat2) * Math.cos(long1 - long2);

      double arcLength = Math.acos(theCos);

//This returns the calculated distance

      return arcLength * RADIUS;

  }

}

Read more about classes, methods and array lists at:

https://brainly.com/question/8045197


Related Questions

How does the habit Win-Win, along with the concepts of inclusivity and diversity, help to grow an organization and help you to increase your growth mindset?

Answers

Answer:

teamwork or leadership skills

An organization is a collection of individuals who work together to achieve a common goal or specific purpose.

To fully understand how the effect of a win-win habit, inclusivity. and diversity can affect the growth of an organization and help increase the mindset of people working in an organization, we need to carefully examine each term.

A win-win habit views life as a collaborative situation rather than a competing arena. In all human relationships, a win-win habit is a state of mind and soul that seeks mutual gain. The solutions arrived to are useful and satisfactory to both parties. Therefore, an individual that portrays a win-win habit for his organization will definitely help the organization grow thereby increasing his growth mindset.

By the term inclusivity, we mean the act or principle of ensuring and providing equal access to opportunities and resources for individuals who would be excluded due to their physical or mental impairments, class, gender. etc. In an organization where the term inclusivity is not excluded, the growth of the organization will be paramount and be at the core of every member of such an organization.

Diversity entails understanding that each person is unique and acknowledging their distinct characteristics, as well as respecting their variances. The values that diversity will help such organizations to achieve include; teamwork, tolerance, and leadership.

Therefore, we can conclude that: an organization with all these terms( habit Win-Win, along with the concepts of inclusivity and diversity) will not only grow spontaneously but add value, credibility, and integrity to the organization and help increase the mindset of the individuals in the organization.

Learn more about leadership here:

https://brainly.com/question/7177953?referrer=searchResults

(50 points) Jeff wants to create a responsive web page where elements change size according to the size of the window. How would he specify elect sizes on a web page with such a fluid layout

Answers

Answer:

make the element sizes a percentage

Explanation:

Without using a framework specified for this type of thing such as Bootstrap, the best way to do this would be to make the element sizes a percentage. By making the size of everything a percentage it will automatically resize itself to take up the same percentage of the screen at all times. Even when the browser window is resized to any size that the user wants. This also applies to monitors of different sizes and mobile devices.

Answer:

make the element sizes a percentage

Explanation:

Which statement does not describe desktop publishing?
DTP is the same as WP.
DTP features are included in most WP programs.
DTP enables workers to produce documents that improve communication,
DTP lets you resize and rotate text.

Answers

Answer:

DTP is the same as WP.

Explanation:

Desktop publishing can be defined as a graphical design process which typically involves the creation of a printable document such as magazines or newspapers, through the use of special software programs or applications and a printer.

The following statement best describes desktop publishing;

DTP features are included in most WP programs.

DTP enables workers to produce documents that improve communication,

DTP lets you resize and rotate text.

What is the 8-bit two's complement form of the decimal number -112? OA. 10001111 OB. 11111000 O C. 10010000 OD. 11111001​

Answers

It’s C because two’s complement are negative values

-128 +16 = -112

Therefore,
C is the appropriate answer

Write an algorithm to the area of parallelogram​

Answers

Answer:

base multiplied by the given height

parallelogram = base x height

I hope this helps a little bit.

Microsoft

The Lock Tracking option prevents someone from turning the Track Changes feature off without a ________________________ . [Lock and Unlock Change Tracking]
Question 4 options:

password

lock definition

filename

computer

Answers

Answer:

Password

Explanation:

just took the test got a A!

excel files have a default extension of ?

Answers

I think .ppt

If I’m wrong I’m sorry

Ik lil bit but this is my max for now

which of the following is not an operating system a) boss b) window xp c) linux d) bindux​

Answers

Answer:

boss is not an os

Explanation:

boss is a former of Linux hope this helped

Analog method is also known us

Answers

Hi there! Thank you for choosing Brainly to ask your question. I would be happy to assist you today by answering. You were a little bit unclear, but I hope this answers your question. - Analogue methods refer to all manual methods where no computers are used, but with the advent of digital computers the term analogue is also used for analogue methods of computing data. An analogue signal varies continuously, according to information, and thereby the data are represented in a continuous form.

WIRELESS DATA TRANSMISSION METHODS​

Answers

Answer:

Infrared

802.11-based

802.15-based

Explanation:

Infrared:

It's short distance wireless transmission - for example tv remote control using infrared waves.

802.11-based:

Mostly used for wifi and things like that...

802.15-based:

It's a bluetooth standart wireless data transmission method.

Drag each label to the correct location on the image.
Identify the cell references in the formula.
absolute
reference
relative
reference
mixed
reference

Answers

Answer:

1.) Relative cell reference - A1

2.) Absolute cell reference - $D$2

3.) Mixed cel reference - $D2

Explanation:

In Microsoft Excel, cell references are very important and critical when dealing with formula. They can give you what you’re looking for or make your entire worksheet incorrect.

A cell reference is a cell address or a range of cell addresses that can be used in a formula.

There are three types of cell references and they are;

a) Relative reference

b) Absolute reference

c) Mixed reference

A relative cell reference is a cell reference that changes when you copy the formula to other cells. It s usually just a normal cell reference like A1, B2, C3. If a formula with a relative cell reference is copied down to other cells, the formula will change. That is a formula with a relative cell reference changes with respect to the cell which it is copied to.

An absolute reference does not change when you copy the formula to other cells. In absolute references, the dollar sign $ is used to “lock” both the row and column so that it does not change when it is copied to other cells. An example is $D$2.

Using a mixed cell reference, one is trying to see that only either the row or column changes with respect to other cells when they are copied. It is like “locking” either the column or the row while changing the other. Just like from the example, $D2 is a mixed cell reference where only the column is locked such that only the row changes when the formula is copied to other cells.

what is information technology ?​

Answers

Information technology can be defined as the study or use of systems for storing, retrieving, and sending information. Can be abbreviated to IT.

Answer:

Information technology is the study, design, development, implementation, support or management of computer-based information systems—particularly software applications and computer hardware. IT workers help ensure that computers work well for people.

Explanation:

11. You are considered accepting a job offer at a company on the other side of the country, but are worried about the movies costs. What is your best strategy regarding moving costs?
a. Inquire whether the company pays for the relocation or moving but be prepared to receive a no for an answer.
b. Do not as about having your moving expenses paid by the company, as it can create an impression that you are not fully interested in the offer.
c. Consider moving expenses an investment into your future and assume the full cost of it.
d. Insist that you will only accept the offer if all moving costs are covered by the company.

12. In general, freelancing jobs offer all EXCEPT which of the following?
a. More flexibility to choose the projects you wish to work on
b. Higher salary per hour
c. More job security
d. More independence - you are your own boss

Answers

11 answer would be A and 12 answer would be C as a freelancer there is no guarantee of jobs or job security

Which of the following is NOT an AWS Cloud Platform Service?

Answers

Answer:

Service analytics networking

Read this outline for an argumentative essay about government.
1. People have different ideas about the role of government.
A. The primary_purpose of government is to provide social services.
2. Government should provide services for
people who are poor or elderly.
A. Government can effectively provide the services that poor and elderly people need.
B. Food stamps keep people from going hungry.
C. Medicare and Medicaid provide health care.
D. Some people believe social services are an entitlement and not a right,
but many people could not survive without them.
Government's main role is provide to social services, such as food stamps.
The underlined sentence in the outline is the
O claim.
• conclusion.

Answers

Answer:

First option.

Explanation:

The underlined sentence in the outline numbered 1 (People have different ideas about the role of government) is the introduction.

What is an introduction?

The essential concept of an outline for a particular piece of writing, such as an essay, is presented in a single brief sentence for the body paragraphs. In this manner, it is positioned at the start and briefly summarizes the thesis of an article.

Because it appears at the beginning of the outline and contains the key notion that unifies all the other ideas offered in the subsequent phrases, the sentence with the asterisk (*) serves as the introduction. Government can effectively provide the services that poor and elderly people need.

Therefore, The underlined sentence in the outline numbered 1 (People have different ideas about the role of government) is the introduction.

Learn more about an introduction, here:

brainly.com/question/18119893

#SPJ5

edhesive 7.6 lesson practice python

def mystery(a, b = 8, c = -6):
return 2 * b + a + 3 * c

#MAIN
x = int(input("First value: "))
y = int(input("Second value: "))
z = int(input("Third value: "))

1) Suppose we add the following line of code to our program:

print(mystery(x))
What is output when the user enters 1, 1, and 1?

2)Suppose we add the following line of code to our program:

print(mystery(x, y, z))
What is output when the user enters 8, 6, and 4?

Answers

Answer:

(a) The output is -1

(b) The output is 32

Explanation:

Given: The above code

Solving (a): The output when 1, 1 and 1 is passed to the function

From the question, we have: print(mystery(x))

This means that only the value of x (which in this case is 1) will be passed to the mystery function

(a, b = 8, c = -6) will then be seen as: (a = 1, b = 8, c = -6)

[tex]2 * b + a + 3 * c = 2 * 8 + 1 + 3 * -6[/tex]

[tex]2 * b + a + 3 * c = -1[/tex]

The output is -1

Solving (b): The output when 8, 6 and 4 is passed to the function

From the question, we have: print(mystery(x,y,z))

This means that values passed to the function are: x = 8, y = 6 and z = 4

(a, b = 8, c = -6) will then be seen as: (a = 8, b = 6, c = 4)

[tex]2 * b + a + 3 * c = 2 * 6 + 8 + 3 * 4[/tex]

[tex]2 * b + a + 3 * c = 32[/tex]

The output is 32

If we add the line of code print(mystery(x)) and our input are 1, 1 and 1 the output will be -1.

If we add the line of code print(mystery(x, y, z)) and our inputs are 8, 6 and 4 the out put will be 32.

This is the python code:

def mystery(a, b = 8, c = -6):

  return 2 * b + a + 3 * c

#MAIN

x = int(input("First value: "))

y = int(input("Second value: "))

z = int(input("Third value: "))

print(mystery(x))

#What is output when the user enters 1, 1, and 1?

#Suppose we add the following line of code to our program:

print(mystery(x, y, z))

#What is output when the user enters 8, 6, and 4?

The code is written in python

Code explanation:The first line of code defines a function named mystery with the argument a, b by default is equals to 8 and c is equals to -6 by default. Then the code return the product of b and 2 plus a and plus the product of 3 and c.  x, y and z variable that stores the users input.Then we call the function mystery  with a single argumentThen we call the function mystery with three argument x, y and z which are the users input.  

The first print statement with the input as 1, 1 and 1 will return -1

The second print statement with the input 8, 6 and 4 will return 32.

learn more on python code here: https://brainly.com/question/20312196?referrer=searchResults

Which of the following gives the
customers better products that are not
offered by other competitors?
Select one:
a. Competitive advantage
b. Branding
C. Advertisements
d. Marketing Strategy​

Answers

Answer:

a. Competitive advantage

Answer:

a. Competitive advantage

Explanation:

Exercise 1: Multiples of Five Develop a program that contains the following functions: - Function that returns true if a given number is a multiple of 5; false otherwise. Main function that reads two integer values from the user and print all multiples of 5 between them inclusive. Your function should start from the lowest to the highest value entered by the user. Samples of input/output are given below. Sample input/output 1 Enter first: 4 Enter second: 40 Multiples of 5 between 4 and 40 are: 5 10 15 20 25 30 35 40 Sample input/output 2 Enter first: 40 Enter second: 4 Multiples of 5 between 4 and 40 are: 5 10 15 20 25 30 35 40

Answers

Answer:

Explanation:

please see attached picture

Investment in education and human capital improvement help GCC to overcome many economic challenges.
Select one:
O True
O False​

Answers

True is the right answer
the answer would be true

why does my Minecraft screen this "play and "settings" instead of the regular layout with singleplayer, multiplayer, and options? I'm on pc.

Answers

Answer:

Are you Minecraft Java or Minecraft Bedrock?

Are you updated to the latest Firmware?

Answer:

Maybe you didn't update

Explanation:

What are benefits of virtualizing servers ?

Answers

Answer:
Reduced capital and operating costs.

Minimized or eliminated downtime.

Increased IT productivity, efficiency,
agility and responsiveness.


Faster provisioning of applications and resources.

Greater business continuity and disaster recovery.

Simplified data center management.

what internal commands can we use when in interactive mode? can we use CLS and CD?

Answers

The cd command, also known as chdir (change directory), is a command-line shell command used to change the current working directory in various operating systems. It can be used in shell scripts and batch files.

TOT al
Name TWO examples of these settings and utilities. (2)​

Answers

Answer:

A program that performs a very specific task, usually related to managing system resources.

Explanation:

Compression utilities software.

Backup utilities software.

Disk defragmentation utilities software.

Text editor.

Application software.

The General purpose Application software.

Which of the following statements about malware protection are accurate? Select 3 options. Firewalls and anti-malware should be used together to provide a higher level of protection. Being cautious in your behavior and how you interact with your devices is just as important as technology-based malware protections. Apps from any source can be downloaded safely onto mobile devices, since the operating system will stop any malware infection. Popular anti-malware applications can locate and remove ALL malicious software. Updates for software and operating systems need to be installed regularly, so systems have up-to-date protection.

Answers

Answer:

Updates for software and operating systems need to be installed regularly, so systems have up-to-date protection.

Firewalls and anti-malware should be used together to provide a higher level of protection.  

Being cautious in your behavior and how you interact with your devices is just as important as technology-based malware protections.

Explanation:

Hope this helps

The statements about malware protection that are accurate:

Firewalls and anti-malware should be used together to provide a higher level of protectionBeing cautious in your behavior and how you interact with your devices is just as important as technology-based malware protectionsUpdates for software and operating systems need to be installed regularly, so systems have up-to-date protection.

Malware refers to the software that damages computers and destroys them. It should be noted that malware refers to malicious software.

Examples of common malware include worms, viruses, spyware, ransomware, etc.

It should be noted that anti-malware is used in order to protect computer systems from being infected with viruses.

Read related link on:

https://brainly.com/question/24252756

What’s the best Wi-Fi name you’ve seen?

Answers

Answer:

etisalath is the best wifi name

Bill Wi the Science Fi.

Examples of DATA and INFORMATION​

Answers

Answer:

When data are processed, interpreted, organized, structured or presented so as to make them meaningful or useful, they are called information. Information provides context for data.

Explanation:

For example, a list of dates — data — is meaningless without the information that makes the dates relevant (dates of holiday).

Write a C program that reads two hexadecimal values from the keyboard and then stores the two values into two variables of type unsigned char. Read two int values p and k from the keyboard, where the values are less than 8. Replace the n bits of the first variable starting at position p with the last n bits of the second variable. The rest of the bits of the first variable remain unchanged. Display the resulting value of the first variable using printf %x.Test Cases:n = 3;p=4;input: a= 0x1f (0001 1111) b = c3 (1100 0011); output: f (0000 1111)n = 2;p=5;input: a= 0x1f (0001 1111) b = c3 (1100 0011); output: 3f (0011 1111)

Answers

Solution :

#include  [tex]$<\text{stdio.h}>$[/tex]

#include [tex]$<\text{string.h}>$[/tex]

#include [tex]$<\text{stdlib.h}>$[/tex]

//Converts [tex]$\text{hex string}$[/tex] to binary string.

[tex]$\text{char}$[/tex] * hexadecimal[tex]$\text{To}$[/tex]Binary(char* hexdec)

{

 

long [tex]$\text{int i}$[/tex] = 0;

char *string = [tex]$(\text{char}^ *) \ \text{malloc}$[/tex](sizeof(char) * 9);

while (hexdec[i]) {

//Simply assign binary string for each hex char.

switch (hexdec[i]) {

[tex]$\text{case '0'}:$[/tex]

strcat(string, "0000");

break;

[tex]$\text{case '1'}:$[/tex]

strcat(string, "0001");

break;

[tex]$\text{case '2'}:$[/tex]

strcat(string, "0010");

break;

[tex]$\text{case '3'}:$[/tex]

strcat(string, "0011");

break;

[tex]$\text{case '4'}:$[/tex]

strcat(string, "0100");

break;

[tex]$\text{case '5'}:$[/tex]

strcat(string, "0101");

break;

[tex]$\text{case '6'}:$[/tex]

strcat(string, "0110");

break;

[tex]$\text{case '7'}:$[/tex]

strcat(string, "0111");

break;

[tex]$\text{case '8'}:$[/tex]

strcat(string, "1000");

break;

[tex]$\text{case '9'}:$[/tex]

strcat(string, "1001");

break;

case 'A':

case 'a':

strcat(string, "1010");

break;

case 'B':

case 'b':

strcat(string, "1011");

break;

case 'C':

case 'c':

strcat(string, "1100");

break;

case 'D':

case 'd':

strcat(string, "1101");

break;

case 'E':

case 'e':

strcat(string, "1110");

break;

case 'F':

case 'f':

strcat(string, "1111");

break;

default:

printf("\nInvalid hexadecimal digit %c",

hexdec[i]);

string="-1" ;

}

i++;

}

return string;

}

 

int main()

{ //Take 2 strings

char *str1 =hexadecimalToBinary("FA") ;

char *str2 =hexadecimalToBinary("12") ;

//Input 2 numbers p and n.

int p,n;

scanf("%d",&p);

scanf("%d",&n);

//keep j as length of str2

int j=strlen(str2),i;

//Now replace n digits after p of str1

for(i=0;i<n;i++){

str1[p+i]=str2[j-1-i];

}

//Now, i have used c library strtol

long ans = strtol(str1, NULL, 2);

//print result.

printf("%lx",ans);

return 0;

}

Which of the displays could be represented by a single bit?

Note that there are 2 answers to this question.

Choose 2 answers:

A. The current day of the week

B. The current month (1-12)

C. The current hour (1-12)

D. The temperature unit indicator ("C" or "F")

E. The "PM"/"AM" indicator

F. The current date (1-31)

Answers

Answer:

E. The "PM"/"AM" indicator

and

D. The temperature unit indicator ("C" or "F")

Does anyone know anything about the difference between analog and digital signals?
I don't understand it and I have to write an entire essay about it. Any information would help.

Answers

An analog signal is a continuous signal whereas Digital signals are time separated signals. Analog signal is denoted by sine waves while It is denoted by square waves. ... Analog signals are suited for audio and video transmission while Digital signals are suited for Computing and digital electronics.

An analog signal is a continuous signal whereas Digital signals are time separated signals. Analog signal is denoted by sine waves while It is denoted by square waves. ... Analog signals are suited for audio and video transmission while Digital signals are suited for Computing and digital electronics.

Which occupation is expected to increase according to the segment? Plz help me with question 5

Answers

In the Declaration of Independence it states, "To secure these rights, governments are instituted among men deriving their just power from the consent of the governed. Whenever any form of government becomes destructive of these ends, it is the right of the people to alter or abolish it."

What Enlightenment idea is reflected in this passage?
Other Questions
A 6.3 C electric charge is placed in an Electric Field with a magnitude of 5.0 x 105 charge due to the Electric Field? N/C. What is the electric force on the charge due to the electric field What is the fastest bird Find the missing angle. Explain why Nylon clothing crackles as you undress? it si a study island question PLEASE HELP!! ill give brainliest 2. How could a business demonstrate its core value of treating all employees well? Brainliest if you know who this is. La zona sur de Chile se extiende desde: a)Chilo hasta las islas Diego Ramrez b)El norte del ro Aconcagua hasta el ro Biobo c)El limite con Per hasta el ro Copiap d)El ro Biobo hasta el golfo de Corcovado, Chilo. IF SOLVED I WILL CORRECTLY ILL GIVE 5 STARS AND BRAINIEST Which of the following describes a correct methodfor solving the equation below? 8 + y = 4a. Add 8 to both sides.b. Subtract 8 from both sides.c. Add 8 to both sides, then add y to both sides.d. Subtract 8 from both sides, then divide bothsides by 1 3.) Which of these is not part of the core values for the EMS profession?a.) Respectb.) Empathyc.) Compassiond.) Physical strengthe.) Integrity as humans grow, their bodies change. Which of these statements explains how humans grow?A. cells from a cell wall B. cells undergo mitosis C. cells increase in size D. cells merge to become larger m/4=16 what does m equal? a car is traveling down a highway at a constant speed, described by the equation d=55t, where d represents the distance, in miles, that the car travels at this speed in t hours. Plz help! Due Tonight!!Woodrow Wilson was the last of the so-called Progressive Era presidents. How was Wilson presenting Americas war goals as progressive? How was this supposed to be a progressive war? 3 politician from Virginia who was at the Constitutional Convention came up with the Virginia Plan and the three-branch federal system wrote some of the Federalist Papers to convince people to ratify the ConstitutionWhich delegate to the Constitutional Convention is described in the box?A.James MadisonB.Thomas Jeffersonc. Benjamin Franklin. D. George Washington Describe and explain the differences between a Country, Nation, and State. Why do you believe it is important to know this difference and how do you believe that these distinctions affect how these entities interact in the world? 2x+a=5-bx PLEASE HELP THIS IS SUPER URGENT.... WHOEVER ANSWERS WILL BE MARKED BRAINLIEST a) josie makes fruit punch by mixing fruit juice and lemonade in the ratio 3:4, she needs to make 49 litres of punch for a party. how much of each ingredient does she need (in lires)b) During the party josie decides tio make some more. she has 15 litres of fruit juce left and plenty of lemonade. how much extra punch can she make? (answer in letres)c) to make the second batch of punch go further josie adds 4 more lires of lemonade. what is the ratio of fruit juice and lemonade in the second batch? (answer in ratios e.g 5:9) 7. Giraldo is unhappy at work. One explanation that is consistent with psychoanalytic theories ofpersonality is thatGiraldo feels he cannot really be himself at work, and this lack of self-actualization causes his unhappinessGiraldo feels critical of his choice not to go to college, and his defense mechanism is to blame his job for hisunhappinessGiraldo feels he has no choice about his work duties, and this external locus of control leads to hisunhappinessGiraldo thinks he is terrible at his job and everyone will soon find out, and this lack of self-efficacy leads tohis unhappinessGiraldo is generally not a very friendly or happy person, and this trait of low agreeableness causes hisunhappiness In the words played and kicked. the ed sounds as d and t respectively in the two words. explain why