n the following Python code why is odometer_reading NOT a parameter of the __init__ method?
Q: How does debugging function, and what is its purpose? Nowhere near the testing context, that's for…
A: According to the policy we can only give the answer of first question, repost your remaining…
Q: What is software architecture? What are the four essential elements of a software architecture?
A: The process of creating a set of instructions that tells a computer how to perform a task is known…
Q: Explain the avalanche effect.
A:
Q: In WW2, allies have placed their mines on the ground which can be considered as a gird of size N*M.…
A: Algorithms: START defining the mod by 1000000007 defining a function named mmul finding the length…
Q: Write a code that finds the number of zeros in 16 bit word in memory
A: Below I have provided a program for the given question. Also, I have attached a screenshot of the…
Q: What are the advantages of servlet?
A: Depending on the circumstances, Servlet may be characterised in various ways. Creating a web…
Q: Why do some block cypher operation modes solely employ encryption while others employ both…
A: In order to prevent unwanted parties from reading a message, it must first be transformed from a…
Q: Discuss what are the Characteristics of JavaScript.
A:
Q: Write a code that finds the number of zeros in 16 bit word in memory. Put comments explaing what you…
A: Below I have provided a program for the given question. Also, I have attached a screenshot of the…
Q: Explain different types of scripting elements in JSP.
A: 1) Java provides various scripting elements that allow you to insert Java code from your JSP code…
Q: List the function of group accessors?
A:
Q: When compared to other programming languages, what makes Database development unique? What concrete…
A: Every database management system has management and administrative features. It states that if not…
Q: Explain what is Tomcat?
A: Introduction In this question we are asked about the tomcat.
Q: The Boolean expression as a PoS of F implemented in the following circuit is: Note: Assume D, has…
A: Below I have provided a solution for the given question.
Q: Define-livelock.
A: Livelock is defined in the below step
Q: What is the difference between diffusion and confusion?
A:
Q: Assume that PROGA, PROGB, and PROGC are the same as in Fig. 3.8. Show how the object programs would…
A: The object programs would change as follows: PROGA: Text Records: 0: T 0001 002C 0008 0102 0009 0103…
Q: Explain different attributes of page directive in JSP.
A: Please find the detailed answer in the following steps.
Q: Describe What is a meet-in-the middle attack?
A: The study of secure communication techniques that allow only the sender and intended recipient of a…
Q: Can you name a few benefits of a paperless government?
A: Introduction: Below is a quick explanation of the advantages of electronic government, or simply,…
Q: There is some disagreement about when and how organizations must use or comply with regulations…
A: Once data is obtained, it must be used promptly for the registered purpose with the Data…
Q: WPA2 should be thought of as a potential wireless access method. Just what makes this option better…
A: WiFi Protected Access 2 (WPA2): WiFi Protected Access 2 is what is meant to be referred to when…
Q: Write Algorithm for Round robin tournament including a scoring for the match results.…
A: Description The algorithm does the following: Input is taken for a sequence of n players. For each…
Q: Explain Implicit objects in JSP.
A:
Q: What are the features of blocking and non blocking in point-to-point communication?
A:
Q: In what ways did Ada Lovelace help advance computer science?
A: Introduction: Lady Ada Lovelace, who lived in the early 20th century, was a pioneer in the field of…
Q: Question # 1: Use the Multiplicative Cipher method to encrypt the following plaintext: We will…
A: WRITE A mathematical solution NOT A COMPUTER PROGRAM
Q: Java Write a p
A: Answer in next step
Q: //write code that loops through the two variables returns an array ['2 is zwei', '3 is drei', '4 is…
A: The javascript programs are given below:
Q: Why do some block cypher operation modes solely employ encryption while others employ both…
A: Some modes of operation only employ the encryption function to generate data that will be XORed with…
Q: What is communicator in MPI?
A: What is MPI (message passing interface)A standardised method of communicating across many computers…
Q: Download the attached HTML file and write the missing JavaScript code for the webpage below: Name:…
A: Below I have provided a program for the given question. Also, I have attached a screenshot of the…
Q: What are your thoughts about why MIDI, a protocol created in the 1980s, is still prevalent today?
A: Thought many of us use USB now-a-days, still some people's use MIDI.
Q: Design a combinational Logic circuit in which whenever an input is an even number between 1 and 10 a…
A: Combinational circuits: A combinational circuit is one in which the various gates in the circuit,…
Q: Write a function named file_stats that takes one string parameter (in_file) that is the name of an…
A: In this question we have to write a code for counting the number of words, lines and character from…
Q: Provide an appraisal to integrate farming technology more then 500 words
A: Your answer is given below.
Q: Prepare a comparison table of all testing strategy with examples.
A: Answer: Test technique is a bunch of rules that makes sense of test plan and decides how testing…
Q: Compare Substitution and Transposition techniques
A: Introduction Substitution technique and transposition technique are the principal strategies for…
Q: 1- What does cd ..do? 2- What does cd ../.. do? 3- If you do cd / followed by pwd, what will happen?…
A: Below I have provided a program for the given question. Also, I have attached a screenshot of the…
Q: A. Create a METHOD in java to compute the area and the perimeter of a rectangle given the length and…
A: So, to determine a rectangle's perimeter and area, use step-by-step descriptive logic: Enter the…
Q: Using Lists in HTML write code in HTML for the following: A. Language: Python III. Web Development…
A:
Q: Is there a maximum period of time a user may be banned for? How long will this last? Explain?
A: Definition: In a multi-user environment, locking in DBMS aids in the management of concurrent…
Q: What is the difference between Rijndael and AES?
A: Only the range of supported parameters for block length and encryption key length separates Rijndael…
Q: List the function of group accessors. ?
A: Introduction: A single declaration that includes any or both of an accessor's get and set methods is…
Q: Write the difference between Java and JavaScript.
A: Java is a class-based OOPS language that is designed for implementation dependencies and developing…
Q: List the function of group accessors?
A: Introduction: The inquiry into new syntax for grouped accessors to classes and object literals and…
Q: in java language Write a program that implements the methods of a list using LINKED LISTS. Send…
A: Algorithm to implement Linked List Linked List contains the nodes that store the data and address…
Q: Why do some block cypher operation modes solely employ encryption while others employ both…
A: Introduction An algorithm is utilized that makes use of a block cipher so that information security…
Q: When people talk about "distributing" Linux, what exactly do they mean?
A: Operating system: An operating system, sometimes known as an OS, is a kind of software that acts as…
Q: How will you calculate elapsed timein MPI?
A: Given To know about the elapsed time in MPI. Answer The elapsed (wall-clock) time between two points…
In the following Python code why is odometer_reading NOT a parameter of the __init__ method?
Step by step
Solved in 5 steps with 2 images
- Disease Covid-19 has symptoms, a unique id, and covid_19_status e.g. Symptomatic or Asyptomatic.Covid-19 can infect patients. A patients could have a patient-id, name, sneezing, coughing and fever and It has a method of checkPatient takes values of sneezing coughing and fever and display the result whether the patient is covid +ve or –ve according to the input values given by the user. Identity the classes (Attributes, function) in the above scenario? Can you code these classes and display the result If the input if 1 for all symptoms then display on console that patient is covid positive. Otherwise display a message it is covid negative?C++ OOP Create a Student class, where attributes associated with each student are name, registrationnumber, father name, degree and department. All attributes should not be accessed directly.One can view the details of all students. Note student attributes can not be changed by anymeans after initialization. (Hint use constant objects).In student class maintaining student count means your program could be able totell the count of student objects created. (User static counter variable)Task 2: Delivery Vehicle We want to develop a delivery vehicle that can carry a limited number of equally weighted boxes. To do this we can build off of our previous task by extending the BasicVehicle class. Instructions 1. Create a new class called DeliveryVehicle that is a subclass of BasicVehicle: • a private attribute cargoList of type String[] • a private attribute numItems of type int 2. Create a constructor that takes two parameters: a String for registration, and an int for maxCapacity: • pass on the registration parameter to the super constructor along with 0.0 for altitude, longitude and latitude. • use the maxCapacity parameter to create a new array for cargoList 3. Create a boolean method called isFull that returns if the cargoList is full. 4. Create a boolean method called isEmpty that returns if there are no boxes loaded. 5. Create a method called loadCargo that takes a String parameter description and adds the cargo description to the cargo list (if it is not already…
- use java to write code and please use treeset as mentioned in the question Create a class Customer with below attributes: int - id String - name String - dob double - salary String - email int - age Make all the attributes private.Create corresponding getters and setters. Create a constructor which takes all parameters in the above sequence. The constructor should set the value of attributes to parameter values inside the constructor. Create a class CustomerDemo with main method Create a static method sortCustomerOnId in the CustomerDemo class. This method has to take a list of Customer objects and return a TreeSet of Customer objects sorted based on id. Call the above method from the main method(In java please) ( NO TOY CLASS PLEASE READ INSTRUCTION OR DOWN VOTE PLEASE LOOK AT TWO IMAGES BELOW YOU NEED THEM TO FINISH) THIS A LinkNode structure or class which will have two attributes - a data attribute, and a pointer attribute to the next node. The data attribute of the LinkNode should be a reference/pointer of the Currency class of Lab 2. Do not make it an inner class or member structure to the SinglyLinkedList class of #2 below. A SinglyLinkedList class which will be composed of three attributes - a count attribute, a LinkNode pointer/reference attribute named as and pointing to the start of the list and a LinkNode pointer/reference attribute named as and pointing to the end of the list. Since this is a class, make sure all these attributes are private. The class and attribute names for the node and linked list are the words in bold in #1 and #2. For the Linked List, implement the following linked-list behaviors as explained in class -…Create a TeeShirt class for Lebo’s Tee Shirt Company. Attributes include an order number, size, color, and price. Create set methods for the order number, size, and color and get methods for all four attributes. The price is determined by the size: R122.99 for XXL or XXXL, and R109.99 for all other sizes. Create a subclass named CustomTee that descends from TeeShirt and includes an attribute to hold the slogan requested for the shirt, and include get and set methods this field. The display() method should me an abstract method. Write a test class named DemoTees.java that creates two objects of each class, and demonstrate that all the methods work correctly by communicating to the user to input the tee shirt size, color, and slogan, then display the tee shirt order number, size, color, slogan and price. Format your output to 2 decimal places. The user should be asked to repeat the process or not, (y) indicates yes they want to repeat the process an the process repeats and (n)…
- Design a new Account class as follows:■■ Add a new data field name of the String type to store the name of thecustomer.■■ Add a new constructor that constructs an account with the specified name, id,and balance.■■ Add a new data field named transactions whose type is ArrayList thatstores the transaction for the accounts. Each transaction is an instance of theTransaction class, which is defined as shown in Figure ■■ Modify the withdraw and deposit methods to add a transaction to thetransactions array list. Write a test program that creates an Account with annual interest rate 1.5%,balance 1000, id 1122, and name George. Deposit $30, $40, and $50 to theaccount and withdraw $5, $4, and $2 from the account. Print an account summarythat shows the account holder name, interest rate, balance, and all transactions.Create a class Department with attributes DName, DID, a dynamic listDTeachers of type string.Write accessors and mutators for all data membersand show function to show all data members.Create nullaryand parameterized constructors to initialize the data members.Also write a copy constructor for Department class.In main() create a dynamic array of departments, Use loop to create four objects in the dynamic array. All the even indexed objects should be created with nullary constructors and thencall the accessors and mutators to initializethe objects while, all the odd indexed objects should be initialized using parameterized constructors. Create four copy objects from array using copy constructors.Call the show function to show the four objects.Using classes, design an online address book to keep track of the names, addresses, phone numbers, and dates of birth of family members, close friends, and certain business associates. Your program should be able to handle a maximum of 500 entries. Define a class addressType that can store a street address, city, state, and ZIP code. Use the appropriate functions to print and store the address. Also, use constructors to automatically initialize the member variables. Define a class extPersonType using the class personType (as defined in Example 10-10, Chapter 10), the class dateType (as designed in this chapters Programming Exercise 2), and the class addressType. Add a member variable to this class to classify the person as a family member, friend, or business associate. Also, add a member variable to store the phone number. Add (or override) the functions to print and store the appropriate information. Use constructors to automatically initialize the member variables. Define the class addressBookType using the previously defined classes. An object of the type addressBookType should be able to process a maximum of 500 entries. The program should perform the following operations: Load the data into the address book from a disk. Sort the address book by last name. Search for a person by last name. Print the address, phone number, and date of birth (if it exists) of a given person. Print the names of the people whose birthdays are in a given month. Print the names of all the people between two last names. Depending on the users request, print the names of all family members, friends, or business associates.
- Indications:Person is an abstract class containing the abstract method Print().In Teacher and Student the method print() will print the information of either Teacher or Student.Write the class university corresponding to the following UML diagram. It contains three attributes.Tab is an array of Person. sizeTab is the size of Tab. The attribute n represents the number of elements added to the tab. When the tab is empty n is equal to 0.The constructor University(sizeTab) will initialize the different attributes and allocate the memory to the array Tab.addPerson(p:Person) will add the new person to Tab. The method printAll() will print all the information of the Persons inside Tab.Write the main method. Create three Teacher and three Student and add them to University Object and print them all.Using C++ to Creates a class called Member with two integer x and y. a. Add a constructor able to create a Member object with tow integers and the default values 0,0; b. Add the methods setX and setY to modify the attributes x and y; c. Add the method display able to display the attributes, - A Queue is a special array where the insertion and deletion will be via a specific index called "head". A Queue is characterized by 3 attributes: a. capacity (int): the maximum number element Member that can be contained into the Queue; b. head: presents the index where we can add/remove element to the Queue. The head value presents also the current number of elements into the Queue. When a Queue is created the initial value of head is 0; c. Member content[]: an array of elements of type Member; Creates the class Queue with the following methods: a. a Constructor able to create a Queue with maximum 10 Members; b. bool empty (): this method returns true if no element exists in the Queue c. bool…1. Construct a class Assessment with the following attributes a. Id (int) b. Topic(String) c. MaxMarks(double) d. Date of conduct (doc) (GregorianCalendar) e. attempts ArrayList <Attempt> //an array list that will contain the Attempts objects 2. In order to complete the above class you will have to write a class Attempt with the following attributes. This class represents the attempts that students have made against this assessment. a. studentId(int) b. studentName(String) c. marksObtained(double) 3. Provide constructor in Attempt class with values for all attributes 4. Provide getters and setters for each 5. Provide a toString method that produces the following string Student = --id-- : name Marks Obtained : --marks— 6. Now complete the Assessment class through Following steps a. Provide a parameterized constructor with arguments for all except the array list i. Instantiate the arraylist in the constructor along with other variables b. Provide getters for all except the…