Develop a C++ program having a class called mathematics used to calculate sum for two integer values. The program should create an object of the class in main( ) program.
What scale value would you use with analogWrite() to generate a average vlotage of 3V on PWM pin 10 ?
Explain the following function header.
Void employee ::assign_values (int id,double salary)
What will the value of the solution variable be after the code segment below has been run.
int solution = 7;
int number19 = 16, number19 = 4;
solution *= number19 - number19 ;
Prepare a C++ program of the sample run below.
Square of Stars within a Triangle of Stars.
1. Create the list. The list is initialized to an empty state.
2. Determine whether the list is empty.
3. Determine whether the list is full.
4. Find the size of the list.
5. Destroy, or clear, the list.
6. Determine whether an item is the same as a given list element.
7. Insert an item in the list at the specified location.
8. Remove an item from the list at the specified location.
9. Replace an item at the specified location with another item.
10. Retrieve an item from the list at the specified location.
11. Search the list for a given item
Create a C program that would make a simple checkbook balancer that would input a sequence of deposits (positive floating-point values) and issuances (negative floating-point values) terminated by a 0. It would output the transaction type, the amount and the running balance for each entry. Assume the initial balance of 0. Ensure that the issued check won’t bounce!
your mother asked you to stack up all your books in a book rack. A book rack can not hold more than 25 books. so create an ADT called book that stores the name, author, and the number of pages in a book. use this ADT to create an array based stack called "bookrack" of books. your implementation must be abstraction based containing:
1. Accessors
2. Mutators,
3. push
4. pop
5. peek
6. smart_search
7. display stack
8. isEmpty
9. isFull
10. delete
remember that you are implementing a stack which is a variation of a linked list in which operations can be performed only at the head. So for operations such as search, display and delete, you will have to be very careful about 1. conform to the rules of the stack i.e work with the top item only, 2. maintain the order of the stack.
int main( ) {
double radius;
const double PI= 3.15169;
double area = radius * radius * PI;
cout<<"Area is " << area;
return 0:
}
Let us consider you are going to be create a AVL tree by inserting one by one up to 15 nodes with the help of Random number generation function. At each node, after insertion you should maintain the tree as balanced one. Sketch the Avl tree from the first node insertion to last 15th node insertion step by step. Then you have start to delete operation with 5th,10th and 15th input of inserted node. You have to follow the given details mentioned below for node input.
Sl.No
Student’s Roll Number
Range of Input
Insertion
Deletion
1
201IT101 - 201IT117
1 - 75
Totally 15 randomized numbers from the Specified range
Delete the 5th , 10th and 15th randomized input number when inserted.
2
201IT118 - 201IT134
76 - 150
3
201IT135 - 201IT151
151 - 225
4
201IT152 - 201IT168
226 - 300
5
201IT169 - 201IT216
301 - 375
6
201IT218 - 201IT234
376 - 450
7
201IT235 - 201IT251
451 - 525
8
201IT252 - 201IT269
526 – 600