c++ by microsoft visual studio
i wanna the answer for header file , cpp file , main file.
1). The function remove of the class arrayListType removes only the first occurrence of an element. Add the function removeAll to the class arrayListType that would remove all occurrences of a given element. Also, write the definition of the function removeAll and a program to test this function.
2)Add the function min to the class arrayListType to return the smallest element of the list. Also, write the definition of the function min and a program to test this function.
We need at least 10 more requests to produce the answer.
0 / 10 have requested this problem solution
The more requests, the faster the answer.
c++ by microsoft visual studio i wanna the answer for header file , cpp file ,...
Do not change anything in the supplied code below that will be the Ch12_Ex9.cpp except to add documentation and your name. Please use the file names listed below since your file will have the following components: Ch12_Ex9.cpp given file //Data: 18 42 78 22 42 5 42 57 #include <iostream> #include "unorderedArrayListType.h" using namespace std; int main() { unorderedArrayListType intList(25); int number; cout << "Enter 8 integers: "; for (int count = 0; count < 8; count++)...
Provide code and full projects neatly and in proper form and in the correct header and cpp files((we have to make 3 files header file , one .cpp file for function and one more main cpp file) Operator Overloading – Chapter 14 Design a class Complex for representing complex numbers and the write overloaded operators for adding, subtracting, multiplying and dividing 2 complex numbers. Also create a function that will print a complex number on the screen. Provide appropriate constructors...
Provide code and full projects neatly and in proper form and in
the correct header and cpp files((we have to make 3 files header
file , one .cpp file for function and one more main cpp file)
Template Classes – Chapter 12
Write an example of a template function that can swap 2 generic
elements.
Create a C++ class vector using the class diagram shown in
Figure 12.2. in Liangs textbook. Do not use the C++
provided header file <vector>...
Provide code and full projects neatly and in proper form and in the correct header and cpp files((we have to make 3 files header file , one .cpp file for function and one more main cpp file) Operator Overloading – Chapter 14 Design a class Complex for representing complex numbers and the write overloaded operators for adding, subtracting, multiplying and dividing 2 complex numbers. Also create a function that will print a complex number on the screen. Provide appropriate constructors...
Q1: Design and write header file and cpp file for the following classes so that provides the needs listed for each class. Use encapsulation for the purpose of hiding or protecting information and easier maintenance. Put your answer in the space provided. If you open this file with Microsoft Word, you can edit it and copy and paste your code from text editor (IDE or Sublime). You need to write a test file to test your class but adding the...
Design a class that contains: we have to make 3 files header file , one .cpp file for function and one more main cpp file 9.3 (The Account class) Design a class named Account that contains: An int data field named id for the account. A double data field named balance for the account. A double data field named annualInterestRate that stores the current interest rate. A no-arg constructor that creates a default account with id 0, balance 0, and...
Write a function template that receives a priority queue and an
output stream as parameters.
Lab 48 Due Date: See Blackboard Source File: /2336/48/1ab48.cpp Input: Output:under control of main function Waol under control of main function Write a function template that receives a priority queue and an output stream as parameters. The function determines the distribution of the elements in the priority queue; that is, the function counts the number of occurrences of each element. The format of the output...
Write a c# program in Microsoft visual studio to determine if the following numbers are even or not. Create an app that will read integers from an input file name Number.txt that will consist of one integer. Determine which numbers are even and which are odd. Write the even numbers to a file named Even.txt and the odd numbers to a file named Odd.txt. Number.txt 20 39 45 12 31 62 10 11 21 73 14 42 55 86 109...
Write the c++ code that will run with visual studio With the square function below as an example, write a max function that has two int parameters and will return back the larger of the two. Also write a main which can be used to test your function. ex ) int square(intnum); // funcprototype int main() { inta = 5, b; a = square(a); b = square(4);cout<< square( 6 ) << endl; .... // func...
C++, Visual Studio
(Optional-Extra Credit) Write an AddressBook class that manages a collection of Person objects. Use the Person class developed in question Lab 4 Question 2. An AddressBook will allow a person to add, delete, or search for a Person object in the address book 1. The add method should add a person object to the address book .The delete method should remove the specified person object from the address book .The search method that searches the address book...