answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Orlov
2 days ago
15

Hello, my first time being here and I'm returning back from college and I'm now studying Java in college but I was stuck doing t

his last part of the assignment that I was given, I have until Monday midnight to turn this in, if anyone out there can assist me please, please do. Here's the code that I have wrote at the moment:
import java.time.LocalDate;


//Test driver class


public class TestWedding {


Wedding wedding1= null;

Wedding wedding2= null;


public void testWeddingObject = LocalDate.of(2019, 11, 9);(){

wedding1 = new Wedding(dateObject, "SantaFe", "New Mexico");

wedding2 = new Wedding(dateObject, "SantaFe", "New Mexico");

displayDetails(wedding1, wedding2)

}


public void displayDetails(Wedding wedding1, Wedding wedding2){

System.out.println("\n" + David);

System.out.println("and" + Sue);

System.out.println("are inviting you to their");

System.out.println(" The Big Wedding ");

System.out.println(wedding1.getWeddingDate() + " " wedding2.getWeddingDate());

System.out.println(wedding1.getLocation() + " " wedding2.getLocation());

}

class Person{

String David;

String Sue;

LocalDate September161994;

}

}

}


Please and thank you


Create a class named Person that holds the following fields: two String objects
for the person’s first and last name and a LocalDate object for the person’s
birthdate.
Create a class named Couple that contains two Person objects.
Create a class named Wedding for a wedding planner that includes the date of the wedding,
the names of the Couple being married, and a String for the location.
Provide constructors for each class that accept parameters for each field, and provide
get methods for each field.
Then write a program that creates two Wedding objects and in turn passes each to a method that displays all the details.
Save the files as Person.java, Couple.java, Wedding.java, and TestWedding.java.
Computers and Technology
You might be interested in
python Consider this data sequence: "3 11 5 5 5 2 4 6 6 7 3 -8". Any value that is the same as the immediately preceding value i
oksian1 [950]

int currentNumber,previousNumber = -1, countDuplicates = 0;

do {

cin >> currentNumber;

if ( previousNumber == -1) {

previousNumber = currentNumber;

}else {

if ( previousNumber == currentNumber )

countDuplicates++;

else

previousNumber = currentNumber;

}

} while(currentNumber > 0 );

cout << countDuplicates;

7 0
3 months ago
Write a C++ program that uses a while statement and the tab escape sequence \t to print the following table of values:N 1 0*N 1
ivann1987 [1066]
#Include <iosteam> using namespace std; int main() { cout << "N\t10*N\t100*N\t1000*N" << endl; int x=1; while(x<=5){ cout << x << "\t" << x*10 << "\t" << x*100 << "\t" << x*1000 << endl; x++; } return 0;} Explanation: The code prints the header, N 10*N 100*N 1000*N, using \t. It sets up x as 1, which will control the while loop. A while loop is created to iterate while x remains less than or equal to 5. Within the loop, the necessary values are printed, and after each print, x increments by 1. </iosteam>
5 0
2 months ago
Other questions:
  • How concerned are you about the security of rtos in cars smart homes and wearable technology?
    15·1 answer
  • Ajay wants to read a brief overview about early settlers in the United States. Which type of online text source should he most l
    9·2 answers
  • Assign max_sum with the greater of num_a and num_b, PLUS the greater of num_y and num_z. Use just one statement. Hint: Call find
    5·1 answer
  • Write a program in pascal to find the area of a circle
    14·1 answer
  • Redo Programming Exercise 16 of Chapter 4 so that all the named constants are defined in a namespace royaltyRates. PLEASE DONT F
    14·1 answer
  • A particular vendor uses the following approach to intrusion detection.16 The company maintains a large number of honeypots dist
    5·1 answer
  • Given positive integer n, write a for loop that outputs the even numbers from n down to 0. If n is odd, start with the next lowe
    8·1 answer
  • Why would Network Systems employees be employed by the government?
    12·2 answers
  • A data breach occurred in Cosmo Service, Inc. The incident results in huge losses of revenue as a result their mobile app servic
    8·1 answer
  • What will be displayed after code corresponding to the following pseudocode is run? Main Set OldPrice = 100 Set SalePrice = 70 C
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!