Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

C PART 1: Define A Class Named Rectangle With Four Data Members: Two Integers

C PART 1: Define a class named Rectangle with four data members: two integers x and y for the coordinates of the upper left corner. two integers width and height for its width and height. This class should have a constructor that takes four arguments one for each of its data members. It should also have a virtual function named getName()that returns the string “Rectangle” and a virtual destructor. PART 2: Knowing that a square is a rectangle whose width and height are the same, define a class names Square that inherits from Rectangle This class should have a constructor that takes three arguments (x, y, and width) and delegates initialization to the Rectangle constructor. It should also override the getName() function by returning the string “Square”. In [ ]: //TODO: The Rectangle class In [ ]: //TODO: The Square class CODING CHALLENGE Create two objects: a rectangle and a square. Also, create a rectangle pointer named rptr and initialize it to nullptr. Then: point the rptr pointer to the rectangle object and use it to call the getName() function. point the rptr pointer to the square object and use it to call the getName() function. In [ ]: //TODO CODING CHALLENGE Create another two objects: a rectangle and a square. Create a rectangle reference named rref and make it an alias to the square object. Use it to call the getName() function.

Please Help Me With The Following Question: Https://www.chegg.com/homework-help/questions-and-answers/design-class-called-treenode-class-java-file-called-treenodejava-encodes-binary-tree-node–q39139828 Design A Class Called TreeNode (the

Please help me with the following question: https://www./homework-help/questions-and-answers/design-class-called-treenode-class-java-file-called-treenodejava-encodes-binary-tree-node–q39139828 Design a class called TreeNode (the class java file should be called TreeNode.java) that encodes a binary tree node with integral values, with the following (exact) fields and methods/constructors: Fields and Methods Description Fields Data The integral data store in the node Left Link to the left subtree Right Link to the right subtree Methods TreeNode A constructor with no parameters that initialized the fields Design a class called TreeNodeWrapper (the class java file should be called TreeNodeWrapper.java) that encodes a wrapper for the TreeNode class, with the following (exact) fields and methods/constructors: Fields and Methods Description Fields TreeNodeRef A reference to a tree node Left Link to the left subtree Right Link to the right subtree Methods get Return the TreeNode from the wrapper set Add a TreeNode to the wrapper Design a class called BinarySearchTree (the class java file should be called BinarySearchTree.java) that encodes an extended version of a binary search tree, with the following (exact) fields and methods/constructors: Fields and Methods Description Fields Root The root node of the tree (a TreeNode object) Methods BinarySearchTree A constructor with no parameters that initialized the fields Insert Insert a value (given by the parameter) into a new node in the tree. Use the TreeNodeWrapper to manage the TreeNode Fetch Fetch a value (given by the parameter) from the tree Delete Delete a value (given by the parameter) from the tree Update Update a value (given by the first parameter) from the list to a new value (given by the second parameter) FindNode Find a value in the tree (given by the parameter) TraverseLNR Traverse the tree in LNR order TraverseLRN Traverse the tree in LRN order TraverseNLR Traverse the tree in NLR order TraverseNRL Traverse the tree in NRL order TraverseRLN Traverse the tree in RLN order TraverseRNL Traverse the tree in RNL order Design a class called Graph (the class java file should be called Graph.java) that implements an LQHsdhede data structure, with the following (exact) fields and methods/constructors: Fields and Methods Description Fields Vertex The one-dimensional array of vertices Edge The two-dimensional array of edges. The value in each cell is the edge weighting. MaxVertices The maximum number of vertices NumberVertices The number of vertices in the graph Methods Graph A constructor with no parameters that initialized the fields and create the arrays TraverseDepthFirst Traverse the graph in depth-first order TraverseBreathFirst Traverse the graph in breadth-first order Sort Collect the vertices in an array and sort them using the fastest sorting algorithm and output therm MinimumSpanningTree Determine the minimum spanning tree and output it (traverse in NLR order) ShortestPath Determine the shortest path betweek every 2 vertices in the graph and output them Once you have designed the 2 classes (BinarySearchTree and Graph), design a program/project/driver class (the program/project/driver class file should be called [YourName]Assignment3; replace [YourName] with your actual name) that creates objects of each of the classes DoublyLinkedList and LQHashed and demonstrate the functionality of all the methods. You will need to add the classes BinarySearchTree and G

