Find out the prime numbers from the given list

Assignment Help Computer Engineering
Reference no: EM132095874

Please help ASAP! You need this in Assembly Language code/Easy68K please.

Write a program called SortedPrimes to

a. Find out the prime numbers from the following list (15, 16, 17, 23, 2, 32, 3, 31, 13, 19, 12, 9) and push/store them in a stack and then print.

b. Sort the list of prime numbers that you found from previous problem in descending order and store/push them in a stack and then print.

Output should look like below on console:

Prime Numbers: 17 23 2 3 31 13 19

Sorted in Descending Order: 31 23 19 17 13 3 2

Reference no: EM132095874

Questions Cloud

Write pseudocode and translate it to c-program : Ask users to input a series of integers. The input will end with the number 0. Assume users will never input more than 10 integers before input 0.
What are the major differences you have experienced : What are the major differences you have experienced in buying a product through a traditional retail store
Batch of salami was sold to supermarkets : This batch of salami was sold to Supermarkets Pty. Ltd. for sale in its supermarket in Melbourne. On 20 July 2018, Ann purchased a package of salami
Create a node class or struct : Create a node class/struct. Create a queue class/struct.
Find out the prime numbers from the given list : Find out the prime numbers from the following list (15, 16, 17, 23, 2, 32, 3, 31, 13, 19, 12, 9) and push/store them in a stack and then print.
Write a main program to call the function : Write a main program to call the function using an integer of your choice and print the contents.
What is the ending inventory using the average cost method : Sales for the year totaled 270 units, leaving 10 units on hand at the end of the year. What is the ending inventory using the average cost method (rounded)
What is the saving in the average time to retrieve a webpage : The time for A to obtain the remaining web object after the reception of the HTML file, assuming all the web objects are cached at the proxy.
Prepare journal entries for first interest payment on june : Woodwick Company issues 6%, five-year bonds, on December 31, 2014, Prepare journal entries for first interest payment on June

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write a function definition for a function called in order

Write a function definition for a function called in Order that takes three arguments of type int. The function returns true if the three arguments.

  Describe your past and present work as it relates to your ms

In a concisely written statement, please describe your past and present work as it relates to your MS, Information Systems, Computer Science.

  Write a program on simple game

Write a program on simple game.

  Discuss logical access control

Adhere to APA formatting and reference guidelines when writing your response. Additionally, your response should be free of grammatical

  Challenge your classmates to debug a javascript program

challenge your classmates to debug a JavaScript program in which you have intentionally made exactly two different kinds of errors

  Define the terms recursion iteration and infinite recursion\

Define the terms a. Recursion b. Iteration c. Infinite recursion d. Recursive helper method. Outline, a recursive solution for sorting an array of numbers.

  How to create the clients by service rep report

How to create the clients by service rep report create mailing label for client table

  1explain three different ways that freedom of expression

1.explain three different ways that freedom of expression is limited in spite of the unequivocal language of the

  Developing the fsm diagram

Develop the FSM diagram showing how to identify a DOS-like file name containing an optional leading drive letter and a colon, followed by an optional backslash, zero or more directory name isolated by the backslashes.

  What are the components of an std

What are the components of an STD? Are STDs useful for modeling batch computer systems? Why or why not? What is the purpose of a structure chart?

  How many blocks can be stored in each level of the memory

CS 152 Computer Systems Architecture Midterm Examination. How many blocks can be stored in each level of the memory hierarchy

  How many parity check bits must be included with the data

How many parity check bits must be included with the data word to achieve single error-correction and double-error detection when the data word contains:

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd