subject

Write a function which sorts the stack in order from the largest value to the smallest value. this should be a modified version of bubble sort. 2. write a function which prints the values in the stack in reverse order. 3. write a function which the counts the number of odd numbers and even numbers currently in the stack and prints the results. optional 4. write a function which prints how many numbers in the stack are divisible by 2,3, and 5. part 2 (queue) 1. write a function which sorts the queue in order from the smallest value to the largest value. this should be a modified version of bubble sort. 2. write a function which adds a value to the queue in the correct position (numbers are arranged from the smallest value to the largest value). 3. write a function which prints the median and mean of the queue. take some time to consider all the required conditions to calculate the median of a dataset. optional 4. write a function which prints the mode of the queue. (the number which appears the most frequently in the queue) part 3 (link list) 1. write a function which adds 4 to all the even values in the link list and multiples all the odd values by 5. 2. write a function which multiplies the values in odd position values by 10. odd positions in this case refers to the first value in the list, the third value, the fifth value etc. 3. write a function which determines if the values in the queue is divisible by 5 or 10 if true the value is divided by 5. optional 4. write a function which prints all the prime values in the queue part 4 1. trace each demo program by hand using the table from your midterm exam for stacks and queues.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
Today is the anniversary of me being on yet, i don't need it anymore! here's a picture of my dog wearing a bowtie! my question is, how do i delete my account?
Answers: 1
question
Computers and Technology, 22.06.2019 09:40
Sarah is having a hard time finding a template for her advertising business that she may be able to use at a later date and also make it available to her colleagues
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Which of the following is an example of intellectual properly! oa. new version of a novelb. journal of ideasc. pages of a bookood. lines of a poem
Answers: 2
question
Computers and Technology, 22.06.2019 22:50
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
You know the right answer?
Write a function which sorts the stack in order from the largest value to the smallest value. this s...
Questions
Questions on the website: 13722367