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
- Design a new Triangle class that extends the abstract GeometricObject class: Draw the UML diagram for the classes Triangle and GeometricObject Implement the Triangle class Write a test program that prompts the user to enter three sides of the triangle, a color, and a Boolean value to indicate whether the triangle is filled: The program should create a Triangle object with these sides and set the color and filled properties using the input The program should display the area, perimeter, color, and true or false to indicate whether it is filled or notRainfall Type Create a RainFall class that keeps the total rainfall in an array of doubles for each of the 12 months. Methods in the programme should return the following values: • the total annual rainfall; • the average monthly rainfall • the wettest month of the year • the month with the least amount of rain Demonstrate the class in its entirety. Validation of Input: Accepting negative amounts for monthly rainfall data is not permitted.Shape Classes Design classes Square, RightTriangle , and Triangle that encapsulate three geometric shapes. Each class should implement a method void draw (int x, int y) that “draws" a square, a right triangle, or an equilateral triangle (a triangle with three equal sides), respectively. See Figure 2. The parameters x and y specify the relative position of the figure: y lines down and x spaces acro from the current position of the screen cursor. The instance variables of each class are: int rows , the number of rows that comprise the figure, and char character , the keyboard character used for drawing the figure. Each shape of Figure 2 consists of five rows. The drawing characters are *** for the square, %' for the right triangle, and #' for the equilateral triangle. Shape (abstract) int rows char character Shape() Shape(int x, char c) int get rows() char getCharacter() void setRows(int x) void setCharacter(int x) void draw(int x, int y) (abstract) Square() Square(int x, char ch) void…
- Computer Science You are required to develop a small chatting application where two or more friends can communicate each other through messages. Create a class Message which has Date d, and message (string). Provide getters/setters, constructors, toString. Create a class Friend having String name, String contact, email and ArrayList of Messages provide getters/setters, constructors, toString addMessage(Message m) method which will add new message to the list. Provide following options to the user using JFrame. Login which will help user login to the application. View Friends (Display List of All Friends) View Messages ( This should display all message of a Friend) Send message (This should ask for friend name and message match the friend name and write that message to the array list).A SuperDie Class Write a class SuperDie that models a single die with an arbitrary number of sides, not just six. A die instantiated with the default constructor has six sides. The methods of this class should be: • roll a die and return its value, • return the number of sides on a die, and • change the number of sides on a die. Include a main(...) method that tests all the methods of your class.Java - Access Specifiers Create a class named Circle that has attributes radius, area, and circumference and make the attributes private. Make a public method that sets the radius and a method that prints all attributes. Ask the user input for radius. Note: Use the PI from the math functions Inputs A line containing an integer 10 Sample Output Radius: 20 Area: 1256.64 Circumference: 125.66
- The Point2D should store an x and y coordinate pair, and will be used to build a new class via class composition. A Point2D has a x and a y, while a LineSegment has a start point and an end point (both of which are represented as Point2Ds). class Invariants The start and end points of a line segment should never be null Initialize these to the origin instead. Data A LineSegment has a start point This is a Point2D object All data will be private A LineSegment also has an end point. Also a Point2D object Methods Create getters and setters for your start and end points public Point2D getStartPoint() { public void setStartPoint(Point2D start) { Create a toString() function to build a string composed of the startPoint’s toString() and endPoint’s toString() Should look like “Line start(0,0) and end(1,1)” Create an equals method that determines if two LineSegments are equal public boolean equals(Object other) { if(other == null || !(other instanceof LineSegment)) return…Java Programming Create your own class that illustrates the use of encapsulation. Make sure to include at least one setter and one getter for the class1. Rainfall Class Write a RainFall class that stores the total rainfall for each of 12 months into an array of doubles. The program should have methods that return the following: • the total rainfall for the year • the average monthly rainfall • the month with the most rain • the month with the least rain Demonstrate the class in a complete program. Input Validation: Do not accept negative numbers for monthly rainfall figures.
- Code the StudentAccount class according to the class diagramMethods explanation:pay(double): doubleThis method is called when a student pays an amount towards outstanding fees. The balance isreduced by the amount received. The updated balance is returned by the method.addFees(double): doubleThis method is called to increase the balance by the amount received as a parameter. The updatedbalance is returned by the method.refund(): voidThis method is called when any monies owned to the student is paid out. This method can onlyrefund a student if the balance is negative. It displays the amount to be refunded and set thebalance to zero. (Use Math.abs(double) in your output message). If there is no refund, display anappropriate message.Test your StudentAccount class by creating objects and calling the methods addFees(), pay() andrefund(). Use toString() to display the object’s data after each method calledc# programMake a class called Employees, with attributes Name, Gender, Experience, Salary and ID.Make a delegate called EligiblePromo. This delegate takes an employees object as a parameter and returns a boolean value indication whether or not the employee should be promoted.Make a PromoteEmployee() method that takes an arraylist of Employees and delegate of type EligiblePromo as parametersNB: PromoteEmployee() methos loops through each Employees object and passes it to the delegate(25)Design a class Circle with the following Private double data for radius One no arg constructor One constructor with parameters One method to find area Getter and setter Write a program to create 2 objects with values of radius = 5.5 and 6.5 Print the radius and area of each object. Show the use of get and set methods %3D