Give An Example Of How Specific Clustering Methods Can Be Integrated, For Example, Where

Give an example of how specific clustering methods can be integrated, for example, where one clustering algorithm is used as a preprocessing step for another.

Please Use Sql To Give Me Database About This Pic. I Need Do The

please use sql to give me database about this pic. I need do the project. commands like joins etc must be used. thanks

Can A Company Exist Without Having Clear Core Competencies? Can You Think Of An

Can a company exist without having clear core competencies? Can you think of an example?

In C# Create A Program Using Functions And Arrays. The Program Will Ask The

In C# create a program using functions and arrays. The program will ask the user for player ones name and then player twos name. The game will then ask what row the player wanted to use and then what column. The board will display the row numbers above the board and column numbers to the left of the board. The board must display x and o of the players choice.

Which One Following: Peek ,pop ,add , Push Is Not Stack Operator

which one following: peek ,pop ,add , push is not stack operator

SQL: Write A SELECT Query That Returns The VendorName And The SUM Of The

SQL:  Write a SELECT query that returns the vendorName and the SUM of the balanceDue (invoiceTotal – paymentTotal – creditTotal) as sumBalanceDue for all invoices with a past due balance (DATEDIFF 0) GROUP BY vendorName and sort by sumBalanceDue with the greatest first.

SQL: Modify The Search Expression For The InvoiceDueDate From The Solution For Exercise Two.

SQL: Modify the search expression for the invoiceDueDate from the solution for exercise two. Rather than 30 days from today, return invoices due before the last day of the current month. (Be sure also to compare the year!) Exercise two solution: SELECT invoiceNumber, invoiceTotal-paymentTotal-creditTotal AS balanceDue, invoiceDueDate FROM invoices WHERE invoiceTotal – paymentTotal – creditTotal > 0 AND DATEDIFF(DAY, invoiceDueDate, GETDATE() ) < 30;

For Amazon IT Governance And Strategic Vision, Provide Checklist Of The Main Points Amazon’s

For Amazon IT Governance and strategic vision, provide checklist of the main points Amazon’s IT department should consider so IT is properly aligned to Amazon’s strategic business plan. Include relevant laws, regulations, and industry standards that would impact the business plan, such as PCI standards and SOX regulations.

Select One Of The Articles And Write A Response To It. The Assignment Should

select one of the articles and write a response to it. The assignment should be about one page as a short summary of the article as well as what you take away from it and what your perspective is on the subject. Toward Cybe rresiliency in the Context of Cloud Computing Cybertrust in the IoT Age Highly Dangerous Hacking Group Is Now Targeting Power Grids A new Equation Editor exploit goes commercial, as maldoc attacks using it spike 3 reasons attackers love your servers

Develop A Program To Find Rare Prime Decades. Consider A Decade To Be A

Develop a program to find rare prime decades. Consider a decade to be a series of numbers between and including 10a 1 and 10a 10, where a = 0,1,2,3… Rare decades are those which contain four primes. Output such decades less than 5000.

Summarize The Effectiveness Of Amazon’s IT Governance And How It Executes It’s IT Strategic

summarize the effectiveness of Amazon’s IT governance and how it executes it’s IT strategic vision as you understand it. (1-2 pages)

NEED HELP FAST! THANK YOU In This Exam You Will Re-write The Foreign Currency

NEED HELP FAST! THANK YOU In this exam you will re-write the foreign currency calculator program from earlier in the course as a form and oop application. Your program will operate on three currencies: GBP (British Pounds), CAD (Canadian dollars), EUR (Common Market Euros). The application form should be: When the program starts the only fields active should be the ‘Rate Per US$’ input fields and the ‘Load Rates’ button.   The user will enter the rates and then hit the ‘Load Rates’ button in order to instantiate a Currency.java object to hold those rates. At that point the quantity fields will become active (and the Rates input fields disabled), and the user proceeds to enter quantities to purchase; when Calculate is pressed, the quantity values are sent to the object and the total cost amounts are returned (including the total of all currencies purchased). To accomplish this in OOP style you will build a ‘Currency.java’ business class to hold the exchange rates and handle the calculations. The Currency class will have the following features: A constructor which receives the exchange rates from the user input screen and instantiates itself by setting internal global variables to store the current rates for each currency owned. Make sure to validate the input rates as legal (i.e, > 0)

