A programmer is designing a program to catalog all books in a library. He plans to have a Book class that stores features of each book: author, title, isOnShelf, and so on, with operations like getAuthor, getTitle, getShelf Info, and set Shelf Info. Another class, LibraryList, will store an array of Book objects. The LibraryList class will include operations such as listAll Books, add Book, removeBook, and searchForBook. The programmer plans to implement and test the Book class first, before implementing the LibraryList class. The program- mer's plan to write the Book class first is an example of (A) top-down development. (B) bottom-up development. (C) procedural abstraction. (D) information hiding. (E) a driver program.
Q: Servers can be designed to limit the number of open connections. For example, a server may wish to…
A:
Q: significance of software security in the software development process.
A: Software security is that the method of planning, building and testing software system for security.…
Q: Effectiveness and efficiency are the two characteristics a network must possess in order to operate…
A: Answer:
Q: What are the advantages of doing code reviews as part of the software development process' quality…
A: Having a senior developer look through your code is known as "code review." When the code is…
Q: Suppose that a machine provides instructions that can access memory locations using the one-level…
A: According to the question, we have to answer what sequence of page faults is incurred when all of…
Q: Consider the following scenario: a major project with a solid architecture, partly stated…
A: Software engineering divides software development into smaller, concurrent, or sequential phases or…
Q: Consider the parameter A used to define the working-set window in the working-set model. What is the…
A: Definition: A lower value of indicates that fewer frames will be assigned to a specific process out…
Q: Give a summary of the compiler and discuss its testability?
A: Testing Advice: The entire testability tip is as follows: 1. Use hidden language. 2. Use BNF to…
Q: What design principles behind the CBSE, which aims to provide software that is simple to grasp and…
A: Component-based software engineering (CBSE), sometimes known as components-based events (CBD), is a…
Q: Is encryption of the connection and data from end to end possible? What is the advantage? Describe a…
A: Please find the answer below :
Q: Assess the influence of cloud computing and Web 2.0 technologies.
A: Introduction: Network-based access to communication tools like calendars and emails is made possible…
Q: Is Data Model a positive or negative attribute?
A: Response to the prompt: The data model has various drawbacks, however the two biggest drawbacks are…
Q: An attacker attempts to change the Tag (the MAC) and the ciphertext while deploying a MAC (message…
A: MAC is likewise called tag. It is an instructive piece utilized by source and recipient for the…
Q: Most systems allow programs to allocate more memory to its address space during execution. Data…
A:
Q: What is the advantage of angle of arrival for estimating location?
A: The geolocation of mobile devices is an advancement of AoA(angle of arrival). The goal is to either…
Q: Q7. The output of the following code is 'University'. import re pattern = 'University' test string =…
A: RegEx Module A search pattern is defined by a character sequence known as a regex or regular…
Q: What is the root cause of bugs? How can a software bug enter a program? Provide a few examples.
A: A bug is a defect in a computer program or system that produces undesired or incorrect results.…
Q: Start with any positive number n. If n is even divide it by 2, if n is odd multiply by 3 and add 1.…
A: We need to write a code for the given scenario. *Language used is C++.
Q: Problem 7pin For the CRC error detection scheme, consider the 5-bit generator G = 10101, and suppose…
A:
Q: Explain the importance of quick software development and distribution. Why would it make sense,…
A: Most of the time, a client cannot wait longer for sales to be built and provided since delays in the…
Q: Why do video files need and use more storage space than other types of data?
A: What Is Video File Format? A sort of file format used to store digital video data on a computer…
Q: #include #include #include #include using namespace std::chrono; using namespace std; void…
A: Answer: We have written code in C++ programming language and first program names as vector.cpp and…
Q: What precisely does "web development trifecta" mean?
A: The "Web development trifecta," as these technologies are frequently referred to, may be combined to…
Q: Please draw a recursion tree also! And don't copy paste. 1. Write the recursive algorithm taught in…
A:
Q: Is Web service delivery a particular kind of technology?
A: A web interface for provisioning that is SOAP-based is provided by Provisioning Online Services…
Q: What is the meaning of the phrases "Internet of Things" (IoT) and "machine-to-machine" (M2M)?
A: IOT stands for "internet of things," where "things" refers to communication equipment that can…
Q: End-to-end encryption decryption may be problematic for application-level proxies. Provide a…
A: The network layer's main job is to connect everything from end to end. By sending a network layer…
Q: What is the meaning of the term busy waiting? What other kinds of waiting are there in an operating…
A:
Q: Exists an other method for Peter to avoid forgetting his password besides key recovery
A: A passphrase is a phrase that is similar in appearance to a password.On the other hand, passwords…
Q: It may be difficult for application proxies to interpret end-to-end encryption due of its…
A: Gateway at the application levelThis kind of device—technically a proxy and sometimes referred to…
Q: Why is compiler optimization necessary? How would you utilize one as a programmer? Exists a scenario…
A: Answer: We have explain complier code optimizer in brief explanation
Q: What do you consider to be the most important aspect of high-quality programming languages?
A: The response: The key components of an excellent programming language are its syntax, documentation,…
Q: Find all of the String methods, that may be used to get a portion of a string from another string…
A: let us see the answer:- The answer is i) substr()
Q: Enumerate the features of intelligent behavior that Artificial Intelligence (AI) seeks to replicate.…
A: Artificial intelligence - (AI) is the ability of a computer or a robot controlled by a computer to…
Q: Describe the implementation of the web server's native authentication and authorisation services and…
A: Answer: 1. Its security measures are as follows: In the improved version, a new Security Context…
Q: When a web client requests access to protected resources on a web server, demonstrate the…
A: Introduction: You may combine declaratively made asynchronous non-blocking requests utilising Web…
Q: Q8 Using only R studio programing: Create one function that can convert the number base 10 to number…
A: Here is the r code: See below steps for code and output:
Q: Python program that will ask a user for a number, then determine whether it is a prime number or no
A: Write a Python program that will ask a user for a number, then determine whether it is a prime…
Q: What precisely does "web development trifecta" mean?
A: By web development trifecta, we mean HTML5, Cascading Style Sheets, and JavaScript are technologies…
Q: Why do Solaris, Linux, and Windows 2000 use spinlocks as a synchronization mechanism only on…
A:
Q: Q5. The output of the following code is 'tiangong@tiangong.edu.cn'. import re pattern = '[a-zlt ?…
A: Here is the answer below:-
Q: Examine the advantages of using computers in classrooms.
A: introduction : In the present world, any classroom you teach in is probably going to have at least…
Q: Despite the fact that software is often linked with errors, the aerospace industry has developed…
A: Traditional examples of safety-critical software systems are aircraft, automobiles, missile systems,…
Q: Do you know the many applications of SSH? Include all SSH acronyms and their definitions.
A: Given: An unsecure network can be used by servers to interact securely using the encryption protocol…
Q: Do you know the most essential Compiler Phases components
A: A compiler is a program that transforms source code written in a programming language into another…
Q: When a web client requests access, native authentication and authorization services are used to…
A: Two reasons for using layered protocols: 1) You can make changes in one layer without affecting the…
Q: Consider the parameter A used to define the working-set window in the working-set model. What is the…
A:
Q: A system administrator is responsible for ensuring that the software team's changes do not affect…
A: Here are four implementations that will reduce production downtime before the upgrades are put in…
Q: List and describe the qualities of the perfect cryptographic hash function.
A: Hash function for cryptography The term "cryptographic hash function" refers to a hashing algorithm…
Step by step
Solved in 2 steps
- In java A supermarket wants to reward its best customer of each day, showing the customer’s name on a screen in the supermarket. For that purpose, the store keeps an ArrayList.Create a class customer having id, name, gender, and bill provide appropriate getters/setters and constructors also provide toString method.In the Store class, make an ArrayList of customers, store name, and address implement methods public void addSale(Customer c) that will add customers to the arraylist.public void RemoveCustomer(int id);public void UpdateCustomerRecord(int Id);public displayAll();public String nameOfBestCustomer() to record the sale and return the name of the customer with the largest sale. public ArrayList nameOfBestCustomers(int topN) so that it displays the top customers, that is, the topN customers with the largest sales, where topN is a value that the user of the program supplies. Write a program that prompts following menu and ============================================…A supermarket wants to reward its best customer of each day, showing the customer’s name on a screen in the supermarket. For that purpose, the store keeps an ArrayList.Create a class customer having id, name, gender, and bill provide appropriate getters/setters and constructors also provide toString method.In the Store class, make an ArrayList of customers, store name, and address implement methods public void addSale(Customer c) that will add customers to the arraylist.public void RemoveCustomer(int id);public void UpdateCustomerRecord(int Id);public displayAll();public String nameOfBestCustomer() to record the sale and return the name of the customer with the largest sale. public ArrayList nameOfBestCustomers(int topN) so that it displays the top customers, that is, the topN customers with the largest sales, where topN is a value that the user of the program supplies. Write a program that prompts following menu and ============================================…Java In this assignment, you will practice using an ArrayList. Your class will support a sample program that demonstrates some of the kinds of operations a windowing system must perform. Instead of windows, you will be manipulating “tiles.” A tile consists of a position (specified by the upper-left corner x and y), a width, a height, and color. Positions and distances are specified in terms of pixels, with the upper-left corner being (0, 0) and the x and y coordinate increasing as you move left and down, respectively. You won’t have to understand a lot about tiles and coordinates. That code has been written for you. You are writing a small part of the overall system that keeps track of the list of tiles. You are required to implement this using an ArrayList. The only method you need to use from the Tile class is the following: // returns true if the given (x, y) point falls inside this tile public boolean inside(int x, int y) Your class is to be called TileList and must…
- Complete the Course class by implementing the printRoster() method, which outputs a list of all students enrolled in a course and also the total number of students in the course. Given classes: Class Course represents a course, which contains an ArrayList of Student objects as a course roster. (Type your code in here) Class Student represents a classroom student, which has three fields: first name, last name, and GPA. (Hint: toString() returns a String representation of the Student object.) Ex: If the following students and their GPA values are added to a course: Henry Cabot with 3.5 GPABrenda Stern with 2.0 GPAJane Flynn with 3.9 GPALynda Robison with 3.2 GPA then the program output is: Henry Cabot (GPA: 3.5) Brenda Stern (GPA: 2.0) Jane Flynn (GPA: 3.9) Lynda Robison (GPA: 3.2) Students: 4 course.java import java.util.ArrayList; // Class representing a studentpublic class Course { private ArrayList<Student> roster; // Collection of Student objects public Course() {…To demonstrate working with ArrayLists, we will be working with four source files: a Dessert class, two classes that extend Dessert called IceCream and Cake, and a TestDessert class. The TestDessert class contains a main() method that declares an ArrayList to hold Dessert objects. This ArrayList is referenced by the variable named "list". Examine TestDessert's main() method and notice the four comments. You are to implement code that accomplishes the tasks described in each step. For step 1, you are to populate the ArrayList with 10 IceCream and Cake objects. These objects should be inserted into the ArrayList at random. This means each run of the program should produce an ArrayList with different proportions of IceCream and Cake objects. After this operation, the ArrayList should contain 10 total objects (IceCream and Cake objects). Display the ArrayList after the operation. For step 2, if the first and last dessert in the ArrayList are different (one is IceCream and the other is…Using java: Your task is to implement a class, IntegerSet, that contains only integers, given the specification below. public class IntegerSet { // Hint: probably best to use an array list. You will need to do a little research private List<Integer> set = new ArrayList<Integer>(); // Default Constructor public IntegerSet() { } // Clears the internal representation of the set public void clear() {…}; // Returns the length of the set public int length() {…}; // returns the length /* * Returns true if the 2 sets are equal, false otherwise; * Two sets are equal if they contain all of the same values in ANY order. */ public boolean equals(IntegerSet b) {…}; // Returns true if the set contains the value, otherwise false public boolean contains(int value) {…}; // Returns the largest item in the set; Throws a IntegerSetException if the set is empty public int largest()…
- Write a java program that uses an ArrayList object to store the following set of names in memory: [Steve, Tim, Lucy, Pat, Angela, Tom] Now write some more code so that the same ArrayList object is augmented with the name 'Steve' after the name 'Lucy' After the ArrayList object has been augmented with the new name, display the original and new lists on the console (as shown below), to verify that the new name is positioned correctly in the list.Consider the IntArrayBag collection class that we discussed in class, Draw the data array after executing the following code and show the values that are stored in each cell of the array. Show the array four times at the points labelled A, B, C, and D IntArrayBag bag1 = new IntArrayBag(5); bag1.add(10); bag1.add(5); bag1.add(20); bag1.add(13); //Point A bag1.remove(5); //Point B bag1.add(8); bag1.remove(10); //Point C bag1.add(30); //Point D Exercise 4: search methodGiven an JavaScript object list of books that each have a pages attribute to define the number of pages in the book, find the sum of all the pages in the object list of books using recursion. Keep in mind: The input list object may be completely empty (ex. {}) The next attribute may not be defined function getPageCount(list) {// your code here// returns an integer}Example test case:Input: {"book":"A","pages":1,"next":{"book":"B","pages":2,"next":{"book":"C","pages":3,"next": null}}}Output: 6Reasoning: 1 + 2 + 3 pages
- In Java, give an example of a method that requests Name input. Then show another method, in the same application, that searches an object array in an object class for duplicates and reports an error when there is one. How would you utilize the second method with the first one?Write a class TouristSpot that has the data members; name of tourist spot, state in which it lies. Create an array list of n places and write a function that takes array list as an argument to identify a state that has more than one tourist spot. Java ProgramWrite a Java program that would resemble a payroll system. An input window which will accept the employee number and the number of days of rendered work. A 2d-arraylist that contains the employee number and the rate per day is to be searched and used to compute for the gross salary. Gross salary is computed by multiplying the number of days of rendered work by rate per day of the particular employee. If the gross salary computed is greater than 100,000 the tax is 20% of the gross salary, otherwise, the tax is 10%. Deduct the tax from the gross salary to get the net pay. Display the employee number, gross salary, tax deduction, and the net pay in an output window. Design your own input/output windows. ( USE OOP CONCEPT AND JOPTION)