create a program that will accept 1 input number then display the even numbers base from the inputted numberWrite your OWN CLASS for realization one of data structure - Queue, Stack, Singly linked list, Doubly linked list, Circular list, Random access array.
Develop a program that reads from the keyboard sequence of N unique integers N (1 <N <256), saves them to a data structure (Queue, Stack, Singly linked list, Doubly linked list, Circular list, Random access array.) and displays the following characteristics:
- number of elements;
- average of saved items;
- minimum and maximum element;
- fourth element of the sequence;
- element that is before the minimum element.
We emphasize that all the characteristics necessary must be define for a filled data structure. Only those operations that are inherent to given structure are allowed, for example, one must not access an element on an arbitrary position in a queue which is based on an array. Usage of ready data structures (e.g., STL) is prohibited.
Search all occurrences of an element in an array of 10 elements using ptr notation.
Write a C++ program to copy a file into another file using following rules:
i) convert lowercase alphabets to uppercase alphabets and vice versa.
ii) copy other characters as it is.
Write a C++ program to create a file, write some data in it through program and then perform following operations:
a) count no of uppercase alphabets.
b) count no of lowercase alphabets.
c) count no of digits.
d) count no of words.
e) count no of lines.
Write a C++ program that creates an array of 10
elements. The program should then take input in the
array from the user. After that, the program sorts the
array elements in descending order. The sorting code
should access array elements using pointer notation
Write a program that contains a singly linked list in the previous part of a doubly linked list.
Test it in main and avoid global declarations if possible.
Using the Player, JuniorPlayer class declaration attempt the question. Write constructor that would Call from JuniorPlayer class the Player class Parameterized constructor and also give values to JuniorPlayer class data members and Player class data members.
class Player {
string name;
string playerId;
public:
Player();
Player(string,string);
void Register(string,string);
void Display();
void Givepoint();
};
class JuniorPlayer : public Player{
int bonusamount;
public :
void Display();
JuniorPlayer incrementBonus();
};
Use pointer variables to write a program which reads quality and unit price of a product from the user, and the name of the user. The program should then calculate the total price of the product and print a personal price not on the screen
write a program to sort an integer of size 5 in ascending order using a burble sort algorithm