Need Help To Accomplish This In OOP Style You Will Build A ‘Currency.java’ Business

Need help To accomplish this in OOP style you will build a ‘Currency.java’ business class to hold the exchange rates and handle the calculations. The Currency class will have the following features: A constructor which receives the exchange rates from the user input screen and instantiates itself by setting internal global variables to store the current rates for each currency owned. Make sure to validate the input rates as legal (i.e, > 0). A series of ‘set’ methods which allow you to set quantities for each currency type (e.g., setCADQty(x) to set the quantity, x, of Canadian dollars) Remember that for simplicity’s sake, you will limit your Currency.java class to only handling the 3 currencies named above. A series of ‘get’ methods to retrieve the calculated value for each currency (e.g., a getGBPVal() method to return the total value of the British pounds, etc.). These get methods are used to fill the third column shown above: ‘Value (US$)’. A ‘get’ method to return total value of all currencies (all types added together) to fill the last total value box shown above. All currency total amounts should be formatted for currency when displayed

Could You Do The Following In Flowchart: 1.Design A Program That Prompt The User

Could you do the following in flowchart: 1.Design a program that prompt the user to enter 10 integer numbers into an array. Program should print all the odd numbers of the array with a count of how many odd numbers were in the array. 2. Design a program that allows the user to enter 200 characters in an array of one dimension. Program should print a count for each one of the vowels (a, e, i, o, u.) user entered in the array.

NEED HELP FAST! THANK YOU In This Exam You Will Re-write The Foreign Currency

NEED HELP FAST! THANK YOU In this exam you will re-write the foreign currency calculator program from earlier in the course as a form and oop application. Your program will operate on three currencies: GBP (British Pounds), CAD (Canadian dollars), EUR (Common Market Euros). The application form should be: When the program starts the only fields active should be the ‘Rate Per US$’ input fields and the ‘Load Rates’ button.   The user will enter the rates and then hit the ‘Load Rates’ button in order to instantiate a Currency.java object to hold those rates. At that point the quantity fields will become active (and the Rates input fields disabled), and the user proceeds to enter quantities to purchase; when Calculate is pressed, the quantity values are sent to the object and the total cost amounts are returned (including the total of all currencies purchased). To accomplish this in OOP style you will build a ‘Currency.java’ business class to hold the exchange rates and handle the calculations. The Currency class will have the following features: A constructor which receives the exchange rates from the user input screen and instantiates itself by setting internal global variables to store the current rates for each currency owned. Make sure to validate the input rates as legal (i.e, > 0)

In C Please! Please Include .cpp And .hpp Files! Thank You! Stack And Queue

In C please! Please include .cpp and .hpp files! Thank you! Stack and Queue STL Containers Goals Implement linear data structures using STL containers In this lab, we will create two data structures using STL containers: “stack” and “queue”. Requirements Note: “deque” STL container is not allowed, for the simplicity for graders. Queue Queue is a first-in-first-out (FIFO) data structure. For the Queue container, we will implement a program that simulates a buffer. The simulation needs a function that randomly generate number. And the buffer simulation starts with no value in the buffer. At the start of simulation, the menu should ask user: how many rounds will be simulated. the percentage chance to put a randomly generated number at the end of buffer. the percentage chance to take out a randomly generated number at the front of buffer. Note: For all the percentages, the “%” character is not required from user inputs. For example, if user input 25, it means 25%, and the number “25” is stored in the variable, not “25%”, or “0.25”. Once all the user input is validated and stored in variables, the buffer simulation will start. The following is the flow of each round in the simulation: Generate a random number from 1 – 1000 called N. Appending number: Generate another random number from 1 – 100, if the outcome is less than or equal to the user specified percentage for adding value (Ex: 25), then append the number N into the queue. Removing numbers: Generate another random number from 1 – 100, if the outcome is less than or equal to the user specified percentage for removing value (Ex: 25), then remove a number from the front of queue. Output the values in the buffer, and then output the length of the buffer. Output the average length of buffer. Equation for the average length of buffer: ALi = (ALi-1 * (i – 1) Li ) / i where ALi and ALi-1 are the average length in the ith and (i-1)th round, Li is buffer length in the ith round. Note: The average length should be double/float data type, so when printed, it should have decimals Note: A general rule of thumb, if the buffer has higher percentage of adding value than removing value, the average length of buffer should increase; while if the buffer has lower percentage of removing value than adding value, the average length of buffer should decrease. Stack Use a stack to create a function that creates a palindrome, which is a string that is the same forwards and backwards. For example, “racecar” is a palindrome. The function should receive a string from user input, and return the string with the palindrome, by first adding the values of the original string sequentially to the stack, then popping off characters one by one and printing the character. The popped off string would be in reverse order when you pop them off the stack. For example, if user inputs “hello”, your program will print the palindrome “helloolleh”. Menu Create a menu for the user to test the buffer and create a palindrome. For the queue, prompt the user to enter the two percentages, and the total number of rounds. Then, display the results to the console in each round. For the stack, prompt the user to enter a string. Create the palindrome and then display it. What to submit All the program files including header and source files (.cpp/.hpp) Makefile Important: Put all the files in a single .zip file and submit it on Canvas. Grading Programming style -10% Implement buffer simulation using – 30% Implement palindrome function using – 30% Create a menu program – 30%

