Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA PROGRAMMING Step 1: Create a file named App.java containing a class named App. Add your main() method to this class. Recall that you can

JAVA PROGRAMMING

Step 1:

Create a file named App.java containing a class named App. Add your main() method to this class.

Recall that you can use VSCode shortcuts to create your class and main method.

Step 2:

Use appropriate data types to store the following information:

  • The names of the bride and groom (note: you may use two separate methods for this)
  • The total number of guests at the wedding
  • The square footage of the location (must be accurate to 0.1 square feet).
  • The names of each song in the DJ's playlist. You should use an ArrayList of Strings to store this, and the user should be able to enter as many song names as they wish.
  • The number of guests per square foot of the location.

Step 3:

Add static methods to:

  • Prompt the user for the names of the bride and groom
  • Prompt the user for number of guests at the wedding
  • Prompt the user for the square footage of the location
  • Prompt the user for names of each song in the DJ's playlist
  • Calculate and display the number of guests per square foot of the location.

Step 4:

Add functionality to:

  • Save all data to a file called wedding.txt
  • Load and display the contents of this file

Note: please use basic exception handling (i.e. a try block) when attempting to access a file.

Step 5:

Add logic to your main() method that uses all of the methods youve created in order to prompt the user for values, store their responses, save those values to a file, and display the contents of the file.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Case Studies In Business Data Bases

Authors: James Bradley

1st Edition

0030141346, 978-0030141348

More Books

Students also viewed these Databases questions

Question

7. Explain why retirees may be valuable as part-time employees.

Answered: 1 week ago