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, 23.06.2019 02:30
People with high self-esteem: accept their strengths and weaknesses. believe that failed experiences are failures of their whole self. feel good about who they are only when they reach total success. need positive external experiences to counteract negative feelings that constantly plague them.
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
If you're using an existing powerpoint presentation that will receive new slides based on a word outline, select the a. slide that will appear after the new slides. b. first slide in the presentation. c. slide that will appear before the new slides. d. last slide in the presentation.
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
Idon’t understand the double8 coding problem. it is java
Answers: 1
question
Computers and Technology, 23.06.2019 16:50
15: 28read the summary of "an indian's view of indian affairs."15 betterin "an indian's view of indian affairs," it is asserted that conflicts could be reduced if white americansunderstood native americans..pswhich of the following would make this summary more complete? eleo the fact that chief joseph believes the great spirit sees everythinthe fact that chief joseph was born in oregon and is thirty-eight years oldo the fact that chief joseph states that he speaks from the hearthehehethe fact that chief joseph of the nez percé tribe made this claimebell- ==feetle===-felsefe ==submitmark this and retum.=
Answers: 3
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
question
Mathematics, 12.01.2021 17:30
question
English, 12.01.2021 17:30
question
Mathematics, 12.01.2021 17:30
Questions on the website: 13722360