public class ForgetfulCritter extends Critter XxX private String event; public void addHistory (String event) { event = "?"; super.addHistory(); }
Q: at is human memory? Explain types of me.
A: Introduction: Human memory is a powerful mental process with many implications for life and how you…
Q: assifier has a stable learning algorithm if, by changing the tr t data don't change. For instance,…
A: error 404
Q: Suppose that the file inData.txt contains the following data: Giselle Robinson Accounting 5600 5 30…
A: For the given question, provide c++ code with proper output in outData.txt file below.
Q: R/M 000 001 010 011 100 101 110 111 MOD = 11 W=0 AL CL DL BL AH CH DH BH W = 1 AX CX DX BX SP BP SI…
A: ANSWER:
Q: I need help updating function makeMove to do the following in C Programming - Return type void -…
A: We need to modify the given code such that if fulfills given requirements. Given code: void…
Q: Which pair of IP addresses that unavailable to be assigned to hosts in the given network? A.…
A: IP addresses 172.16.5.1 and 172.16.5.254 can be assigned to hosts since they both belong to the same…
Q: In Python, a fu
A: Dear Student, In Python, a function can only return one value.
Q: Convert 576.3648 to base 4
A: I'm just converting 576.3648 to base 4. One quaternary system is base 4. Use the digits 0, 1, 2, and…
Q: The support vector machine does not need to be implemented. Linear classifiers, on the other hand,…
A: SVM Classifiers which offer good accuracy and also used to perform faster prediction compared to…
Q: QUESTION 3 Before applying patches to production systems, the patches are tested on an non critical…
A: Answer : Safety security goal is achieve in this case.
Q: Many data centers that support cloud computing now pipe chilled water through the server racks to…
A: Which of the following is FALSE? Virginia's "data center alley," is the site of 70 percent of that…
Q: What is hierarchical task analysis? Explain with example.
A:
Q: USING PHP :
A: Answer is the given below with explaination step by step
Q: Explain types of Evaluation.
A: After designing a solution using computational thinking, it is important to ensure that the solution…
Q: without truth table. show that ¬(¬p V q) ^ ¬p is a contradiction.
A: These question answer is as follows,
Q: 3. Is the following form of argument valid or invalid? Justify your answer. P→q ~p :~q
A: The question has been answered in step2
Q: can someone post the answer to question 4, i know we're allowed to ask more than one per question
A: We need to find the output of the given adder circuit.
Q: Input and output should reflect as stated below: Ex: If the input is: Pablo Picasso 1881 1973…
A: SOLUTION
Q: Question-1 a) Discus and compare circuit-switching and packet-switching. b) What are the main…
A: Circuit-switching is a method of implementing a telecommunications network in which two network…
Q: universal set subset empty set set element
A: I have given definition of all the terms with example in details below.
Q: Look at the directed graph in the file Quiz TestGraph.pdf on Brightspace. The vertices a, b, c, d,…
A: ba, gd Given graph is a directed graph which contains, 8 vertices that are a, b, c, d, e, f, g, h.…
Q: When converting floating point binary numbers to decimal, placeholder subscripts do what to the…
A: Placeholder subscripts down count to the right of the decimal point. However, placeholder subscripts…
Q: Write a program in Java to implement the Insertion sort algorithm to sort a given set of elements…
A: public class Main{ public static int[] sort(int a[]) { int l = a.length; for…
Q: Explain advantages and disadvantages of GOMS.
A:
Q: Which property guarantees f:X--->Y is surjective? Of is injective O the preimage of Y is X O f(x)=Y…
A: To find which property guarantees f:X-->Y is surjective.
Q: a. A main method asks the user to provide the number of rows and columns for a 2-dimensional array…
A: error 404
Q: rescriptive analytics relate to descriptive and predictive analytics? Give one example for each.…
A: Introduction: Descriptive analytics, as the name implies, "describe" the data. We convert the data…
Q: By hand produce a proof of ((E→F)∧(E→G)) → (E→(F∧G)) How many lines does the most natural box proof…
A: The most natural box proof for this statement contains 9 lines. Explanation: The most natural box…
Q: Why in neural networks synchronous updates can lead to infinite loops and not allow to retrieve the…
A: Synchronous and asynchronous neural networks: Synchronous neural networks have synchronized, the…
Q: * Write a program named GuessingGame that generates a random number between 50 and 90. Ask a user to…
A: error 404
Q: The target variable of a python for loop need not be used within the loop a). True b). False
A: Here statement is given related to python target variable, so answer of it with proper justification…
Q: Problem 1 Write a function count123: int list -> int * int * int that takes in an int list 1 and…
A: SOLUTION My Answer last_digit_of_all: Code: open Printf let rec last_digit (n: int) : (int) =…
Q: What is the big O function for the following pseudocode code segment? sum = 0 for i = 1 to…
A: Big O Notation Big O Notation is a technique for expressing an algorithm's temporal complexity. As…
Q: In python. Include docstring. Please follow code requirements as listed below. Write a recursive…
A: The above question is solved in step 2 :-
Q: Q.3 How the task analysis help in requirements capture and systems design ?
A:
Q: Look at the directed graph in the file Quiz TestGraph on Brightspace. The vertices a, b, c, d, e, f,…
A: In this directed graph. The simple paths are: (f, b, a, e, h) (f, b, a, c, g, d, h) (f, b, a, c, g,…
Q: What are Solid State Drive means?
A: Solution:-
Q: May I please have your assistance with this lab: 2.15 LAB: Artwork label ( modules) Part of the code…
A: So, what might be happening is that you need to import the classes into a main.py file that will be…
Q: his is great but lets say I wanted to print the final balance how would I do that?
A: The updated java program is given below:
Q: Write a function named file_sum that takes as a parameter the name of a text file that contains a…
A: The above question is solved in step 2 :-
Q: PROGRAM 5: Start And Stop! Write an HLA Assembly language program that prompts for two spe number…
A: error 404
Q: Which of the following statements are true? A) When you open a file for reading, if the file does…
A: The true statements are:
Q: Use c programming for the following question. And plz don't use any other libraries other than #…
A: The c program is given below:
Q: Using 2’s complement perform the following a. DBC16 – BDA16b. 101010112 – 11000112
A: We need to perform subtraction using 2’s complement. As per the guidelines only 1st question is…
Q: 2. Write a complete C program that inputs marks of a student in 5 courses using any loop and writes…
A: ANSWER:-
Q: Given the following code: def boxString (content): n= len (content) if n -- 0: SENE return print…
A: Given code contains a function boxString() and content is given as input. Then if length of content…
Q: using c++, Write a function method that determines the mean of all the values in an array of…
A: To find the mean of the all values in array of integers, function with proper code in c++ and output…
Q: What is SATA?
A:
Q: rove that every tree with at least two vertices is bipartit
A: Dear Student, A bipartite graph is a graph whose vertices can be divided into two sets X and Y such…
Q: 1. fInd the average win and lose rate of the crabs game 2. Find the Mean, Median, and mode of how…
A: In this question, it is asked to provide the python code for a problem statement. The statement asks…
JAVA
What can I change to make it work?
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- public class Application { public static void main(String[] args) { Employee empl = new Employee(); empl.firstName = "Ali"; empl.lastName = "Omar"; empl.salary = 20000; Employee emp2 = new Employee(); emp2.firstName = "Mohamed"; emp2.lastName = "Nour"; emp2.salary = 30000; System.out.println("- System.out.printin("- empl.employeeSalary(); System.out.println("- empl.checkEmployeeSalary(emp1.salary, emp2.salary); System.out.printin("- System.out.println("- printEmployee(emp2); System.out.printin("- Employee employeeArr[] = new Employee[2]: employeeArr[0] = empl; employeeArr[1] = emp2; Application a = new Åpplication(); a.printArrayofEmployee(employeeArr); Non static (instance) start to call Static function to print ---------"); "); - Non Static function to print - --"); Non static (instance) start to call same class Static function to print --------); -"); Non Static function to print ----); System.out.println("- System.out.printin("- System.out.printin("Salary : " + Employee.salary);…public class LabProgram { public static void main(String args[]) { Course course = new Course(); String first; // first name String last; // last name double gpa; // grade point average first = "Henry"; last = "Cabot"; gpa = 3.5; course.addStudent(new Student(first, last, gpa)); // Add 1st student first = "Brenda"; last = "Stern"; gpa = 2.0; course.addStudent(new Student(first, last, gpa)); // Add 2nd student first = "Jane"; last = "Flynn"; gpa = 3.9; course.addStudent(new Student(first, last, gpa)); // Add 3rd student first = "Lynda"; last = "Robison"; gpa = 3.2; course.addStudent(new Student(first, last, gpa)); // Add 4th student course.printRoster(); } } // Class representing a student public class Student { private String first; // first name private String last; // last name private double gpa; // grade point average…please
- Java class Main { publicstaticvoid main(String[] args) { // Coin myPenny = new Coin(CoinType.PENNY); // Coin myNickel = new Coin(CoinType.NICKEL); // Coin myDime = new Coin(CoinType.DIME); // Coin myQuarter = new Coin(CoinType.QUARTER); // Coin myHalfDollar = new Coin(CoinType.HALF_DOLLAR); // Coin myDollar = new Coin(CoinType.DOLLAR); // System.out.println(printValue(myPenny)); // System.out.println(printValue(myNickel)); // System.out.println(printValue(myDime)); // System.out.println(printValue(myQuarter)); // System.out.println(printValue(myHalfDollar)); // System.out.println(printValue(myDollar)); } publicstatic String printValue(Coin c){ String result = ""; // result = String.format("The value of a %s is $%.2f", c.getName(), c.getValue()); return result; } }object oriented programming using c++ class decleration: class MyPhoneBook{ string* names; string* phones; int phoneBookSize; public: MyPhoneBook(int); //Takes size MyPhoneBook(const MyPhoneBook&); //Copy Constructor bool addEntry(string ,string); bool displayEntryAtIndex(int); void displayEntryAtIndices(int*); void displayAll(); int* findByName(string); int* findByPhone(string); bool updateNameAt(string, int); bool updatePhoneAt(string, int); ~MyPhoneBook();};/* TestCarSensor.java - program to test the CarSensor class.*/public class TestCarSensor{public static void main (String[] args){CarSensor generic = new CarSensor();CarSensor tempCel = new CarSensor("temperature sensor", -50, +300, "C"); CarSensor speed = new CarSensor("speed sensor", 0, 200, "km/h"); CarSensor speed2 = new CarSensor("speed sensor 2", 0, 200, "m/h"); // 2. test changing desc and limitsSystem.out.println ();System.out.println ( generic ); // display generic sensor (zero)generic.setDesc ("special sensor"); // change descriptiongeneric.setLimits (-5,5,"units"); // change limitsSystem.out.println ( generic ); // display generic sensor again// 3. test displaying object (calling .toString() )System.out.println ();System.out.println ( tempCel );System.out.println ( speed );System.out.println ( speed2 );// 4. test setlimits() ruleSystem.out.println ();System.out.println ( generic ); generic.setLimits (10, -10, "blah"); System.out.println ( generic ); generic.setLimits (-10,…
- What is outpout? public class Vehicle { public void drive(){ System.out.println("Driving vehicle"); } public class Plane extends Vehicle { @Override public void drive(){ System.out.println("Flying plane"); } public static void main(String args[]) { Vehicle myVehicle myVehicle.drive(); } } = new Plane(); syntax error Driving vehicle Flying plane Flying plane O Driving vehiclepublic class Course { private String courseNumber, courseTitle; public Course() { } public Course(String courseNumber, String courseTitle) { this.courseNumber = courseNumber; this.courseTitle = courseTitle; } public void setCourseNumber(String courseNumber) { this.courseNumber = courseNumber; } public void setCourseTitle(String courseTitle) { this.courseTitle = courseTitle; } public String getCourseNumber() { return courseNumber; } public String getCourseTitle() { return courseTitle; } public void printInfo() { System.out.println("Course Information: "); System.out.println(" Course Number: " + courseNumber); System.out.println(" Course Title: " +…class Student { private int age = 18; public Student() { age = 19; } } public class Test { public static void main (String[] args){ Student s = new Student(); System.out.println (s.age); } }
- public class DesertEvent { private static int eventCount = 0; private String barCode; private String location; private String eventName; private String eventType; private int quantity; private int capacity; private int seatsTaken; public DesertEvent(String eventName, String eventType) { this(eventName, eventType, 0); calcMaximumSeats(eventType); generateBarCode(); } public DesertEvent(String eventName, String eventType, int capacity) { this.eventName = eventName; this.eventType = eventType; this.capacity = capacity; generateBarCode(); eventCount++; } public String getBarCode() { return barCode; } public String getLocation() { return location; } public String getEventName() { return eventName; } public String getEventType() { return eventType; } public int getQuantity() { return quantity; } public void setQuantity(int quantity) { this.quantity = quantity; } public int getCapacity() { return capacity; } public void setCapacity(int capacity) { this.capacity = capacity;…public class DesertEvent { private static int eventCount = 0; private String barCode; private String location; private String eventName; private String eventType; private int quantity; private int capacity; private int seatsTaken; public DesertEvent(String eventName, String eventType) { this(eventName, eventType, 0); calcMaximumSeats(eventType); generateBarCode(); } public DesertEvent(String eventName, String eventType, int capacity) { this.eventName = eventName; this.eventType = eventType; this.capacity = capacity; generateBarCode(); eventCount++; } public String getBarCode() { return barCode; } public String getLocation() { return location; } public String getEventName() { return eventName; } public String getEventType() { return eventType; } public int getQuantity() { return quantity; } public void setQuantity(int quantity) { this.quantity = quantity; } public int getCapacity() { return capacity; } public void setCapacity(int capacity) { this.capacity = capacity;…public class Pet { protected String name; protected int age; public void setName(String userName) { name = userName; } public String getName() { return name; } public void setAge(int userAge) { age = userAge; } public int getAge() { return age; } public void printInfo() { System.out.println("Pet Information: "); System.out.println(" Name: " + name); System.out.println(" Age: " + age); } } import java.util.Scanner;public class PetInformation { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); Pet myPet = new Pet(); Cat myCat = new Cat(); String petName, catName, catBreed; int petAge, catAge; petName = scnr.nextLine(); petAge = scnr.nextInt(); scnr.nextLine(); catName = scnr.nextLine(); catAge = scnr.nextInt(); scnr.nextLine(); catBreed = scnr.nextLine(); // TODO: Create generic pet (using petName, petAge) and then…