You are required to complete the given code segment. a) Given a Java class named ValidateBean.java with data members and methods. Complete the given code segment for getter method and validate() method in the ValidateBean.java. package login; public class ValidateBean { } String name, password; public ValidateBean(){ } public void setName(String name){this.name = name; } public String setPassword (String password) {this.password = password;} //i)get method for name and password // 2 marks public String validate(String n, String p) //ii)implement the validate name and password // 2 marks }
Q: Are you in agreement with Mukherjee's argument that the foundation of sustainable futures may lie in…
A: Do you agree with a Mukherjee that human rights-based science, technology, and development can…
Q: What are the most common warning signals that a laptop's OS has been tampered with, perhaps…
A: Introduction: Pop-up windows will appear often and at random, directing you to an unsafe website…
Q: How can the efficiency of a hash table be enhanced when compared to a linear list? What may be the…
A: Given an assortment of things, a hash capability that maps every thing into a special opening is…
Q: One of the greatest advantages of multiprocessor systems is the increased freedom they provide their…
A: Introduction A straightforward microprocessor made of a two-dimensional substance closely related to…
Q: What is a file manager? Describe the Windows Explorer application. You should provide some places to…
A: According to the information, we must explain file manager and Windows explorer. Windows has a file…
Q: Jump to level 1 Given string userString on one line, character charToFind on a second line, and…
A: The JAVA code is given below with output screenshot
Q: Name 4 uses of ICT in our daily lives and explain
A: Communication: Through numerous channels including email, instant messaging, social networking, and…
Q: Please, if you are able to do so, explain the reason why CRT displays often have a higher refresh…
A: Introduction: This is true because the typical refresh rate of LCD panels is much over the "flicker"…
Q: Explain how the ownership of a trademark might come into direct conflict with the constitutionally…
A: Introduction: A trademark is a distinguishing sign, design, or phrase that distinguishes a product…
Q: The first time you power on your computer, you won't hear the hard drive spinning or see the lights…
A: Introduction: The computer is a device that can receive, process, store, and output data. It can be…
Q: How can the efficiency of a hash table be enhanced when compared to a linear list? What may be the…
A: Answer: Both the hash table structure and the linear list structure are used as data formats for…
Q: An operating system is comprised of three user processes, and each of these user processes uses a…
A: Each of the three user processes in an operating system consumes two units of resource R. The…
Q: If the BIOS already has the necessary code to allow the operating system to interact with the…
A: Introduction: Only the code necessary for the computer to communicate with a small number of its…
Q: - x: int -y: int - Point + Point() + Point (xVal: int, yVal: int) + getX(): int + getY(): int +…
A: Here I have created the class Point with the data members and defined the function as per the…
Q: What does it mean when someone says they have a "Access Point" for their WiFi connection? Have you…
A: A WLAN, or wireless local area network, is created by an access point, typically in an office or big…
Q: Describe current cloud computing applications and how they have benefited the globe as a whole
A: Cloud infrastructures support environmental proactivity by reducing paper waste, increasing energy…
Q: Accurately identifying a multiprocessor system requires intimate familiarity with the interplay…
A: A system with many processors also includes a channel for their intercommunication. A typical kind…
Q: Using illustrations to illustrate the differences between scalar and superscalar processors might be…
A: Scalar and superscalar processors are two of the many varieties of computer processor hardware that…
Q: Even though I have updated the BIOS on my laptop and all of the components are receiving power, I…
A: A lack of display on a laptop might be caused by a number of factors, even if the BIOS has been…
Q: What are some common sense approaches to firewall administration? Explain.
A: Common sense approaches to firewall administration include:
Q: Identify the many different kinds of threats that HTTPS protects against, as well as the mechanism…
A: HTTPS is a protocol that is used in websites to protect them from users who are not allowed to…
Q: When designing an open hash table with appropriate functionality, keep the following points in mind:
A: Introduction Lookup table: Hash tables are used in hashing to store information in an array format,…
Q: Would you be able to assist in explaining the foundations of the creation and functioning of a cache…
A: Answer: We need to explain the what is the creation and function of the cache memory . so we will…
Q: It's possible to tell scalar CPUs from from superscale ones by using examples. The length of time…
A: It's possible to tell scalar CPUs from from superscale ones by using examples. The length of time…
Q: As a result of recent technical breakthroughs, practically all of today's home appliances may…
A: You can obtain a competitive advantage in the market by utilizing technological breakthroughs…
Q: If many subnets can be set up on a single switch, and if users on separate subnets cannot interact…
A: To route between various Vlans, you need a router. Additionally, those two Vlans cannot share the…
Q: Write two Python functions to find the minimum number in a list. The first function should compare…
A: I have provided PYTHON CODE along with CODE SCREENSHOT and OUTPUT SCREENSHOT-------------
Q: Complete the Clothing class, the class should have the following instance variables, constructor(s)…
A:
Q: The first time you power on your computer, you won't hear the hard drive spinning or see the lights…
A: Introduction Central Processing Unit, or CPU, is the term for the bulk of the computer's hardware…
Q: After determining which individuals have hit a brick wall via the process of identifying those…
A: Introduction: A deadlock happens when two computer programmes that share the same resource get…
Q: If you power on your computer for the very first time and don't see any indication lights or hear…
A: Introduction CPU stands for Central Processing Unit, and it is the computer's brain, consisting of…
Q: There are several different approaches that may be used in order to authenticate communications
A: Passwords: A string of characters that a user enters to verify their identity. Two-factor…
Q: If so, how has WiFi contributed to the development of computers in general?
A: Given: Computers, tablets, smartphones, and other devices may connect to the internet via Wi-Fi…
Q: What can you do to make sure that your computer doesn't get hurt by voltage spikes that come out of…
A: Given: In the context of WiFi, what does the phrase "Access Point" mean? Do you know what has to be…
Q: 1. A router receives a packet with destination address (222.186.114.16) Show how it finds the…
A: IPv4 address are consist of 32 bits. A unique identifier for computers connecting to a network is an…
Q: Explain in detail why my computer is so slow to start up. I would be extremely appreciative.
A: Answer: Introduction: Dealing with a slow computer is quite a frustrating thing that every user can…
Q: Is the number of linked lists in a hash table of size m constant? For the life of me, I have no clue…
A: A hash is a group of characters used to distinguish one object from another that appear to be the…
Q: If these three conditions aren't satisfied, there's no way a network can thrive and live up to its…
A: Definition: Genuine interest in their connections is shown in successful networking relationships,…
Q: Systems with many processors are more flexible and provide other advantages as well. However, this…
A: Two-dimensional materials are flexible, which means they can be made into wearable devices or…
Q: If there is a difference between logical caching and physical caching, what precisely does that…
A: Each process has its page table, which keeps track of the frame number for each page number. When a…
Q: What are the most common warning signals that a laptop's OS has been tampered with, perhaps…
A: The answer is given in the below step
Q: ifi, what precisely does it mean to refer to something as a "Access Point"? In what specific steps…
A: Wifi Computers, tablets, cellphones, and other devices can all be connected to the internet using…
Q: What kinds of problems may be solved by using the dynamic programming methodology?
A: DYNAMIC PROGRAMMING : - An algorithm design method where we separate a problem into smaller…
Q: What is the most significant function of a firewall? Right present, I'm working on some packet…
A: Introduction: A firewall is a network security system that monitors incoming and outgoing network…
Q: What use do device drivers serve if the BIOS already has the code that enables the operating system…
A: Device drivers are necessary to allow your computer to interface and interact with specific devices.
Q: How can you make sure that power surges won't hurt your computer? What other steps can you take to…
A: The answer is discussed in the below step
Q: Inquire about the relevance of mobile devices and cloud computing, and compare and contrast the two.…
A: Introduction: Cloud computing supports the storage and organisation of our data and information,…
Q: When it comes to wifi, what precisely does it mean to refer to something as a "Access Point"? In…
A: A wireless access point, or access point for short, is a point that provides wireless connectivity…
Q: ur key investigative questions ready to ask when a customer phones in with the complaint, "My…
A: Introduction: The most popular hacking method used today is to display a false virus warning on your…
Q: Cathode ray tube, or simply "cathode ray tube," refers to the display often used in desktop…
A: A cathode ray tube (CRT) is an older type of display technology that was commonly used in desktop…
Please send me answer of this question immediately and i will give you like sure sir
Step by step
Solved in 2 steps
- For the following four classes, choose the correct relationship between each pair. public class Room ( private String m type; private double m area; // "Bedroom", "Dining room", etc. // in square feet public Room (String type, double area) m type type; m area = area; public class Person { private String m name; private int m age; public Person (String name, int age) m name = name; m age = age; public class LivingSSpace ( private String m address; private Room[] m rooms; private Person[] m occupants; private int m countRooms; private int m countoccupants; public LivingSpace (String address, int numRooms, int numoccupants) m address = address; new int [numRooms]; = new int [numOceupants]; m rooms %3D D occupants m countRooms = m countOccupants = 0; public void addRoom (String type, double area)JAVA Language Caesar Shift Question: Modify the Caesar class so that it will allow various sized shifts to be used, instead of just a shift of size 3. (Hint: Use an instance variable in the Caesar class to represent the shift, add a constructor to set it, and change the encode method to use it.) import java.util.*; public class TestCipher { public static void main(String[] args) { int shift = 7; Caesar caesar = new Caesar(); String text = "hello world"; String encryptTxt = caesar.encrypt(text); System.out.println(text + " encrypted with shift " + shift + " is " + encryptTxt); } } abstract class Cipher { public String encrypt(String s) { StringBuffer result = new StringBuffer(""); // Use a StringBuffer StringTokenizer words = new StringTokenizer(s); // Break s into its words while (words.hasMoreTokens()) { // For each word in s…Java- Suppose that Vehicle is a class and Car is a new class that extends Vehicle. Write a description of which kind of assignments are permitted between Car and Vehicle variables.
- JAVAclass: Main.java, Quadratic.java, TestQuadratic.java Create a class called Quadratic for representing a one-variable quadratic expression of the form: ax2 + bx + c a,b and c here are the coefficients. The class should contain the following methods: * A constructor that accepts values for a, b, and c. * public double getA() * public double getB() * public double getC() * public double evaluate (int x) * will return the value of the expression at point x * public double discriminant() - that will return (b2 - 4ac) * public boolean isImaginaryRoots() - roots are imaginary if (b2 - 4ac) < 0 * public boolean isRealRoots() - roots are real if (b2 - 4ac) >= 0 // these methods can only be invoked if the roots are not imaginary * public float firstRoot() * public float secondRoot() * public boolean isPerfectSquare(); // If the first and second roots are equal * Try to override the toString methods * Write a sample main program that will work as shown below. Example output:…Help of what these errors mean. In C# • Create a Class, named Student, to hold properties of Student Last Name, Student First Name, Student ID (9 digits), Course Prefix and Number, and the tests (Test 1, Test 2, Test 3, Test 4). Create appropriate setter and getter accessors, and constructors. Use access modifiers. Example: First Name : Pat Last Name : Smythe Student ID : ABC111333 Course Prefix : CIST Course Name : 2431 Test 1 : 100 Test 2 : 90 Test 3 : 80 Test 4 : 88 • Prompt the user for the Student Last and First Name, Student ID, Course Prefix and Number and the tests. • Include at least one exception handling function. • Use an array to store the 4 test grades. • Use a looping structure to populate the array. • Calculate the numeric average based upon the 4 equally-weighted numeric grades. • Display all the data for each of student using a looping structure. • Display the numeric average for each student. • Create a function that will convert the numeric average to a…Define a java Name class with attributes: String firstname, middle name, lastname. Include the following methods: - A constructor with 3 parameters. Initialize the 3 member variables to the parameters being passed. Also, include the default constructor. - getter and setter methods for all attributes - override toString method Define a class called DebitCard. A debit card has a card number, Name and balance. a) Include a constructor with 3 parameters. Initialize the 3 member variables to the parameters being passed. Also, include the default constructor. b) Include getters/setters for all attributes. c) Add the following member functions: float inquireBalance() float depositCash(float amount) //increases the balance with amount boolean withdrawCash(float amount) // returns true if sufficient amount is available for withdrawal and decreases the balance by amount float interest(float rate) //calculates the interest rate incurred. Assume the parameter rate is considered as…
- Define a java Name class with attributes: String firstname, middle name, lastname. Include the following methods: - A constructor with 3 parameters. Initialize the 3 member variables to the parameters being passed. Also, include the default constructor. - getter and setter methods for all attributes - override toString method Define a class called DebitCard. A debit card has a card number, Name and balance. a) Include a constructor with 3 parameters. Initialize the 3 member variables to the parameters being passed. Also, include the default constructor. b) Include getters/setters for all attributes. c) Add the following member functions: float inquireBalance() float depositCash(float amount) //increases the balance with amount boolean withdrawCash(float amount) // returns true if sufficient amount is available for withdrawal and decreases the balance by amount float interest(float rate) //calculates the interest rate incurred. Assume the parameter rate is considered as…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).Write a code for a banking program.a) In this question, first, you need to create a Customer class, this class should have:• 2 private attributes: name (String) and balance (double)• Parametrized constructor to initialize the attributes• Methods:i. public String toString() that gives back the name and balanceii. public void addPercentage; this method will take a percentage value andadd it to the balanceb) Second, you will create a driver class and ask the user to enter 6 customers’ informationand then you will create an array of Customer objects.c) Then you use this array used for various operations as shown in the output.• Using the array of customer objects, you need to search for all customers whohave less than $150• Using the array of customer objects, you need to get the average balance of thebalances in this array• Using the array of customer objects, you need to get the customer with thehighest balance and lowest balance• Using the array of customer objects, you need to show all…
- Task 2: General AbstractsFor this task you will be asked to create the Java classes described in the UMLdiagram in Task 1.Instructions1. The class Person has the following implementations in addition to thosespecified above:• the dateOfBirth attribute is of type java.util.Date• public getter methods for the attributes• a public constructor Person with the following method signature:public Person(String idNumber, String name, Date dateOfBirth)• declare an abstract compareTo method in Person with the followingsignature:public int compareTo(Person p);2. The class called VaccineRecord has the following extra details:• the enum called VaccineType has the following possible values:JJ,AZ,MD,PF• the public constructor for the VaccineRecord has the following signa-ture:public VaccineRecord(VaccineType type, String batchCode);• the date attribute is of type java.util.Date3. The class called Patient that extends the Person class has the followingadditional attributes and behaviours:• the public…java programming Robot Class : a robot has a name , located at a point with integer coordinates , faces north , east , south , or west and keeps a record of all its movements positions . The class has the following methods : A default constructor that initializes robot's name to " Unknown ” , location to ( 0,0 ) , direction to North , and travelled distance to 0 , and simulated movements to null . A constructor that given robot's name , starting location , and facing direction , Accessor methods to access all the instance variables and the simulated movements of the robot Mutator methods that change the instance variables to given values and they made the change for only suitable values . tumLeft and turn Right methods that change the direction of the robot but not the location move method that moves the robot by one unit in the direction it is facing . get Travelled Distance method that retums how many units has the robot moved .A GradeBook Example : In this example ,GradeBook class has one attributeand some methods to access this attribute data:public class GradeBook { private String cname; public void setName(String name){ cname=name;}public String getName(){return cname;} public void showMessage(){System.out.printf("Welcome to the Grade Book of %s \n", getName());}} //End of ClassTest Class Example that uses GradeBook class:public class GradeBookTest {public static void main(String[] args) { GradeBook b1=new GradeBook();GradeBook b2=new GradeBook(); System.out.printf("Course Name %s \n",b1.getName());System.out.printf("Course Name %s \n",b2.getName()); b1.setName("Object Oriented Programming");b2.setName("Data Structure using Java"); System.out.printf("Course Name %s \n",b1.getName());System.out.printf("Course Name %s \n",b2.getName()); b1.showMessage();b2.showMessage();}}//End class Exercise:You need to include another two attribute with name“marks” and “totalstudents” in GradeBook Class, Usefunctions to…