14.Specify the error in following program? public enum Enums NORTH, SOUTH, WEST, EAST; private Enums() System.out.println(1); class MainClass public static void main(String[] args) Enums dl = new Enums(); } O a. Have duplicate constants. O b. Have only private constructors. O c. Did not declare enum constants with any modifiers O d. Using 'new' operator.
Q: In software engineering, there are several data kinds. Discuss the differences between simple and…
A: The answer is given in the below step
Q: Why do we need computer hardware?
A: Computer hardware refers to the physical components of a computer system, such as the monitor,…
Q: Contrast and contrast various software test methods and their capabilities. It has been shown that…
A: When it comes to software testing approaches, there are several strategies or processes that are…
Q: lowing binary What isi height 11 12 3 2 6 00 3.
A: Answer
Q: Test the value of x if it is prime or not prime using MATLAB
A: ALGORITHM:- 1. Define the value of x. 2. Pass it to the function. 3. If the number if prime it will…
Q: 5- calculate the Standard deviation of the following sub image. * 10 6 10 7 6 7 4 4 Your answer
A: Answer in step 2
Q: a description of what a flip-flop circuit does and how it may be utilized Whether the circuit is a…
A: Description about what is flip flop does or what actually it means: Electronic flip flop circuits…
Q: Are you able to provide an explanation of the software development process metrics? Isn't it…
A: There are several metrics in the software development process: These are the metrics that are used…
Q: What are the two different kinds of services that the Internet offers to the apps that it hosts?…
A: The two types of services that the Internet gives to its users are: The Internet gives its…
Q: Explain two computer breakthroughs that have contributed to improve e-commerce efficiency.
A: Given: Computer technology has benefited both online e-commerce and the Internet. Voice Assistants…
Q: In what ways are enterprises able to employ cloud services without compromising their safety or…
A: The utilization of cloud resources is an essential component of what cloud computing is defined as…
Q: Draw deployment diagram using Rational rose software in payroll system
A: Using Rational rose and taking into consideration all required specifications,draw the following UML…
Q: Management wants to know what a database is and what its components are. How can you do this?
A: MANAGEMENT OF THE DATABASE: The database to management process primarily refers to the process of…
Q: Explain why read-only memory (ROM) is needed and what function it plays in the design of a computer…
A: Given: Explain why read-only memory (ROM) is needed and what function it plays in designing a…
Q: In software engineering, there are several data kinds. Discuss the differences between simple and…
A: In software engineering, there are several sorts of data. Here, we must cover two sorts of data:…
Q: Why are Software Standards referred to be Process Standards rather than Product Standards?
A: Given: In networking, architecture refers to the technology used, as well as the protocols and…
Q: In a study of patient travel time, it was shown that patients of color and the unemployed took…
A: Introduction: Under the heading "Academic Papers Reviewed and Discussed in This Edition of the…
Q: If you were troubleshooting a computer error code, what steps would you take?
A: Required: If you were troubleshooting a computer error code, what steps would you take? No…
Q: If this is the program is the result of what steps programming language Matlab if m = 3 and n = 5 24…
A: We need to use nested loops where outer loop is for each row and inner loop is for columns The value…
Q: Write the SQL 5. Insert 2 rows of data into the PURCHASE table PRODUCTID 65 LOCATION NEWARK…
A: Please refer below for your reference: Language used is SQL: INSERT INTO PURCHASE(PRODUCTID,…
Q: What is the IP range of this CIDR Notation 188.15.8.0/23 and also give the mask bits?
A: This question is related to Networking of IP Addresses.
Q: FOUR (4) applications of data mining and predictive analysis are listed and described.
A: Given: Any kind of data may be mined using data mining techniques, including those stored in data…
Q: Can you list and justify the many forms of single-cell WLAN setup/implementation?
A: Configuration of a single-cell wireless LAN: Figure 1 shows a single-cell wireless LAN, which means…
Q: Could you please explain what the back button performs and how it is connected to the information…
A: Answer: A task is a collection of activities that users interact with when trying to do something in…
Q: Explain how referential integrity is represented in relational model?
A: Referential integrity means the values of a column in one table is referred by another column in…
Q: What are the advantages of using Lee's method for Routing? Think about it from the perspective of a…
A: Given: Lee's algorithm prioritizes breadth. Queue stores the steps. Four stages are typical. 1. Add…
Q: To develop customized web pages that are suited to individual users' requirements, web servers…
A: Intro Client-side refers to the software that runs on a user's web browser, whereas server-side…
Q: Where can I get an explanation of the software development lifecycle?
A: Answer: Introduction: The software development lifecycle is the procedure that simply defines the…
Q: Consider the following array declaration in ‘C’: float a[100][100]. Assume that the main memory is…
A: Please refer below for your reference: In C float takes : 4bytes Base address =45 Given array float…
Q: What are the key differences between scheduling alternatives that are available for the short term,…
A: Process Scheduling is in charge of selecting processor processes based on a configuration method and…
Q: Design a Flowchart to solve the following problem specification. Read 10 grades from the user and…
A: Flowchart is a way to depict an algorithm pictorially.
Q: Describe the technologies used by Web servers to generate personalised Web pages that respond to…
A: Introduction: A client-side script is a programme that runs in the client browser. These scripts are…
Q: What is meant by "dirty data," and what are the FIVE (5) different places
A: Dirty data refers to data that is defined in the wrong situation as inconsistent, incomplete,…
Q: Why implementing a virtual private network (VPN) behind a firewall is a smart move. Why not…
A: There is a variety of persuasive evidence in support of combining a private network (VPN) with a…
Q: What are some of the greatest firewall management practices? Explain.
A: A Firewall is an network security device that screens and channels approaching and active…
Q: a description of what a flip-flop circuit does and how it may be utilized Whether the circuit is a…
A: Given: Flip-flops are sequential circuits that sample their inputs and alter their outputs…
Q: Layers a. presentation b. data management c. all of them are always on the client side. layer d of…
A: Introduction: The Presentation layer is the only layer that is always on the client side regardless…
Q: What is the difference between Linear and Quadratic probing in resolving hash collision? a. Explain…
A: First of all, Linear probing suffers from clustering but provides good cache performance. Easy…
Q: Web servers employ a range of technologies to generate customised web pages that are tailored to the…
A: Intro Client-side refers to the software that runs on a user's web browser, whereas server-side…
Q: Give a summary of any four Object-Oriented Programming (OOP) characteristics, with particular…
A: Introduction: Because object-oriented programming is a style of programming, not a tool, it remains…
Q: The term "personal computer" should be defined.
A: Intro Personal computers, PC, or, just plain PC, are the most widely used type of computer in the…
Q: List the reasons why a company would need firewalls to protect its physical assets.
A: We need to list reasons why a company would need firewalls to protect it's physical assets.
Q: When it comes to memory allocation, how does dynamic memory allocation work? Is it possible to…
A: Memory allocation can be done in 2 types- static memory allocation and dynamic memory allocation.…
Q: What are firewalls, and how are they used?
A: Introduction: A firewall is a network security device that monitors inbound and outbound traffic…
Q: Read the case study below and answer the questions that follow: Grand Villa Hotels which is the…
A: ANSWER:-
Q: What is the difference between centralised and parallel/distributed databases?
A: What is a distributed database? In a distributed database, two or more database files are located at…
Q: In what ways are a logical database structure and a physical database structure differentiated from…
A: The issue asks what the distinction is between logical and physical database structures. Here are…
Q: Explain the challenges to consider while deploying and maintaining web apps.
A: Intro The issues considered in the deployment and maintenance of the web application are listed…
Q: c) Given the following two methods from the List interface draw the final state of an initial empty…
A: ANSWER:-
Q: In software engineering, there are several data kinds. Discuss the differences between simple and…
A: Introduction: In software engineering, there are several data kinds. Discuss the differences between…
Correct and detailed answer. Do not copy from other websites
Step by step
Solved in 2 steps
- Program 2: The driving class CarTest public class CarTest { 7 ||---- Creates and exercises some Car objects. ||‒‒‒‒‒ public static void main(String[] args) { J /*add code here. Hint: Call constructor four times to create four objects. Then print the descriptions of the four objects. */ System.out.println(cl); System.out.println (c2); System.out.println (c3); System.out.println (c4); /*add code here. Hint: Update data and print updated information. */Object Oriented Programming: 213COMP, 214COMP (Feb-2022) Assignment- I [10 marks] Academic honesty: O Only pdf file accepted & student ID, will be your upload file. O Student who submit copied work will obtain a mark of zero. O Late work or attach file by email message not allowed. Q1: Write the signature for a method that has one parameter of type String, and does not return a value. Q2: Write the signature for a method that has two parameters, both of type Student, and returns an int value. Q3: Write the constructor's headers of the followings? new Student (202101156, “Ahmed"); new Address(51, "jazan university","CS&IT" ); new Grade(true, 505235600, 4.5); Q4: a) Write a class Student that define the following information: name, stid , age. b) Explain a mutators (setters) and accessors(getters) methods for each attributes(fields). c) Add three constructors: • with empty constructor. one parameter constructor (name of student) two parameters constructor (name and stid) d) Create two…public static void main(String [] args) { // Step 2: Construct a Day object representing today // and assign it to a variable called aDay // Step 3: Construct a Day object representing the day for our Exam1 on March 1, 2022, and assign it to a variable called examOne // // // Step 4: Declare three integer variables called year, month and day with initial values of 2022, 4, 12. // // 4 // Step 5: Construct a Day object using the three variables and assign it to a variable called examTwo 6. :7 28 29 // // Step 6: Display the three days on separate lines without any messages 30 31 // 32 33 // Step 7: Display the number of days as a positive integer between the two exams with a message 34 35 // 36 // "Number of days between the two exams: " 37 38 39 // Step 8: Update aDay to the day two days later 40 41 // Step 9: Print the year, month and day of aDay, one value per line without any messages 42 43 // 44 45 } 46 47
- private float c; private void method2(double y) { c = y; } in another class we created an object of the first class then within in it : tester.method2 (10.0f); are there any errors ? how many errors if there are any and with explanation please.: Fill in the boxes below with the letter corresponding to the best Description of that part of the program. A. initialize object F. invoke constructor G. instance variables B. local variable C. instance method D. invoke method E. constructor I. test client H. class name public class Charge private double rx, ry; private double q; // position // charge public Charge(double xe, double ye, double qe) { rx = x0; ry = ye; - q0; public double potentialAt(double x, double y) { double k = 8.99e09; double dx = x - rx; double dy = y - ry; return k * q / Math.sqrt(dx*dx + dy*dy); public String tostring() { return q + at + "(" + rx + ", ry + ")";; public static void main(String[] args) { double x = Double.parseDouble(args[@]); double y = Double.parseDouble(args[1]); Charge c1 = new Charge(.51, .63, 21.3); System.out.println(c1); System.out.println(c2); double v1 = c1 potentialAt(x, y); double v2 = c2.potentialAt( y); Stdout.printin(v1+v2);problem statement: Write a java classStringCheckto do the below given checks on accepted string or strings. Each function should be coded in separate methods of the class. Give appropriate instance variables to implement the method. The user should be able to enter the string through the main function in Main class. Use a constructor to initialize the String entered by the user. Use the Main class to test all the methods in StringCheckclass. The programs should have the below given checklist: 1)Define classStringCheck with required instance variables 2)The StringCheck class should have six methods to do the below functions: *Check if the user entered string is a simple sentence? (Starts with capital letter, Ends with period, space between words). *Check if the user entered string is a question? (Check if the string starts with ac apital letter ends with a question mark, space between words) *Check if the user entered string have numbers in it? *Check if string is a valid email *Check…
- Consider the following class declaration. Identify invalid statements in the main class. For each invalid statement, state why it is invalid. class QuestionOne { class Q1Main { public static void main(String[] args) { public final int A = 345; public int b; private float c; private void methodOne( QuestionOne q1; q1 = new QuestionOne( ); q1.A = 12; q1.b = 12; q1.c = 12; q1.methodOne(12); q1.methodOne( ); System.out.printin(q1.methodTwo(12)); q1.c = q1.methodTwo( ); int a) { b = a; public float methodTwo( ){ return 23; } }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…1. Complete the partial declaration of Class Car public class Car { declare three private instamce variables: color, speed, model / define a constructor with two parameters. C, m which will assign values to color and model. /define set and get method for all instance variables /define a method named calspeed() with int return type, the method will increase the speed by 50 mile per hour. 2. Complete the application below. public class CarApp { public static void main() { string color string model int speed %3D C2021;i %3D T08 //declare necessary object matching to the constructor definition 1/ display the color and model on the screen W call the calsneed) method and display the new speed after calculation. Page 2 of 2 可 圓 刨 24°C uaio
- Classes and Objects) Hand-write a complete Java class that can be used to create a Car object as described below. a. A Vehicle has-a: i. Registration number ii. Owner name iii. Price iv. Year manufactured b. Add all instance variables C. The class must have getters and setters for all instance variables d. The class must have two constructors, a no-args and a constructor that receives input parameters for each instance variable.: Write the Class for Circle. Read the following code and create the attributes, method, constructors of class according so that it produces the result as given below.Code:public class Main { public static void main(String[] args) {System.out.println("Value of PI: "+ Circle.PI);System.out.println("Square of 2.0 is: " + Circle.square(2.0));Circle c1 = new Circle(3.4);Circle c2 = new Circle(2.9); c1.display();c2.display();System.out.println(c1.compare(c2));System.out.println(c2.compare(c1));c1 = c2.getCopy();System.out.println(c1.compare(c2));System.out.println(c2.compare(c1));c1.set(5.0);System.out.println(c1.getRadius());System.out.println(c1.getDiameter());System.out.println(c1.getCircumference());System.out.println(c1.getArea());Circle c3 = c2.getClone();c3.set(c1.getDiameter());c2.display();c3.set(c1);c1.display();c2.display();c3.display();}}Output:Value of PI: 3.14Square of 2.0 is: 4.0Radius: 3.4, Diameter: 6.8, Circumference: 21.352, Area: 36.2984Radius: 2.9, Diameter: 5.8,…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…