Please Help Me To Figure Out The Problem Of Search Function And Solve It.(BUILD

Please help me to figure out the problem of search function and solve it.(BUILD SUCCESSFUL, BUT RUN FAILD) #include #include #include struct node { char name[32]; struct node* child; struct node* sibling; }; typedef struct node NodeType; /* Recursively searches tree for item. */ NodeType* SearchMember(NodeType* tree, char *target) { if (tree == NULL) return NULL; else if (strcmp(tree->name, target) == 0) return tree; else if(tree->child != NULL) return SearchMember(tree->child, target); else if(tree->sibling != NULL) return SearchMember(tree->sibling, target); else return NULL;    } /* Inserts sibling into tree*/ NodeType *InsertSibling(NodeType *tree, char *newName){ if(!tree){ tree = (NodeType *) malloc(sizeof (NodeType)); strcpy(tree->name, newName); } else { tree->sibling = InsertSibling(tree->sibling, newName); } return tree;    } /* Inserts item into tree. */ NodeType *InsertMember(NodeType *tree, char *newName, char *parentName) { if (!tree) { tree = (NodeType *) malloc(sizeof (NodeType)); strcpy(tree->name, newName); } NodeType *parentNode = SearchMember(tree, parentName); if (parentNode == NULL) { //not found printf(“Parent does not exist”); } else if(parentNode->child == NULL){ //found parentNode->child = (NodeType *) malloc(sizeof (NodeType)); strcpy(parentNode->child->name, newName); parentNode->child->sibling = NULL; } else{ parentNode->child->sibling = InsertSibling(parentNode->child->sibling, newName); } return tree; } int main(void) { NodeType *tree = NULL, *ptr; /* Test Insert Function */ tree = InsertMember(tree, “William I”, “William I”); tree = InsertMember(tree, “Robert”, “William I”); tree = InsertMember(tree, “William II”, “William I”); tree = InsertMember(tree, “Anna”, “William I”); tree = InsertMember(tree, “Henry I”, “William I”); tree = InsertMember(tree, “Steven”, “Anna”); tree = InsertMember(tree, “William”, “Henry I”); tree = InsertMember(tree, “Matilda”, “Henry I”); tree = InsertMember(tree, “Henry II”, “Matilda”); /* Test SearchMember function*/ ptr = SearchMember(tree, “William”); if (ptr) printf(“Name: %sn”, ptr->name); else printf(“Member not found.n”); return 0; }

Can Some One Please Answer This, Write The Proper Working Code Do Not Attempt

can some one please answer this, write the proper working code do not attempt if your not 100% sure

C CODING CHALLENGE Define The Classes That Implement The Following Hierarchy With Manager And

C CODING CHALLENGE Define the classes that implement the following hierarchy with Manager and Scientist each inheriting from both Employee and Student. Employee Student △ △ | | | | ——— Manager ———- | | | | ———Scientist ——— C Define the classes that implement the following class hierarchy. Use the keyword virtual to insure your classes do not suffer from the diamond problem. ———▷ BaseClass ◁ ——— | | | | DerivedClass1 DerivedClass2 △ △ | | | | —– DerivedFurtherClass1 —— | | | | —– DerivedFurtherClass2 ——

The post C PART 1: Define A Class Named Rectangle With Four Data Members: Two Integers appeared first on Smashing Essays.

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"