QUESTION 10 A class in general contains two sections: field declaration and methods declaration. True O False QUESTION 11 Protected modifier restricts access to a method within the class where It was declared. CO True O False
Q: What is the meaning of .Com
A: Defined the meaning of.Com
Q: Consider the following convolutional layer. Input volume 16*163 Four 22 fiters with stride 2 and pad...
A: The height and depth of the given CNN input is Height= (16-2+2*2)/1+1 Height =9 depth = 10 The heigh...
Q: Type the program's output Input 6 4 target = int(input()) n = int(input()) while n <= target: ...
A: Type the program's output Input 6 4 target = int(input()) n = int(input()) while n <= target: pri...
Q: Consider an example of an online shopping system that involves a data center. De cribe the component...
A: Solution: Data centers are consists of three primary types of components: compute, storage, and net...
Q: we can clearly see that the checking of balance in an equation is simple, which is comparing opening...
A: The shell must support the following internal commands: cd <directory> - change the current de...
Q: be allocated le
A: Given as, sign × mantissa × baseexponent
Q: What is the height of an empty BST
A: Given What is the height of an empty BST?
Q: After learning the history of computer and the different computer generations, I want you to choose ...
A: - Solving the first three subparts according to the guidelines. - We have to talk about facebook. - ...
Q: 2. Consider a network node represented by an M/M/1 model. (a) Find the probability that the number o...
A: 1a) can say that a communication line capable of transmitting at a rate of 50 KB/sec would be util...
Q: Select the term that best pairs with the definition. ...
A: Introduction: Here we are required to pair the given definition with its adjacent meaning.
Q: n the computer world, who is known as the "father" of the Intel Pentium chip?
A: Answer the above questions are as follows:
Q: 1. Describe three situations where combined counting and logical looping statement is need. 2. Desc...
A: Answer 1: Counting and logical control loops may be used in the following situations: 1. Summing up ...
Q: ou are given two sequences, each of this X = (X[1]X[N]) and YYY One operation consists of the follow...
A:
Q: upport your an
A: Keynes overturned many commonly-held theories in economics in order to offer a justification for the...
Q: What do you understand by query optimization?
A: I'm providing the answer to query optimization. I hope this will be helpful for you...
Q: 5.8 Write the function described in section 5.8 and a main routine to test it IN MIPS CREATE A CODE...
A: 5.8 Write the function described in section 5.8 and a main routine to test it IN MIPS CREATE A CODE ...
Q: Detail the components of the spheres of security paradigm. The document must have a sufficient quant...
A: Introduction: Information security is primarily concerned with preventing unauthorized access to dat...
Q: Provide an explanation for ReadDec
A: Introduction: The Read Dec method takes a 32-bit unsigned decimal integer from the keyboard and conv...
Q: ste
A: Solution) How to create a telegram bot 1) First, download the Telegram app for desktop. Once that is...
Q: An address space is the area in a memory block where you can put things.
A: Introduction: Only binary bits of '0' and '1' are used in the computer world to process information ...
Q: Consider the following page address stream: 2 4 2 4 1 2 5 1 3 3 1 Using the Least Recently Used al...
A: The answer is
Q: shell program to get mark details of a student and display total and grade? Write a shell program to...
A: Write a shell program to get mark details of a student and display total and grade? In this program ...
Q: The Z-pattern layout is typically used on pages that are not content heavy. Its design mimics the ro...
A: (a). Answer: A Z-Pattern design traces the route the human eye travels when they read left to right,...
Q: I need to write a Java program to the apply periodic payments and interest on a loan in dollars and ...
A: The answer is given below:-
Q: When did the first flash drive become popular?
A: Flash drives are commonly used for storage, data backup, and transferring files between devices. U...
Q: The following pseudocode works, but it performs a case-sensitive validation of the user’s input. How...
A: the answer is given below:-
Q: Give a detailed account of how cdma permits data to be transmitted simultaneously over a single chan...
A: Introduction: Here we are required to give a detailed account of how CDMA permits data to be transmi...
Q: The question is asking: Ask for a horizontal multiplier, a vertical multiplier, and a constant from ...
A: logic:- use print statement to display values. Use comma to separate message and values.
Q: Q5: For the Binary search tree given below. 30 15 60 7 22 45 75 17 27 In-order Travetrsal Pre-Order ...
A: In Inorder traversal, the root is traversed in between the left and right subtrees and the same rule...
Q: Write a program that asks the user to input a positive integer with at least three digits, and then ...
A: Since no programming language is mentioned, I am using c++. Algorithm: Start Read a number n Initia...
Q: re some potential issues or roadblocks can you see in trying to get this information to address Inu ...
A: It is defined as a systematic method for determining what could go wrong in a plan under development...
Q: In the context of DHCP what is the purpose of an IP helper address? a. The gateway for the comp...
A: In the context of DHCP what is the purpose of an IP helper address is below explained.
Q: Under which condition does this code branch? (Assume tha ORRS RO,RO,R1 BNE Loop
A: Lets see the solution.
Q: nit square [0,1]x[0,1] suppose that the upper side of the square goes down continuously at a constan...
A: the answer is given below :
Q: Annotated Bibliography (APA) List ten sources (APA) To inform college students on how to pre...
A: APA clarified list of sources An explained book index is an extraordinary sort of catalog that gives...
Q: Computer Science need a html code that creates 3 boxes 1st box has (first name last name ). second b...
A: Task : Define 3 text fields with labels First name Last Name Class/Section Professors Submit bu...
Q: create a complete program that will accepts string of characters or sentence and print each word in ...
A: Since no programming language is mentioned, I am using python. Algorithm: Start Read a string Split...
Q: Let us know what this function does and why it's so important to u
A: Given To know about the function and it's uses
Q: Write the statements to sum the odd integers between 1 and 99 by using a for statement. Assume that ...
A: The solution to the given problem is below.
Q: Write the shortest condition in the if-statement below that will make the unshaded values of row one...
A: According to the information given:- We have to follow the instruction mentioned.
Q: public Boolean insertBefore(String newItem, String itemToInsertBefore)
A: class link { Node h; static class Node { String str; Node next; Node(String a) { str= a; } } pub...
Q: What is tha main function of router?
A: Introduction: Routers are computer networking devices used to transport data packets from one networ...
Q: Encrypt the message ‘STOP’ using the RSA system with n = 53 • 61 and e = 17.
A:
Q: Practicing Loops. Einstein Private Elementary school has three classes in each of its 9 grades. 27 ...
A: python code grade = range(9) classroom = range(1,4) month = range(1,10) tuition = [90,50,100,150,2...
Q: Assign a name to the graphics processing unit.
A: Introduction: A graphics processing unit -GPU is a computer processor specifically designed to handl...
Q: True or false? If server-side PHP code is correctly delimited and contains no syntax error, then the...
A: Given: To declare statement s true or false.
Q: educational
A: Introduction: Structuring data according to a database model is known as database design. The desig...
Q: What is the difference between an argument and a return value? How many arguments can a method c...
A: Argument in JAVA: An Argument is a value passed to a function when the function is called . Return v...
Q: ) Define the term of methodologies, techniques, and tools?
A: Methodologies, tools and techniques are different terms, although they look similar but meaning of e...
Q: 1. Given the following Context Free Grammar, show the derivation for the following strings. -> = ;...
A: As per our guidelines, we are supposed to answer only one question. Kindly repost the remaining ques...
Step by step
Solved in 3 steps
- 1.Write a class named Car that has the following data attributes:(a.) __year_model (for the car’s year model)__make (for the make of the car)__speed (for the car’s current speed)The Car class should have an __init__ method that accepts the car’s year model andmake as arguments.These values should be assigned to the object’s __year_model and __make dataattributes.It should also assign 0 to the __speed data attribute.The class should also have the following methods:(b). Accelerate: The accelerate method should add 5 to the speed data attributeeach time it is called.Brake: The brake method should subtract 5 from the speed data attribute eachtime it is called.get_speed: The get_speed method should return the current speedWhich of the following statements are correct? (Select all that applies.) Group of answer choices a) Inheritance is the process by which one object can acquire the properties of another object. b) "super" is used to access the method or member variables from the parent class. c) Constructors are used to initialize a newly created object. d) Method overriding occurs when a child class declares a method that has the same type of arguments as a method declared by one of its parent classes. e) An object that has more than one form is referred to polymorphism.Question: Choose the correct one. Note: Give me all the answers without explanation. 1.It is an instance of the class Select one: a. Method b. Object c. Data member d. Constructor 2.The encapsulation concept means. Select one: a. The class has private constructors and methods b. The data members are public access c. The data members are private access d. you can't access the members of the class even from the class itself 3.char A[]="hahahah"; char* p=&A[0]; *p='na'; p="CII"; cout<<A; the output is. Select one: a. CIIhahahah b. hahahah c. aahahah d. nahahah 4.Let A is char array as follows: char A[]=”hahahah”; the length of A Select one: a. 32 characters b. 7 characters c. 28 characters d. 8 characters 5.class A{int x;}; class B:public A{int y;public: void add(){y=++x;}};to correct the error. Select one: a. We should use protected: in class A b. We should use private: in class A c. We should use protected: in class B d. We should use public: in class B…
- Indicate whether the statement is true or false. 13. The non-static methods of a class are called instance method. 14. A constructor has no type and is therefore a void method. 15. A class can have only two constructors. 16. In shallow copying, each reference variable refers to its own object. 21. The method finalize automatically executes when the class objects goes out of scope. 22. A mutator method of a class changes the values of data members of the class. 23. In java, the reference this is used to refer to only the methods, not the instance variables of a class. 24. Classes that are defined within other classes are called inside classes. 25. Modifiers are used to alter the behavior of the class 26. A constructor has the same name as the class. 27. Constructors are called like any other method. 28. You can perform some arithmetic operations on class objects.a) Create an enumeration named Departments that contain four set of values FINANCE, HR, IT, and MARKETING.b) Create a class named PersonDetails that contains fields for a person’s first name (String), last name (String), and address (String). The class have- A constructor that accepts parameters for each field.- Get methods for each field.c) Create a class named Employee that contains fields for an employee ID (int), Social Security number (String), personal information (Person object), department (Departments type), and annual salary (double). The class have- A constructor that requires values for each data field.- Get methods for each of the data fields.- Set methods for each of the data fields.d) Create an application/class named EmployeeSort that allows a user to enter values for an array of 5 Employee objects (create an array of Employee type that will save 5 employee objects). Prompt a user for the data needed to create an employee object. Continue to prompt the user for Social…a) Create an enumeration named Departments that contain four set of values FINANCE, HR, IT, and MARKETING.b) Create a class named PersonDetails that contains fields for a person’s first name (String), last name (String), and address (String). The class have- A constructor that accepts parameters for each field.- Get methods for each field.c) Create a class named Employee that contains fields for an employee ID (int), Social Security number (String), personal information (Person object), department (Departments type), and annual salary (double). The class have- A constructor that requires values for each data field.- Get methods for each of the data fields.- Set methods for each of the data fields.d) Create an application/class named EmployeeSort that allows a user to enter values for an array of 5 Employee objects (create an array of Employee type that will save 5 employee objects). Prompt a user for the data needed to create an employee object. Continue to prompt the user for Social…
- Please answer these multiple choice questions 1) The new operator: allocates memory is used to create an object of a class associates an object with a variable that names it. All of the above. Answer: 2) A method that performs some action other than returning a value is called a __________ method. null void public private Answer: 3) The body of a method that returns a value must contain at least one _________ statement. void invocation thows return Answer: 4) A variable whose meaning is confined to an object of a class is called: instance variable local variable global variable none of the above Answer: 5) A variable whose meaning is confined to a method definition is called an/a instance variable local variable global variable none of the above Answer: 6) In Java, a block is delimited by: ( ) /* */ “ “ { } Answer: 7) In Java, call-by-value is only used with: objects primitive types this all of the above Answer: 8) The parameter this refers to instance variables local…a) Create an enumeration named Departments that contain four sets of values FINANCE, HR, IT, and MARKETING.b) Create a class named PersonDetails that contains fields for a person’s first name (String), last name (String), and address (String). The class haveA constructor that accepts parameters for each field and Get methods for each field.c) Create a class named Employee that contains fields for an employee ID (int), Social Security number (String), personal information (Person object), department (Departments type), and annual salary (double). The class haveA constructor that requires values for each data field.Get methods for each of the data fields.Set methods for each of the data fields.d) Create an application/class named EmployeeSort that allows a user to enter values for an array of 5 Employee objects (create an array of Employee type that will save 5 employee objects). Prompt a user for the data needed to create an employee object. Continue to 2prompt the user for Social…not handwritten Which of the following are NOT true for a constructor? Select one: a. It does not return anything b. Every class must include an explicitly written constructor c. Every field in the class is initialized in the constructor. d. It must have the same name as the class
- The question #1 should be read as: hasValidPassword method that checks and return true if the password is not the same as username and it does not contains the user id Question #2 should accept only 3 parameters instead of 4. But it will have the 4th parameter for output. 3 input parameters + 1 output parameter + integer return code. IN C++ • All data members must be declared as “private” • No global variable is allowed to be declared and used • Methods within the class and the requested functions cannot have “cin” or “cout” but it should make use of parameters and return value instead. • “cin” and “cout” should be done in main() or any testing functions • Make sure that you clearly show how the C++ class, its methods and all the functions are being called at least twice and print out its return value and its results properly.1) Change the visibility of the variables and constructor in the Employee class to be more secure 2) Add an Admin class with the following features: a) The Admin class is a child of the Employee class b) Admin objects have an instance string password variable c) The Admin class has a 4 parameter constructor. One parameter sets the string, the other three parameters are used as arguments for a parent constructor call. d) Admin objects have an instance getInformation() method with a void return and an Employee object parameter. The method will request the calling Admin’s password and check user input. If input matches the password, the method will display the information of the Employee parameter Please use ***C Sharp** Language to answer the codeJAVA QUESTION REQUIRES SEPARATE CLASSES, CANNOT BE WRITTEN IN ONE MAIN METHOD E.G. ACCOUNT SECTION WRITTEN IN ACCOUNT CLASS, CUSTOMER SECTION WRITTEN IN CUSTOMER CLASS ETC. Phase 2 In this phase you’ll be writing code within the methods of your classes to make the tests pass. Account Each account should have a constant, unique id. Id numbers should start from 1000 and increment by 5. The ACCOUNT_ID attribute should be initialised when the account object is created. The id should be generated internally within the class, it should not be passed in as an argument. The deposit method should increase the balance by the value passed in as an argument. The withdraw method should reduce the balance by the value passed in as an argument. It should return the value of the argument The account should be able to go overdrawn The correctBalance method should change the balance to match the value passed in as an argument. Testing your code for Account Run TestAccountInitialisation to check…