do a Geomtric class have Circle + rectangle data and method then use inhertance for other class one is for Circle / and other for Rectangle
Q: The text shown in the Validation Text property box when a validation rule is broken is displayed in ...
A: INTRODUCTION: VALIDATION TEXT: Validation text is a customized message that appears when invalid dat...
Q: avaProgramming 3.a. Create a class named Circle with fields named radius, area and diameter. Inclu...
A: ALGORITHM:- 1. Create the class Circle. 2. Add fields in Circle class and all other methods as requi...
Q: For this question, you will be required to use the binary search to find the root of some function f...
A: import numpy as npdef binary_search(f,domain, MAX = 1000): start ,end = domain # get the start and e...
Q: ow l can open files txt in my com
A: Lets see the solution.
Q: Examine any possible connections between utility computing and grid computing and cloud computing.
A: Introduction: GRID COMPUTING is the use of computational resources from various administrative juris...
Q: There are three ways to pass arguments to parameters in a function. List them. Python.
A: Following is the all possible ways to pass arguments to parameters in a function in python. 1. Way I...
Q: Use the given string and generate the following output. String = 'A BATA BTATB ABTA T' Output1 = [('...
A: Since no programming language is mentioned, I am using python. Algorithm: Start Initialize s='A BAT...
Q: What are the limits of this destination IP-based forwarding method of delivering messages? Through t...
A: What are the limits of this destination IP-based forwarding method of delivering messages? Through t...
Q: Do composite attributes have the ability to be included in composite keys?
A: Introduction: More than one characteristic may be included in a composite key. Attribute names for e...
Q: Examples of software that has been utilized in the field of Agricultural Engineering are listed belo...
A: Agricultural Engineering is a field of study that applies engineering ideas and design to agricultur...
Q: In a database management system, what is a functional dependency?
A: I Step 2, I have provided brief explanation about functional dependency------
Q: Insert in an initially empty 2-4 tree, the following sequence of keys (in the given order): { 8,12,1...
A: Insertion into 2-4 Tree Sequence of keys: {8,12,1,15,2,14,3,10,5,6,4,9,16,21,7,17} Order of tree, m=...
Q: Make a program that asks the user to enter the marks (scores) of a student in a subject. If the mark...
A: Here, we are writing a python application which is for pass or fail first we are taking input from t...
Q: Data Algorithms (language: Java) Describe what each function does and its Big O? import java.util....
A: The total execution in java with depiction in remarks is as per the following:
Q: router?
A: Router: The router is the first line of defense against network intrusion. The best strategy to kee...
Q: In the process of deleting rows, columns, and tables, what is an important point to bear in mind is
A: Introduction : Database management systems are created in order to keep records of numerous linked e...
Q: Can you explain the high level steps you will normally follow to connect to a database of your choic...
A: We may use the cascade interaction to identify the required assignments, as well as the information ...
Q: Use the def keyword to create a funtion that will say. "Have a nice day!" You can name the function ...
A: We will see the above queries in python using Visual Studio Code : Code: def naming(name): ...
Q: Lesson 7: Using Prewritten Classes and Methods – JavaProgramming 1. Write a program to determine ho...
A: Note: As per Bartleby's answering guidelines, only one question can be answered at a time. Hence, 1s...
Q: Write a secure Bounded Stack class in Java, where the item type is string. Fail fast by throwing exc...
A: The answer is as follows.
Q: What is a collision domain, and how does it work?
A: Introduction: A domain is a collection of computers that can be accessed and directed using a standa...
Q: note: use python and not import Write a function named dictMax which takes two arguments: a diction...
A: data= {1:3, 3:2, 4:5, 2:6, 7:-1, 6:-3}maxVal= NonemaxKey= -1for k in data: if maxVal is None or m...
Q: Wite a method, exchange, that takes a Stack object as a parameter and exchanges the second element f...
A: import java.util.*;class Main { public static Stack exchange(Stack stack) { if(stack.isEmp...
Q: 2) What parameters are passed in this web string and what dynamic language do you think is being use...
A: The type of language is identified using the file extension we have Here, we are trying to load inde...
Q: Define collapse which reduces a list of MkType a b to two lists of type a and b respectively. You sh...
A: The collapse which reduces a list of MKType a b to two lists of type a and b respectively respecting...
Q: A company considers EG12 - Managed Digital Transformation Program as the hight priority enterprise g...
A: The answer is given below.
Q: hello! can you help me with my code? the expected output should be the same, it's on the photo. here...
A: The swap function will swap the values using pointers. It actually takes the parameters as the addre...
Q: A palindrome is a word or a phrase that is the same when read both forward and backward. Examples ar...
A: In Computer science programming that can concern as a central place in computer science and engineer...
Q: To find out more about the Advanced Encryption Standard (AES), do a search on the Internet. Take a l...
A: Introduction : AES: The data is protected by an encryption chosen by the US government. This strateg...
Q: Difference between RS 422 and RS 423 serial interfacing standards
A: Solution:-
Q: A computer with: 1. RAM of 1024 words 2. Instruction set of 16 instructions 3. CPU of 16 registers. ...
A: We are given that ram has 1024 words. We know, 1024 = 210 Hence we will need 10 bits to choose a uni...
Q: Explain two reasons why a national educational technology standard is required.
A: What are National Educational Technology Standards? National Educational Technology Standards(NETS)...
Q: se of Power Map (3D Maps)? Create an interactive, guided cinematic tour of your data on map Create a...
A: Explanation Power Maps or 3D Maps in Excel is a three-dimensional visualization tool that can be use...
Q: Explore database history and debate the three most significant database developments to date.
A: Introduction: There have been several changes throughout the years. Three significant changes in the...
Q: The big day arrived and I eagerly booted it. Regrettably, I am unable to use the computer as thought...
A: Introduction: To begin, let's look at the issue of recommendations. Purchase from a reputable brand ...
Q: If you are part of a software team that is developing a user interface for a smart phone, you must d...
A: Introduction: When a team begins working on a software project, there are five tasks that must be co...
Q: The most common means of computer/user interaction is a O a. keyboard/monitor O b. mouse/printer O C...
A:
Q: Recreate the form below using HTML --- IMPORTANT REMINDER: Make sure that the picture box is able to...
A: Here is the HTML code as below: <h1>BIO-DATA</h1> <p><input type="file" acc...
Q: Find out how to troubleshoot some of the most frequent issues with Linux hardware, software, file sy...
A: Introduction: Linux hardware difficulties may occur for a variety of reasons. It's a good idea to fa...
Q: There are two parts to this assignment. Part 1) Submit the three function prototypes (ReadInputRecor...
A: A function contains a block of code which performs a specific task. A function prototype is declarat...
Q: into simple operations, and pipelines the operations, rather than instructions. A) True B) False ...
A: 2) A let the instruction execution be divided into five stages as fetch, decode, execute, memory ac...
Q: JAVA PROGRAMMING: Lesson – Overloading Constructors 1. a .Create a class named Circle with fields n...
A: As per our guidelines, we are supposed to answer only one question. Kindly repost the remaining ques...
Q: Why compilers sometimes change the order of executions of the assembly instructions? Give one exampl...
A: compiler: Compilers are used because computer can't understand directly source code . It will only ...
Q: TCP (Transport Control Protocol) is a transport layer protocol that delivers full duplex, connection...
A: Introduction: TCP is a transport layer protocol that delivers full duplex, connection-oriented, and ...
Q: What level of security does the database have? What two strategies do you think are the most effecti...
A: Introduction: Database security uses a wide range of information security rules to safeguard databas...
Q: Create a python program. The amount of Miscellaneous Fee a High School student pays during enrollmen...
A: - We have to code for the total fee in python.
Q: What exactly is HTML?
A: Introduction What exactly is HTML?
Q: 2. What type of architecture, under ISA classification, directly uses the memory, instead of a regis...
A: The expression "CISC" (complex instruction set computer or computing) alludes to PCs planned with a ...
Q: Write the MATLAB Code for the ff: Given the vectors: a = [3 6 7]; b = [1 9 4]; c = a + b
A: The answer is given below.
Q: What exactly is a database management system (DBMS)? Make a list of the positives and disadvantages.
A: Introduction: A database management system is abbreviated as DBMS. It is a collection of programmes ...
do a Geomtric class
Step by step
Solved in 2 steps
- Define the Circle2DYourLastName class that contains: Two double data fields names x and y that specify the center of the circle withgetter methods. A double data field radius with getter method. A constructor that creates a circle with specified x, y, and radius. A method findTypeOfIntersection to determine and return types ofintersection as string (contained, overlap, or separate).USING C++ Overload the = operator for your Rectangle class, Rectangle class is below, it should return a Rectangle in order to support multiple assignments in one line, e.g. a = b = c;. Copying from the pdfs is acceptable, but make sure you understand how it works. Overload the < and > operators in Rectangle to determine if one rectangle is bigger than the other, based on area. Demonstrate that your new operators work by writing a simple main() function to show they work. *** Rectangle Class *** Rectangle.hclass Rectangle{private:double width;double length;char* name;void initName(char* n);public:Rectangle();Rectangle(double, double,char*);//Copy ConstructorRectangle(Rectangle&);~Rectangle();Rectangle& operator=(const Rectangle&);...}; ****End of Rectangle Class**** ****Overloaded = operator, returns a rectangle by reference**** Rectangle.cpp Rectangle& Rectangle::operator=(const Rectangle& r){length = r.length;width = r.width;strcpy(name, r.name);return…Now we want to create an Object oriented System for a shopping mall. It has Items with name, manufacturer and price. Provide constructors. Getters, setters, toString methods. We add several items to Store. For that create a store class having name and array of items, Provide Constructors, getters/setters and toString(), in addition you have to provide a method add which add new item to the array.
- You have been hired by a local grocery store in order to update and expand the CashRegister Class that was discussedin class. Yourtaskis to update the class by adding functionality to it such that it will compute the total sales by all customer in a whole day, reset all variables after the store closes every day, and showthe customer count per day, every day In order to accomplish your taskyou needto do two smaller tasks: 1. Update the existing methods presented during lecture time, as needed, to accomplish the task described, above. 2 In order to help you further, you need to wite 4 new methods, as follows: • addCustomerCount () – increments the customer count at the end of every customer sale end • getCustomerCount () - gets/retums the customer count; to be invoked at the end of every day getSalesTotal () - gets/retums the total customer sales for all customers; to be invoked at the end of every day • resetSales () - clear daily instance variables that need to be cleared at the end…Write a method for the farmer class that allows a farmer object to pet all cows on the farm. Do not use arrays.Write a class Point for 2D Cartesian co-ordinates. The class should have 2 fields: abscissa(x) and ordinately). The class should have a method which takes a Point object as parameter and finds the distance between the two points (calling object & argument). The class should also have a static method that takes 2 point objects and returns their midpoint as a new Point object. (No driver class or no other methods required) The distance (d) between 2 points (x1, y1) and (x2, y2) is given by: d = (x1 – x2)2 + (y1 – y2)² The midpoint (x3, y3) between 2 points (x1, y1) and (x2, y2) is given by: x3 = (x1+x2)/2 y3 = (y1+y2)/2
- Write a class that would match a string. The class has method match with String as a return type. It accepts two inputs: the phrase/sentence string (text) and the pattern string (word). This method finds the first (or all) instances of the pattern in the text and changes that word in all uppercase and return the new phrase. Method countOccurence accepts a phrase/sentence and a pattern string and returns its number of occurrences. Add a main method that will allow the user to input the phrase/sentence and pattern. Call method match and countOccurence. See test case below. Sample Input: Text string: You will always have my love, my love, for the love I love is as lovely as love itself. Pattern string: love Output: New text: You will always have my LOVE, my LOVE, for the LOVE I LOVE is as lovely as LOVE itself. Number of occurrence: 5 For example: Input Result You will always have my love, my love, for the love I love is as lovely as love itself. love New text: You will…Help, I making a elevator simulator, I need help in writing code in the Elevator class and it's polymorphism class. I am not sure what to do next. Any help is appreciated. There are 4 types of passengers in the system:Standard: This is the most common type of passenger and has a request percentage of 70%. Standard passengers have no special requirements.VIP: This type of passenger has a request percentage of 10%. VIP passengers are given priority and are more likely to be picked up by express elevators.Freight: This type of passenger has a request percentage of 15%. Freight passengers have large items that need to be transported and are more likely to be picked up by freight elevators.Glass: This type of passenger has a request percentage of 5%. Glass passengers have fragile items that need to be transported and are more likely to be picked up by glass elevators. There are 4 types of elevators in the system:StandardElevator: This is the most common type of elevator and has a request…In Assignment 4, you created a Card class that represents a standard playing card. Use this to design and implement a class called DeckOfCards that stores 52 objects of the Card class using an array. Include methods to shuffle the deck, deal a card, return the number of cards left in the deck, and a toString to show the contents of the deck. The shuffle methods should assume a full deck. Document your design with a UML Class diagram. Create a separate driver class that first outputs the populated deck to prove it is complete, shuffles the deck, and then deals each card from a shuffled deck, displaying each card as it is dealt along with the number of cards left in the deck. Hint: The constructor for DeckOfCards should have nested for loops for the face values (1 to 13) within the suit values (1 to 4) calling the two parameter constructor. The shuffle method does not have to simulate how a deck is physically shuffled; you can achieve the same effect by repeatedly swapping pairs of…
- Write a derived class of the NumberGuesser class named RandomNumberGuesser. The derived class should override the behavior of the getCurrentGuess method. It may also add member data and its own constructor. It may also override the higher(), lower() and reset() methods as you see fit. To get everyone started off on the same page I have written a NumberGuesser class. It is defined entirely in-line in the following file: NumberGuesser.h (Links to an external site.) In the current NumberGuesser class the getCurrentGuess() method returns the midpoint of the range of possible values. In your RandomNumberGuesser class the getCurrentGuess() method should return a randomly generated number in the range of possible values. Note that repeated calls to getCurrentGuess() should always return the same value for both classes if neither the higher() or the lower() functions are called. Consider the following example: NumberGuesser *ng = new NumberGuesser(1, 10);cout <<…I need help to solving the problem with master method.In Assignment 4, you created a Card class that represents a standard playing card. Use this to design and implement a class called DeckOfCards that stores 52 objects of the Card class using an array. Include methods to shuffle the deck, deal a card, return the number of cards left in the deck, and a toString to show the contents of the deck. The shuffle methods should assume a full deck. Document your design with a UML Class diagram. Create a separate driver class that first outputs the populated deck to prove it is complete, shuffles the deck, and then deals each card from a shuffled deck, displaying each card as it is dealt along with the number of cards left in the deck. Hint: The constructor for DeckOfCards should have nested for loops for the face values (1 to 13) within the suit values (1 to 4) calling the two parameter constructor. The shuffle method does not have to simulate how a deck is physically shuffled; you can achieve the same effect by repeatedly swapping pairs of…