
Please help with this JAVA PROGRAMMING 1 Assignment. This is the instructions and the code I have done so far. Please help figure out what to do next. I am so stuck. Thank you.
You are creating a
Species | Description | Diet | Danger Level | Times Caught |
Sprite | Small winged humanoid | berries | medium | 1 |
Goblin | Common evil fey | Omnivorous | medium | 5 |
Troll | Large, dangerous, ugly | humanoids | high | 1 |
Boggart | Mischievous teleporting goblin-like creature | stolen pies | low | 4 |
Gnome | Small, shy, burrowing | burrowing critters | low | 2 |
Dryad | tree-maiden spirit tied to a forest | unknown | medium | 0 |
Using one or more arrays, display this list.
Modify the program so the user enters a number. Then, display all the creatures (and their info) who have been caught at least that many times.
In addition to the above, allow the user to enter the name of a creature. If that creature is in the list, add one to the number of times that creature has been caught and display the list again. Otherwise, let the user know it isn't in the list.
import java.util.*;
public class FirstDatabase {
public static void main (String args[])
{
Scanner kb = new Scanner(System.in);
System.out.println("How many fiends would you like to enter?");
int friends = kb.nextInt();
kb.nextLine();
System.out.println();
//array for user input
//String array for names of friends
String[] names = new String [friends];
//array to store ages
int ages [] = new int [friends];
//array to store addresses
String[] addresses = new String [friends];
for (int i=0; i<friends; i++)
{
//user input for names
System.out.print("Please enter the name of friend "+(i+1)+":");
names[i] = kb.nextLine();
//user input for age
System.out.print("Please enter the age of friend "+(i+1)+":");
ages[i] = kb.nextInt();
kb.nextLine();
//user input for addresses
System.out.print("Please enter the address of friend "+(i+1)+":");
addresses[i] = kb.nextLine();
System.out.println();
}
//format for table display
Formatter chart = new Formatter();
System.out.println();
System.out.println("Information Chart");
chart.format("%5s%15s%25s\n","Name","Age","Address");
for (int i=0; i<friends; i++)
{
chart.format("%5s%15s%25s\n",names[i], ages[i], addresses[i]);
}
//print statement for chart
System.out.println(chart);
}
}

Trending nowThis is a popular solution!
Step by stepSolved in 2 steps

- how to build a bookstore database with Entities for Tables Book Authors Bookstore Members Sales transaction Inventoryarrow_forwardThe SQLiteOpenHelper and SQLiteCursor classes are described, with a focus on how they may be used to perform create, read, update, and delete (CRUD) actions on a SQLite database.arrow_forwardTask 1:Create a database Entity and Relationship Diagram (ERD) for the following application:Please include answer with detailed explanationKhair Application: The Application idea: It is a mobile application called (Khair) to help people. This assistance is moral, material. This assistance is also provided by good people in our community. Example to understand the Application idea more: For example, a person urgently needs a medical chair or bed and does not have the ability to purchase what he needs. The medical chair or bed is requested through the application, and whoever has what he requests initiates the request through the application’s messages and determines the meeting place. Application models (page): Login included: login registration login included: user name password New registration included: name E-mail Password phone number date National Identification Number Home page included: Request - applicant name - address - send message Messages list form included: list of…arrow_forward
- The following three tables make up a simple reservation system for a small campground. The database should allow for a camper to make multiple reservations for future dates and for a camping spot to have several reservations for upcoming visits. Table: Camper CAMPER_NUMBER 1000 1001 1002 1003 CAMPER_LAST_NAME Jones Schmidt Williams Cooper CAMPER_FIRST_NAME Jamie Pat Clifford Amanda CAMPER_ADDRESS 1278 Essex Pl 4954 Spangled Way 956 Segull Lane P. O. Box 998877 CAMPER_CITY Birmingham El Paso Portland Portsmouth CAMPER_STATE AL TX ME OH CAMPER_ZIP_CODE 45251 79919 4108 45662 CAMPER_DRIVERS_LICENSE JJ998743-98 87632434 WIL885123 765A876B897 CAMPER_EMAIL jjones@somewhere.com patwonderfu34l@nowhere.net williams98342@foomail.com coopera@nowhere.net Table: Spot SPOT_NUMBER 101 102 103 104 SPOT_NAME The Pines The Glade Teardrop Spot Tent In Trees…arrow_forwardAssumptions: You can make the following assumptions in this project. The database stores information about houses, each with a house ID, address, and zip code. The database stores information about person, including person ID, house ID where the person lives, person name, phone number, and status where 1 means currently tested positive (i.e., the most recent test result is positive), 0 means currently tested negative (i.e., the most recent test result is negative), and null (no test so far so status is unknown). The database stores information about a person's all past tests, including person ID, test date, and result (1 means positive and 0 negative). The database stores information about events (could be gathering, party, etc.). Each event has an event ID, event name, date, and address. The database stores information about a person participated in an event. The database stores information about flights, including flight ID, flight date, flight number (a varchar type e.g.,…arrow_forwardSportTech Events. SportTech Events SportTech Events puts on athletic events for local high school athletes. The company needs a database designed to keep track of the sponsor for the event and where the event is located. Each event needs a description, date, and cost. Separate costs are negotiated for each event. The company would also like to have a list of potential sponsors that includes each sponsor’s contact information, such as the name, phone number, and address. Each event will have a single sponsor, but a particular sponsor may sponsor more than one event. Each location will need an ID, a contact person, and a phone number. A particular event will use only one location, but a location may be used for multiple events. SportTech asks you to create a Conceptual Entity Relationship Diagram from the information described above.arrow_forward
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY





