Define the object Circle in a class, considering that the circle has a center coordinates x and y and a radius r. The class can find the area (PI^2 * r) and a perimeter (2*PI*r)
Q: What is the ARM statement which correspond to the each following statement and find the value of RO
A: The answer is
Q: Write a program Triangle.java that determines the type of triangle from its 3 sides. Your program sh...
A: NOTE: Code run successfully. Please use proper indentation for no error. I have attached source code...
Q: Find the 16-bit 2’s complementary binary representation for the decimal number −1987.
A: Introduction: Find the 16-bit 2’s complementary binary representation for the decimal number −1987. ...
Q: Consider the int Array below and determine the values of A and B so that Array[0] has an integer in ...
A: The question is to find the values of A and B.
Q: What exactly is disc storage, and why is it so important?
A: Introduction: Computer Devices: In computer science, various devices are used to enter and output d...
Q: Who made the hybrid computer?
A: Here in this question we have asked who made the hybrid computer.
Q: (a) Show that the following grammar is ambiguous: ::= | [ ::= 0 | 1|2 |3|4|5|6|7|8 | 9 (b) Find...
A: Find the answer below to above question. I hope this will meet your requirement.
Q: Differentiae between awt package and swing package? What are the differences between Java and C++.
A: Step 1 The answer is given in the below step
Q: What is the expansion of acronym DBS?
A: We need to find what is the expansion of the acronym DBS or the full form of the acronym DBS in the ...
Q: Define the term "virtual machine" and explain why it is necessary.
A: The answer is
Q: What exactly is a fork on the blockchain? Explain the difference between the two types of forks.
A: Given The answer is given below What are Blockchain in Forks: Blockchain forks are parts in the netw...
Q: What decimal value does the 8-bit binary number 10110110 have if it is represented using two's compl...
A: 1) We have 8-bit bianary number 10110110 which is represent in two's complement 2) We need to find ...
Q: How does an application software restart execution when an interrupt service function has completed?
A: In order to understand this, we must first understand the two main types of interrupts: software and...
Q: d) Why will anything will be able to use an lP address or any other form of addressing scheme in the...
A: In a computer network, there is a requirement for communication which is fulfilled by an addressing ...
Q: Find the double precision representation fl(x) and rounding error for x = 2/3 , x = 9.6
A: Here is the conversion and explanation:
Q: Explain why it is important that software products are developed and delivered quickly ?
A: The answer is given below.
Q: Please describe the purpose of vulnerability scoring.
A: Introduction: The Common Vulnerability Scoring System (CVSS) allows you to capture the key aspects o...
Q: Explain why it is important that software products are developed and delivered quickly ?
A: The answer is given below
Q: How many Matlab seat licenses are required for there to be a ~1% steady state probability that no li...
A: The answer is given below:-
Q: s Ubuntu based on a different Linux distribution than Red Hat?
A: Introduction: Ubuntu uses the APT and DPKG package managers from Debian.
Q: Add the following decimal numbers by converting each to five-digit 10’s complementary form, adding, ...
A: 1) 24379 5098 Step 1: convert each number to its 10's compliment form 24379 = 24379 5098 = 5...
Q: nat are the two main differences between information vs. ca vsical) assets Explain why tbese differe...
A:
Q: n C, string arrays have a terminal character, whereas integer arrays do not. What makes you think th...
A: Intro In C, string arrays have a terminal character, whereas integer arrays do not. What makes you t...
Q: What is the major advantage of using 19. Incremental Model? Customer can respond to each а. incremen...
A: Answer:-
Q: The main objective of this project is to find frequent itemsets by implementing two efficient algori...
A: Here, I am writing the program code in C++ Programming Language. As I need some OOP concepts and fil...
Q: uffers are used to minimise access latency between various levels of the memory hierarchy. List the ...
A: INTRODUCTION: A portion of a computer programme that is dedicated to storing the data being processe...
Q: An information system's six components must be recognised, enumerated, and specified.
A: Introduction: Information System (IS): An information system is a system for organizing, storing, c...
Q: otal = a + b+ c; verage Total /6; 2021 Logic Errors Run-time Errors
A: Total = a + b + c;Average = Total / 6;Logic Errors Run-time Errors None of the above Syntax Errors
Q: Is there a single operating system function or are there three?
A: There is No single OS function, An operating system has Three main functions that are: (1) Manage t...
Q: write an java code: Using quick sort algorithm to find the largest value in an unsorted array. give ...
A: I give the code in java along with output and code screenshot
Q: Total = a +b + c; Average = Total /6; Logic Errors B. Run-time Errors C. None of the above D. Syntax...
A: A programming language must follow rules and regulations to execute task successfully. Logical erro...
Q: Write a shell program to demonstrate array operations using switch case. The operations are print al...
A: Values in Sliced_array: [4,5,6,7,8] Array a consists of [1,2,3,4,5,6,7,8,9,10] So Sliced_array will ...
Q: 13) What does the total number of pixels in the region defines? a) Perimeter b) Area c) Intensity d)...
A: The correct answer is given below:-
Q: In Python: You have exchange rates from one currency to another USD -> BTC [some value]. Use a list ...
A: In Python: You have exchange rates from one currency to another USD -> BTC [some value]. Use a li...
Q: Where did Charles Babbage come up with the computer?
A: Introduction: A lot of people think of Charles Babbage as the person who made the Analytical Engine....
Q: What does the term "relationship" mean?
A: A relationship, in the context of databases, is a situation that exists between two relational datab...
Q: What is autonomous computing, and how does it benefit cloud computing?
A: Introduction: What is autonomous computing, and how does it benefit cloud computing?
Q: Write a Java program StringProg which creates a Scanner and then does the following: 1. Ask the user...
A: As per the answering policy i can only answer upto 3 question max at a time, so I'm answering first ...
Q: Write a function that receives a string consisting of several lines of text (paragraph) and returns ...
A: Write a function that receives a string consisting of several lines of text (paragraph) andreturns a...
Q: How does an application software restart execution when an interrupt service function has completed?
A: Application software can talk to the CPU via the operating system, which provides an interface betwe...
Q: Online Library Enter ISBN : ...
A: According to the above question there are different methods to add CSS: 1) Inline CSS by usnig style...
Q: Write an SQL query to report the name and bonus amount of each employee with a bonus less than 1000....
A:
Q: Create a schema for removing a person from the database.
A: Introduction: We utilise the schema design approach Normalizations in a relational database to break...
Q: C language Make a text adventure game that asks 4 questions, every question is related. A response ...
A: A text adventure game can be created by simply using standard input and output, where the program as...
Q: What is the IEEE-754 single precision real number after encodingt the real decimal number -76.0625? ...
A: We have given a decimal numbers and we have asked to convert it into IEEE 754 format.
Q: Where did Charles Babbage come up with
A: given - Where did Charles Babbage come up with the computer?
Q: Section 1: The SortedLinked List class add(self, item) adds a new Node with value=item to the list m...
A:
Q: Which of the following INT 10h functions scrolls a rectangular window up?
A: Introduction: INT 10H Functions: Each INT ( INTERRUPT) represents a functions family, where usually ...
Q: The initial privacy and security settings for most social media platforms:
A: Application Virtualization allows the company's employee to access and use any critical information ...
Q: What is the plural form of a computer mouse?
A: Introduction: The plural of a computer mouse: In computing, a computer mouse (plural mice, often kno...
Step by step
Solved in 4 steps with 2 images
- please code in python Answer the following questions about this Dog class: [refer image for dog class] 1. Construct an instance of the Dog class whose name is Snickers and was born in2011 and assign that instance to a variable called myDog.2. Call the bark method so that myDog barks 3 times.3. Add a method to the Dog class called isPuppy that returns True if the dog is lessthan 1 year old.4. Add the __str__ method to the Dog class. It should return a string that includesthe dog’s name and age.Write a class that represents a player in a game. The player should have a name, password,experience points, an inventory array of four strings, and a location x,y. Your class shouldhave mutator and accessor methods for all variables. For example: setName(), getName(). Itshould have a suitable display method. Mutators and accessors should be public but allvariables should be private. To implement get inventory, use string * getInv(); Use the scoperesolution operator to implement larger methods such as display(). Use in class methods forshorter methods such as setName(), getName(). (in C++)Example:void setName(string name){this->name = name;}string *getInv();...string* player::getInv(){return inventory;}Note that in the above method setName “this->” is required for disambiguation. If writtenvoid setName(string n){name = n;}“this->” is not required.Write a test program that creates three players and displays them.Example Output:This program generates three player objects and…1. Implement the above system using inheritance in the best possible way. Keep every object size as small as possible. Implement all methods (setter/getter/constructors and destructors) Note that the region area is 0 while the city is len*width and the country is the sum of their cities. 2. Create array of countries called Arab of 22 countries, Write a function fill that fills the arrav Arab 3. Write a method that finds the city that has the max area in a country 4. Write a method that sorts the cities in a country from the largest to the smallest area 5. Write a function that retums array of countries of the same area of Arab 6. Write a function that compares between two countries. It returns true if countryl area greater than country2 area. 7. Write a function to move a city from one country to another.
- Java Question - Based on code, which answer out of the choices "A, B, C, D, E" is correct. Question has one correct answer. Thank you. Part 2 - 7. Which is possibly a composite class? class Seed { ... }class Fruit { Seed s1 = new Seed(); }class Apple extends Fruits { ... }class Orange extends Apple { ... }class ApplePie { ApplePie a1 = new ApplePie(); } A. FruitB. AppleC. ApplePieD. OrangeE. SeedImplement the above system using inheritance in the best possible way. Keep every object size as small as possible. Implement all methods (setter/getter/constructors and destructors) Note that the region area is 0 while the city is len*width and the country is the sum of their cities. Create array of countries called Arab of 22 countries. Write a function fill that fills the array Arab Write a method that finds the city that has the max area in a country Write a method that sorts the cities in a country from the largest to the smallest area Write a function that returns array of countries of the same area of Arab Write a function that compares between two countries. It returns true if country1 area greater than country2 area. Write a function to move a city from one country to another.Define a Polygon interface that has methods area() and perimeter(). Then implement classes for Triangle, Quadrilateral, Pentagon, Hexagon, and Octagon, which implement this interface, with the obvious meanings for the area() and perimeter() methods. Also implement classes, IsoscelesTriangle, Equilateral- Triangle, Rectangle, and Square, which have the appropriate inheritance relationships. Finally, write a simple user interface, which allows users to create polygons of the various types, input their geometric dimensions, and then out- put their area and perimeter. For extra effort, allow users to input polygons by specifying their vertex coordinates and be able to test if two such polygons are similar ORIGINAL WORKS ONLY
- a:) Define a Polygon interface that has methods area() and perimeter(). b:) Then implement classes for Triangle, Quadrilateral, Pentagon, Hexagon, and Octagon, which implement this interface, with the obvious meanings for the area() and perimeter() methods. c:) Implement classes, IsoscelesTriangle, Equilateral-Triangle, Rectangle, and Square, which have the appropriate inheritance relationships. d:) Write a simple user interface, which allows users to create polygons of the various types, input their geometric dimensions, and then output their area and perimeter. e:) For extra effort, allow users to input polygons by specifying their vertex coordinates and be able to test if two such polygons are similar. using all a to e parts develop a programAssume ContractEmployee, HourlyEmployee, CommissionEmployee, FixSalaryEmployee are sub-classes of Employee class. Define the body of below method suchthat it shall print how many employees of each type the ArrayList object passed as parametercontains? Static void countAndPrintAllTypesOfEmployee (ArrayList employees) { }Define a class named ComparableCirclethat extends Circle and implements Comparable. Draw the UML diagramand implement the compareTo method to compare the circles on the basis ofarea. Write a test class to find the larger of two instances of ComparableCircleobjects, and the larger between a circle and a rectangle.
- Code . Make a java class Vehicle.a. The class ought to have two fields:I. no_of_seats and no_of_wheels.b. Make two itemsI. Bike and Vehicle for this class.c. Your result ought to show the depictions for Vehicle and Bike.Complete the Course class by implementing the findStudentHighestGpa() method, which returns the Student object with the highest GPA in the course. Assume that no two students have the same highest GPA. Given classes: Class Course represents a course, which contains an ArrayList of Student objects as a course roster. (Type your code in here.) Class Student represents a classroom student, which has three private fields: first name, last name, and GPA. (Hint: GetGPA() returns a student's GPA.) Ex: If the following students and their GPA values are added to a course: Henry Nguyen with 3.5 GPABrenda Stern with 2.0 GPALynda Robison with 3.2 GPASonya King with 3.9 GPA then the findHighestStudent() method returns a student and the program output is: Top student: Sonya King (GPA: 3.9)Code:Course.java: import java.util.ArrayList; //create class Student //create class Courseclass Courses{ private ArrayList<Student> roster; // collection of Student object // class constructor…Java Program The assignment requires two classes. Put all classes in the same package. Class Employee Attributes (all private): id: String lastName: String firstName: String salary: int Methods: Parameterized constructor for initializing a new Employee instance Getters for all attributes toString method to display an Employee's attributes (See output of executable below) Executable Class Create an array of at least eight Employee objects. Be sure to use many with identical last names, but don't order them by name in the array. Create an ArrayList from the array. Sort the ArrayList first by last name and then by first name. Using the forEach method and a lambda expression, print all employees alphabetically sorted by name. Create a LinkedList from the ArrayList. Create an iterator capable of cycling both forward and backward through the LinkedList. Iterate forward through the LinkedList without generating any output. Then iterate backwards through the LinkedList to print…