oneBookEntry that has fields for a person’s name and phone number. The class should have a constructor and the a
Q: Combination of looping statement and conditional statement in C LANGUAGE. Provide: syntax, example…
A: C Language:- With a static type system, C is an imperative procedural language that supports…
Q: In the following code, what must have been true if "D" gets printed. if x > y: print("A") else: if y…
A: Given code contains four variables that are w, x, y, z. The program contains if else conditions in…
Q: 7. List all customers who were referred to the bookstore by another customer. List each customer’s…
A: The answer to the question is given below:
Q: Binary to String, Given a real number between 0 and 1 (e.g., 0.72) that is passed in as a double,…
A: When otherwise ambiguous, we'll use the subscripts x2 and x10 to indicate whether xis in base 2 or…
Q: What type of data breach did Facebook and Cambridge Analytica suffer?
A: A data breach comes when sensitive information is exposed to unauthorised parties, whether on…
Q: Do a bit of research, and pick a side of the argument. Are you information sharing pro? or con? and…
A: According to the information given:- We have to research on information sharing with pro and cons of…
Q: What is a zombie? A zombie is an entry in the The entry records the information needed by a call to…
A: Zombie is a process which is essentially removed from the system as defunct and that completes their…
Q: Is fault tolerance a significant concern on a personal basis for someone using one home computer?…
A: The capacity of a system (such as a computer, network, or cloud cluster, for example) to continue…
Q: Describe the software and hardware that are used in the process of defining project management in…
A: Information Technology: Using computer systems or other electronic devices to retrieve information…
Q: Write the HTML code for the following webform Admission Form Please select your preferred Subjects:…
A: HTML code: <!DOCTYPE html> <html> <body> <h1>Admission Form</h1>…
Q: What are the types of Computer Worms?
A: INTRODUCTION: Computer worm: A computer worm is a single piece of malicious software that may be…
Q: Assume that the mail server at your employer sends you a notification alerting you that the password…
A: Solution: Phishing attacks are a sort of virus that allow for the hacking of passwords. In these…
Q: twosComplementBinaryToDecimal function This function takes a static array and bit pattern length as…
A: Two's complement is a mathematical operation that converts a positive binary number to a negative…
Q: A multiple choice question is most similar to: O Multi-way decision Simple decision Two-way decision…
A: Let's understand one by one choice in the question . Simple decision : The simple decision is…
Q: Consider where you stand in a value chain and act accordingly. What is the purpose of the value…
A: The value chain consists of a succession of actions used to turn input into output in a manner that…
Q: Explain what is meant by the phrase "system software."
A: System software and application programmes are the two primary forms of computer software. System…
Q: ake a relational database schema diagram:
A: Description: 1- A database schema describes how statistics are methodical inside a relational…
Q: Give some instances of each of the four potential threats to network security that should be watched…
A: The four potential threats to network security are: Phishing Man in the middle attack Ransomware…
Q: Provide at least two programming examples where using many threads yielded better performance than…
A: There are Single thread and multi thread programming.
Q: 1. Develop a program in Python to compute the following (x + y)² y Result=. 2 y 2*24
A: NOTE: As per bartleby guideline, we are allowed to solve first question only if there are multiple…
Q: If there is an error, a Modbus slave device will send a O Modbus Error Message Checksum O Modbus…
A: Modbus slave device is a privileged Modbus device on the network which serves as a gateway by…
Q: Discuss
A: A regular expression can be characterized as a language or string acknowledged by a finite automata.
Q: When a thread is created, what resources are used?
A: The process is referred to as a lightweight process, and thread is a component of it. There must be…
Q: Construct a C++ menu-driven program that will utilize the assigned sorting algorithm to your group.…
A: Given: Construct a C++ menu-driven program that will utilize the assigned sorting algorithm to your…
Q: True or false, and please provide a short explanation for how you feel about each of the following…
A: Explanation: SR : It is a selective repetition technique that is used in the OSI model's data…
Q: f a work mobile device is lost or stolen, several different security features can be used to locate…
A: The mobile devices if stolen there are several kinds of the security features which can be used for…
Q: Analysis of the differences between web engineering and software engineering
A: Following are some distinctions between web engineering and software engineering: Web Development:…
Q: Analyze the virtualization and management of the underlying hardware using two of the hypervisors…
A: Introduction: The primary server components, such as the CPU, RAM, network, and disc drives, are…
Q: Please name three websites that utilize the MVC architecture, which enables users to choose between…
A: MVC Architecture: MVC is a structure for constructing web-based MVC applications. It executes user…
Q: How to Rotations work After the Node Is Inserted in data structure?
A: Rotations work After the Node Is Inserted in data structure given below:
Q: What are the three primary components that make up a computer?
A: Start: Machines have basic parts. Hardware, applications, programmers, data, and networking. No…
Q: 4. Determine which books customer Jake Lucas has purchased. Perform the search using the customer…
A: This question is from the subject database design and implementation. Using Sql we can solve this…
Q: computeUnsignedBinary function This function takes a static array, bit pattern length, and a…
A: Given: 1. computeUnsignedBinary function: This function takes a static array, bit pattern length,…
Q: QUESTION 4 Convert the following sequence of microoperations in the FETCH cycle into symbolic…
A:
Q: When scheduling data on a disk, why is rotational delay seldom taken into account?
A: Given: Disk Scheduling Algorithms are essential due to the fact that a single process is capable of…
Q: Compared to client-server architectures, what benefits do peer-to-peer networks offer?
A: There are mainly two types of network architectures that are: Client server architecture Peer to…
Q: Write Algorithm for Interchange Base Points Input : a group G; a base [131,132 ..... 13k] for G and…
A: procedure interchange( var B : sequence of points;vat S : set of elements;j : 1..k-1 );(* Given a…
Q: solve with Matlab Assignment vs. Equals is important in loops. An assignment is a = b and means…
A: Below I have provided a program for the given question. Also, I have attached a screenshot of the…
Q: What kind of information is stored in the various fields of a process control block?
A: The data structure known as the process control block is responsible for storing information…
Q: Suppose that a 16M x 16 main memory is built using 512K x 8 RAM chips and that memory is word…
A: Note: As per the company guideline we are suppose to answer only one question kindly post other…
Q: Explain each step Find Alice and Bob's secret number S, if g = 3, p = 17, A = 8, and B = 7
A:
Q: ASCII code in MBs. Size of memory is 250 MB. Write down the seque
A: The answer is
Q: It does not seem as if the ICMPv6 Neighbor Solicitations are being transmitted as part of a…
A: ICMPv6 Neighbor Solicitations seem to be relayed through multicast rather than broadcast.
Q: A C# program in Visual Studio Code. Your application will demonstrate the ability to retrieve 5…
A: Answer: We have done code in C# and also attached the code and code screenshot so we will see in the…
Q: 13.16.1: Overload salutation printing. Complete the second PrintSalutation function to print the…
A: Introduction: In this question, we are given a partial C++ program and need to write PrintSalutation…
Q: Detailed explanations of eight outstanding concepts in computer architecture are provided.
A: Computer architecture's Eight Great Ideas: Moore's law design Abstraction simplifies design. Fasten…
Q: Why is the technique known as a "store-and-forward network" no longer used in general communications…
A: Store-And-Forward Network: Delivery of high-quality data packets is ensured by store and forward…
Q: It is important to be aware of the distinction between programming in parallel and programming in…
A: All-Subset Regression: In certain circles, it is also referred to as all potential regressions or…
Q: Please Help In JAVA Here is the skeleton of a code for insertion sorting in a functional…
A: The given below code for insertion sorting in a java language.
Q: When a thread is created, what resources are used?
A: Given: The construction of a thread often requires fewer resources than the creation of a process…
This lab was designed to reinforce
- Declaring and initializing ArrayList.
- Add elements to the Arraylist.
- Display the content of the ArrayList.
Write a class name PhoneBookEntry that has fields for a person’s name and phone number. The class should have a constructor and the appropriate accessor and mutator methods. Then write a program that creates at least 5 PhoneBookEntry objects and stores them in an ArrayList. Use a loop to display the contents of each object in the ArrayList.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images
- Library class: Fields: books as arraylist to store all the books available in the library B3 B1 B2 В4 B5 Constructor: Library() } : No parameterized constructor to create the books object Methods: 1. addBook(Book bookobj): to add a new book to the arraylist; send the book object as a parameter to this method. 2. searchBook(String name): search a book by a given name in the arraylist. if exits print bookX found; otherwise print not found!!! 3. RemoveBook(String name): to delete a book object from arraylist by a given name: Hint: you need to use iterator class and remove method. Book class: Fileds: bookld, bookname. Constructor: two parameterized constructor that accepts name a parameter Book(int ID, String name) ..... Methods: 1. Accessor method to return the name of the book 2. Mutator method to change the id of the book. Use this Main method: in your program: public static void main(String args[]) { Library lib=new Library(); lib.addBook(new Book("b1")); lib.addBook(new Book("b2"));…Create a BowlingTeam class The class has 2 fields: a field for the team name and an array that holds the team members’ names. Create get and set methods for the teamName field. Add a setMember method that sets a team member’s name. The method requires a position and a name, and it uses the position as a subscript to the members array. Add a getMember method that returns a team member’s name. The method requires a value used as a subscript that determines which member’s name to return. Create a BowlingTeamDemo class. In the main method include the following: Declare 2 variables: name and a constant NUM_TEAMS that holds 4 Bowling Team objects. Declare and instantiate an array teams of BowlingTeam objects. Using nested for loops, prompt the user to enter the 4 team names and enter the team members’ names. Using another nested for loop, output each team’s name and their team members’. Output should look like: Members of team The Lucky Strikes Carlos Diego Rose Lynn Members of team I…Create a MagicalPotionShop class, this class needs a field called potions. The potions field should be an ArrayList of the type Potion. Create a MagicalPotion class, this class needs two fields one called name, the other called effect. Both of the fields should be Strings.
- Task 4. Utility classes Implement a Menu-Driven program of ArrayList class using the above scenario and perform the following operations. Create an object of ArrayList class based on the scenario with explanations of the method Create a method that will allow inserting an element to ArrayList Class based on the scenario. The input field must be validated as Create a method to delete specific elements in the ArrayList with explanations of the methodUsing java Hamburger ClassWrite a Hamburger class with the following six attributes:• bun - the type of bun the burger will be on• patties - the number of patties on the burger• cheese - whether or not the burger will have cheese• price - the price of the burger• toppings - an array of five toppings; it will need to start empty Write getters/setters for all attributesexcept the toppings array.Your constructor should create a single on white with no cheese and no toppings with a price of $2.99.Your class should include the following methods in this order, please: addCheese - this method has noparameters that adds cheese to the burger and increases the price by 75 centssuperSizeIt - this method has no parameters and adds a patty to the burger and increases the price by 1.50addToppings - this method would present the user with at least five toppings (your choice) stored in an array of Stringobjects. If the user indicates the wants the item, store the String in the toppings array. There…17. Phone Book ArrayList Write a class named PhoneBookEntry that has fields for a person's name and phone number. The class should have a constructor and appropriate accessor and mutator methods. Then write a program that creates at least five PhoneBookEntry objects and stores them in an ArrayList. Use a loop to display the contents of each object in the ArrayList.
- Rectangle Object Monitoring Create a Rectangle class that can compute the total area of all the created rectangle objects using static fields (variables). Remember that a Rectangle has two attributes: Length and Width. Implement the class by creating a computer program that will ask the user about three rectangle dimensions. The program should be able to display the total area of the three rectangle objects. For this exercise, you are required to apply all OOP concepts that you learned in class. Sample output: Enter Length R1: 1 Enter Width R1: 1 Enter Length R2: 2 Enter Width R2: 2 Enter Length R3: 3 Enter Width R3: 3 The total area of the rectangles is 14.00 Note: All characters in boldface are user inputs.JavaDriver Program Write a driver program that contains a main method and two other methods. Create an Array of Objects In the main method, create an array of Food that holds at least two foods and at least two vegetables. You can decide what data to use. Method: Print Write a method that prints the text representation of the foods in the array in reverse order (meaning from the end of the array to the beginning). Invoke this method from main. Method: Highest Sugar Food Write a method that takes an array of Food objects and finds the Food that has the most sugar. Note that the method is finding the Food, not the grams of sugar. Hint: in looping to find the food, keep track of both the current highest index and value. Invoke this method from main.Computer Science You are required to develop a small chatting application where two or more friends can communicate each other through messages. Create a class Message which has Date d, and message (string). Provide getters/setters, constructors, toString. Create a class Friend having String name, String contact, email and ArrayList of Messages provide getters/setters, constructors, toString addMessage(Message m) method which will add new message to the list. Provide following options to the user using JFrame. Login which will help user login to the application. View Friends (Display List of All Friends) View Messages ( This should display all message of a Friend) Send message (This should ask for friend name and message match the friend name and write that message to the array list).
- Elevator simulation. I need help fixing this class The Simulation Class initializes and holds objects for Passengers, Elevators, and Floors. It reads and parses input files to create the necessary objects and sets the number of simulation iterations. The class also has methods to move the elevators up and down the building, as well as to pick up and drop off passengers. public class Simulation { private int numFloors; private ArrayList<Passenger> passengers; private ArrayList<Elevator> elevators; private ArrayList<Floor> floors; private int numIterations; public Simulation(String inputFile) throws FileNotFoundException { passengers = new ArrayList<>(); elevators = new ArrayList<>(); floors = new ArrayList<>(); // Read input file and initialize simulation parameters Scanner scanner = new Scanner(new File(inputFile)); while (scanner.hasNextLine()) { String line =…Create a class named "Hotel" (3 marks) - The class must have 4 attributes. (Choose any 4 attributes you want) - This class must have two constructors, Getter Methods, and Setter Methods. - toString() method should return the name of the hotel. In the main class that has the main method: - In the main method, Create 4 objects or more from the class Hotel and store them in a normal array. (3 mark) - Create an external method that takes the array as an argument. It will add all the elements of the normal array into an ArrayList. Then, call the method to test it and print all elements data from the ArrayListJava Programming: ConWay World Conway’s game of life is a simple simulation of life forms in a two dimensional grid. The ConwayCell implements the standard behavior of a call in Conway’s Game of Life. You only need to implement and test two new classes. You will create two different cells, derived from AbstractCell. 1. Alternating Cell The first class that you should create is a class named AlternatingCell. This is a cell that should alternate between being alive and dead with each generation. Add one or more of your AlternatingCells to your ConwayWorld. You can see how to add a cell in line 15 - 20 of Main.java. Give your AlternatingCell a unique display character when it is alive so that you can see it in your conway world. 2. Your own cell For the second cell you should feel free to implement any behavior that you want. If you are having trouble thinking of ideas then post up a question. You can add your custom cell in just a few places in the world, or you might choose to replace…