Computers and Technology

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 23:30, sheram2010
Acomputer is a multipurpose device that accepts input, processes data, stores data, and produces output, all according to a series of stored . the processing unit of most modern computers is a(n) . the instructions that tell a computer how to carry out a task are referred to as computer , which are distributed as software. computers run three main types of software: software, system software, and development tools. an example of system software is a computer system, which is essentially the master controller for all the activities that a digital device performs. digital devices are constructed using tiny electronic components that represent data bits as electrical signals. the system unit houses the system board, which contains several circuits made from semiconducting materials. computers come in three popular form factors: component, , and slate. many of today's digital devices operate on battery power supplied by ion batteries. battery life and lifespan can be extended by following good battery management practices.
Answers: 3
image
Computers and Technology, 23.06.2019 05:00, mikeysoulemison
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most?
Answers: 2
image
Computers and Technology, 24.06.2019 05:30, MegRasmussen31
Hey i really need some solving this problem: 1. encrypt this binary string into cipher text: 110000. include in your answer the formula the decoder would use to decrypt your cipher text in the format (coded answer) x n mod (m) = y & 2. decrypt this cipher text into a binary string: 106 you.
Answers: 2
image
Computers and Technology, 25.06.2019 05:10, Aaraar
Maia notices that her paragraphs are too close to one another. she wants to increase this space. which arrangement of steps does maia follow after she goes to the paragraph command group in the ribbon? type in the space needed, go to the after menu, go to the spacing part of the box, and open the paragraph dialog box. go to the spacing part of the box, go to the after menu, open the paragraph dialog box, and type in the space needed. open the paragraph dialog box, go to the spacing part of the box, go to the after menu, and type in the space needed. type in the space needed, open the paragraph dialog box, go to the after menu, and go to the spacing part of the box.
Answers: 1
Do you know the correct answer?
Write a function which sorts the stack in order from the largest value to the smallest value. this s...

Questions in other subjects:

Konu
Mathematics, 18.03.2021 01:40
Konu
Mathematics, 18.03.2021 01:40
Konu
Mathematics, 18.03.2021 01:40
Konu
English, 18.03.2021 01:40