Write C Project Takes User Input Array Merge Sort Q43867675
write a c++ project that takes user input array and mergesort.
Expert Answer
Answer to write a c++ project that takes user input array and merge sort….
Write C Pseudocode Reads Width Height Rectangle Calculates Displays Area Perimeter Rectang Q43905400
Write a c++ pseudocode that reads in the width and height of arectangle, calculates and displays the area and perimeter of therectangl.
Expert Answer
Answer to Write a c++ pseudocode that reads in the width and height of a rectangle, calculates and displays the area and perimeter…
Write C Read List Numbers Txt File Array First Digit List Array Size Second Number List Fi Q43787044
Write a C++ that read a list of numbers from a .txt file intoarray. The first digit on the list will be array size, while thesecond number on the list will be our first number in our arraylist.
Example: t1.txt file contain list off input number: 5, 3, 6, 10,43, 23. notice the first number is 5 which will need to be use asan array size and the rest of the numbers are in the array. Whileusing dynamic array without using vector.
so file program should be read as array has limit of 5 numbersand the array list are {3, 6, 10, 43, 23}
Expert Answer
Answer to Write a C++ that read a list of numbers from a .txt file into array. The first digit on the list will be array size, whi…
Write Class Definition Including Attributes Bankaccount Customer Person Bankid Balance Par Q43790307
- Write the class definition including itsattributes
Bank_account
Customer Person
Bank_Id
Balance
parameter constructor
default construtor (name=”*****” id=-111111, balance=0; )
Display
deposit // accepts amount throws anexception
withdraw // accepts amount
b)
- Implement the parameter constructor
- Inplement display function and test it firstin the main driver
- Implement a deposit function
- Implement withdraw that includes exceptionhandling when we attempt to withdraw beyond the balance
A possible solution
- withdraw throwsException_no_fund
- Exception_no_fund e=new Exception_no_fund ( “ balancelow”);
if ( (balance – amount)<0) throw e;
- Implement the exception class
- Exception_no_fund extendsException
- private data string message
- one paramter constructor
- In the test driver you need to protect the withdraw method withtry block
try{ withdraw}
- After the try block catch the exception in case it isthrown
catch (Exception_no_fund e){ e.display;}
Expert Answer
Answer to Write the class definition including its attributes Bank_account Customer Person Bank_Id Balance parameter constructor …
Write Class Java Controls Drone Class Certain Public Methods Allow Ui Control Drone Displa Q43857192
Write a class in JAVA that controls a drone. The class will havecertain public methods that allow the UI to control the drone, anddisplay the drone location. The internal variables would track thedrone’s location (x, y and z coordinates). The public methods wouldallow the UI to change drone’s height and x/y position. The UIshould mimic a set of drone controls: Up/Down Forward/Backward TurnLeft/Turn Right There would also be a public method that retrievesthe current drone position (x, y and z). No actual graphic but youwill create a menu.
Not a GUI. Just a console UI.
Java
Expert Answer
Answer to Write a class in JAVA that controls a drone. The class will have certain public methods that allow the UI to control the…
Write Class Method Printz Int Width Belongs Class Figure Print Figure Using Asterisks Simi Q43785580
Write a class methodprintZ(int width), which belongs to a class Figure, to print afigure using asterisks similar to the figure below (where”□” denotes a space and width is an oddinteger).
The figure is generated byFigure.printZ(7).
*******
□□□□□*□
□□□□*□□
□□□*□□□
□□*□□□□
□*□□□□□
*******
Expert Answer
Answer to Write a class method printZ(int width), which belongs to a class Figure, to print a figure using asterisks similar to th…
Write Class Named Employee Following Properties Name Name Property Holds Employee S Name I Q43778319
Write a class named Employee that has the following properties.• Name: The Name property holds the employee’s name. • IdNumber:The IdNumber property holds the employee’s ID number. • Department:The Department property holds the name of the department in whichthe employee works. • Position: The Position property holds theemployee’s job title. The class should have the followingoverloaded constructors: • A constructor that accepts the followingvalues as arguments and assigns them to the appropriate properties:employee’s Name, IdNumber, Departmentand Position. • A constructorthat accepts the following values as arguments and assigns them tothe appropriate properties: employee’s Name and IdNumber. TheDepartmentand Position properties should be assigned an emptystring. • A parameter less constructor that assigns empty string toName, Department and Position properties, and 0 to IdNumber.

