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

  Evaluate the reliability of the data mining algorithms

the development of complex algorithms that can mine mounds of data that have been collected from people and digital

  Question about disk writing speed

Think about a disk holding documents with an average file length of 5 KB. Each document is allocated contiguously on adjacent sectors.

  Binary multiplication using booths algorithm

Perform the subsequent 4-bit binary multiplication using Booth's algorithm, assuming signed two's complement integers:

  Separate inventory database

A 20-year old corporation, SewWorld, comprised of 6-locations in three states, sells sewing machines, sewing related software, and accessories. Each store sells between 3-5 different brands of sewing equipments.

  Give an algorithm that takes a sequence of points

Give an algorithm that takes a sequence of points in the plane (x1, y1), (x2, y2), ...., (xn, yn) and an integer k as input and returns the best piecewise linear function f consisting of at most k pieces that minimizes the sum squared error.

  Estimate cost of multi phase multiway merge sort

Find out number of phases needed, and estimate cost of Multi Phase Multiway Merge Sort. Write all BCNF violations. Decompose relations, as essential, into collections of relations whic hare in BCNF.

  Algorithms to insert entry into list and find entry in list

In array is pointer to linked list of nodes each of which starts with corresponding letter. Write algorithms to insert the entry into list and to find entry in the list.

  Explain types of information systems

Question 1. Explain five types of information systems, and give an example of each. Question 2. Describe three common reasons for a systems request. Try and find one not listed in the text.

  System analystis you are required to analyse the

you are required to analyse the effectiveness of the qantas online air ticketing system. to do this you are required to

  E is said to be a bottleneck edge if increasing

In a flow network G(V,E) with source s and sink t, an edge e in E is said to be a bottleneck edge if increasing the capacity of the edge e increases the maximum flow value in the network.

  Write a c program to find the intersection andor union of

write a c program to find the intersection andor union of two doubly linked lists using recursion. you are not allowed

  Determine the objective of a query simplifier describe the

question 1 what is the objective of a query simplifier? what are the idempotence rules used by query simplifier? give

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