Branching are key to most software algorithms

Assignment Help Data Structure & Algorithms
Reference no: EM13753222

Description:Decisions and branching are key to most software algorithms. For this problem we will be working with prime numbers. Note that 0 IS NOT to be considered prime, but 1 is a prime. The definition of a prime number is that there are NO OTHER ways to produce the number by multiplying any other numbers EXCEPT 1 and the number in question.

In this machine problem you will be using loops and decision making to find the prime numbers from 0 to 200. You will count from 0 to 200, and for EVERY NUMBER you will:

1. Determine if the number is a prime. If it is, print out the number and indicate it is a prime number,

2. Indicate if it is 0, or

3. Tell what factor prevented the number from being prime, if the number is NOT prime.

Each number, and its' result will occupy its own line of output. Make sure that the output is easy to read.

Questions:

No questions this machine problem.

Deliverables:

1. Source code for the program with proper comments, variable names, and white space

2. Flowchart for your code

3. A copy of the output

4. Discussion of the problem, including

a. What the program was meant to accomplish

b. Problems involved, and how you overcame those problems

c. What data you used to test your program and how effective that test was at finding errors

Reference no: EM13753222

Questions Cloud

Does us foreign policy more harm than good in international : Critically analyze this perception by asking: Does American foreign policy do more harm than good in international relations?
Disadvantages of a call provision : What are the advantages and disadvantages of a call provision from the viewpoints of both a firm and its bondholders? If you were the CEO of a firm, would you recommend a call provision for a new bond issue? Why or why not? Can you identify a r..
Forecasting checking account balances : If an organization does not want to overdraft, then it should look at the _________ cash balance when forecasting checking account balances.
Electronic medical records and electronic health records : Electronic medical records and Electronic health records
Branching are key to most software algorithms : Decisions and branching are key to most software algorithms. For this problem we will be working with prime numbers. Note that 0 IS NOT to be considered prime, but 1 is a prime.
How hitech are improving patient and community health : How electonic health records and health technology (HITECH) are improving patient and community health
Describes the culture of zappos : Of the four types of corporate culture, which most closely describes the culture of Zappos? What are the implications for the organization and for managers and employees? Is this a company you could work for? In terms of corporate culture, why or ..
Write a summery of the project the middle ages in europe : Write a summery of the project The Middle Ages in Europe.
Effects of business events on the accounting : Accounting conventions represent the principles, assumptions, and rules that guide an accountant as he or she analyzes the effects of business events on the accounting cycle and applies them to various cycle procedures. Part 3 of the assessment re..

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  For what values of d is the tree t

For what values of d is the tree T of the previous exercise an order -d B-tree? HINT: The definition of an order- d  deals with the minimum and maximum number of children an internal node can have.

  Question about passing parameters

Provide an example of when passing parameters through value as opposed to passing them by reference is a better method. Provide an example of when passing parameters through reference

  Create a flowchart that programs a robot to recognize

Create a flowchart that programs a robot to recognize how many playing cards you have and to put them in order from smallest to largest

  Write a program to find average marks

Write a program to find average marks obtained by 10 students in a test along with algorithm and write a menu driven program using function to perform following operations on 1 d array?

  Creating asp.net project with visual studio.net

Design an ASP.NET assignment with Visual Studio.NET 2005. Add an aspx form to the application. Place a ListBox control, a TextBox control and a Button control on the form.

  Write algorithm to find median value using queries

As queries are expensive, you would like to calculate median using as few queries as possible. Provide the algorithm which finds median value using at most O(log n) queries.

  True or false about networking

2- A print queue must be set up for every printer on the network served by a print server. True False

  What do you meant by an rfp

Select a specific category of vertical applications to investigate. Use the Internet and any other sources of information you might have to study some of the different products that are available in that category.

  Model of online music sharing

Since Napster is going out of business, you have decided to begin your own on line music sharing site. You will give individual music documents at your site.

  Js code to prompt the user for integer and print result

Write JS code which prompt the user for an integer and prints the result.

  Design systems with less complexity algorithms

Complexity of the algorithms so that we can write the programs with out sacrificing the other aspects like speed, qualit y and other related thing.

  Calculate failure and success ratios using fifo page removal

Using FIFO page removal algorithm, do a page trace analysis indicating page faults with asterisks (*). Then calculate the failure and success ratios.

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