Create three employee objects to hold the following information: Name Susan Meyers Mark Jones Joy Rogers id Number 47899 39119 81774 Department Accouting IT Manufacturing Position Vice President Programmer Engineer Show transcribed image text Create three employee objects to hold the following information: Name Susan Meyers Mark Jones Joy Rogers id Number 47899 39119 81774 Department Accouting IT Manufacturing Position Vice President Programmer Engineer
Expert Answer
Answer to Write a class named Employee that has the following properties. • Name: The Name property holds the employee’s name. �…
Write Class Named Month Class Int Field Named Monthnumber Holds Number Month Example Janua Q43865423
I want the solution in java
Write a class named Month. The class should have an int field named monthNumber that holds the number of the month. For example, January would be 1, February would be 2, and so forth. In addition, provide the following methods: • A no-arg constructor that sets the monthNumber field to 1. • A constructor that accepts the number of the month as an argument. It should set the monthNumber field to the value passed as the argument. If a value less than 1 or greater than 12 is passed, the constructor should set monthNumber to 1. • A constructor that accepts the name of the month, such as “January” or “February” as an argument. It should set the monthNumber field to the correct corresponding value. A setMonthNumber method that accepts an int argument, which is assigned to the monthNumber field. If a value less than 1 or greater than 12 is passed, the method should set monthNumber to 1. • A getMonthNumber method that returns the value in the monthNumber field. • A getMonthName method that returns the name of the month. For example, if the monthNumber field contains 1, then this method should return “January”. • A toString method that returns the same value as the getMonthName method. • An equals method that accepts a Month object as an argument. If the argument object holds the same data as the calling object, this method should return true. Otherwise, it should return false. Show transcribed image text Write a class named Month. The class should have an int field named monthNumber that holds the number of the month. For example, January would be 1, February would be 2, and so forth. In addition, provide the following methods: • A no-arg constructor that sets the monthNumber field to 1. • A constructor that accepts the number of the month as an argument. It should set the monthNumber field to the value passed as the argument. If a value less than 1 or greater than 12 is passed, the constructor should set monthNumber to 1. • A constructor that accepts the name of the month, such as “January” or “February” as an argument. It should set the monthNumber field to the correct corresponding value. A setMonthNumber method that accepts an int argument, which is assigned to the monthNumber field. If a value less than 1 or greater than 12 is passed, the method should set monthNumber to 1. • A getMonthNumber method that returns the value in the monthNumber field. • A getMonthName method that returns the name of the month. For example, if the monthNumber field contains 1, then this method should return “January”. • A toString method that returns the same value as the getMonthName method. • An equals method that accepts a Month object as an argument. If the argument object holds the same data as the calling object, this method should return true. Otherwise, it should return false.
Expert Answer
Answer to Write a class named Month. The class should have an int field named monthNumber that holds the number of the month. For …
Write Code Calculates Displays Average Sum Product Odd Numbers 1 N C Programming Language Q43794206
Write a code that calculates and displays the average, sum, andproduct of odd numbers from 1 to N.(C programming language)
Expert Answer
Answer to Write a code that calculates and displays the average, sum, and product of odd numbers from 1 to N.(C programming langua…
Write Code Extend Binary Search Tree Class Properly Implement Big Three Memory Management Q43874936
Please use C++ and the lower level member functions given. Thankyou!

write code to extend the binary search tree class such that you properly implement the big three memory management functions in terms of the lower level member functions BinarySearch Tree:: kill-tree (TreeNode* n) and TreeNode* BinarySearchTree::copy (const TreeNode* source). class TreeNode {public: TreeNode(); void insert_node (TreeNode* new_node); private: string data; TreeNode* left; TreeNode* right; friend class BinarySearchTree;}; class BinarySearchTree {public: BinarySearchTree(); void insert (string data); // **** The Big Three **** // // Destructor “BinarySearchTree(); // Copy constructor BinarySearchTree (const BinarySearchTree&); // Assignment operator BinarySearchTree& operator=(const BinarySearchTree&); private: void kill_tree (TreeNode*); TreeNode* copy (const TreeNode*); TreeNode* root;}; Turn in the header, source files containing the class definitions and implementation, and a main function. Compile and run your program to check for compile-time errors and logic errors. Show transcribed image text write code to extend the binary search tree class such that you properly implement the big three memory management functions in terms of the lower level member functions BinarySearch Tree:: kill-tree (TreeNode* n) and TreeNode* BinarySearchTree::copy (const TreeNode* source). class TreeNode {public: TreeNode(); void insert_node (TreeNode* new_node); private: string data; TreeNode* left; TreeNode* right; friend class BinarySearchTree;}; class BinarySearchTree {public: BinarySearchTree(); void insert (string data); // **** The Big Three **** // // Destructor “BinarySearchTree(); // Copy constructor BinarySearchTree (const BinarySearchTree&); // Assignment operator BinarySearchTree& operator=(const BinarySearchTree&); private: void kill_tree (TreeNode*); TreeNode* copy (const TreeNode*); TreeNode* root;}; Turn in the header, source files containing the class definitions and implementation, and a main function. Compile and run your program to check for compile-time errors and logic errors.
Expert Answer
Answer to write code to extend the binary search tree class such that you properly implement the big three memory management funct…