HOME ASSIGNMENT # 1
Create a C ++ program which prints any given string
without letters 'a'
Only allowed variables:
char s [] = '...'; // string is your first and last name
char * cpt;
From <cstring> library only allowed to use strlen
(); function
HOME ASSIGNMENT #2
Create a linked list with C++ which contains all the ASCII
codes of your first and last name. Program also provides a
menu:
▪ 1 - View list elements
▪ 2 - Add new element (as a character, e.g. ‘s’)
▪ 3 - Delete an element
▪ 4 - Display element count
▪ 5 - Move any element to beginning of list
▪ X - Close program
HOMEWORK
#4
1. Research binary search trees
2. Create a string of numbers from your first and last name
where each letter is represented by it’s value from ASCII table
3. Draw a diagram of a binary search tree applied to the
previously created string of numbers
4. Create a program:
▪ Realize the binary search tree
▪ Trees initial values are the previously created string of
numbers (using a recursive function)
▪ User can enter a number and program finds where it is located
in the tree - displays the depth of the element (use a recursive
function)
HOME ASSIGNMENT #3 Create a C++ program which reads the following sequence and converts it into a decimal number: Each 1 and 0 forms a binary number. Each '<' symbol removes the last 1 or 0. '<<'removes the last two digits. 11<010<111<< 1011 (decimal 11) 10101<<0 1010 (decimal 10) Sequence is read from a file Program utilizes stack or queue with all the standard functions Program has to be foolproof .
HOME ASSIGNMENT #3 Create a C++ program which reads the following sequence and converts it into a decimal number: Each 1
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
HOME ASSIGNMENT #3 Create a C++ program which reads the following sequence and converts it into a decimal number: Each 1
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!