Review algorithm identify inaccuracies and insert correction

Assignment Help Data Structure & Algorithms
Reference no: EM131072288

This project provides you with the opportunity to examine algorithms, identify the inaccuracies in the algorithms, and finally, to modify the algorithms with the correct details. Your next step will be to write an algorithm that includes the three control structures (sequence, selection, and repetition). First, explain the purpose of the algorithm by providing a brief description for the task being performed. Then, list the details of the algorithm. Remember to include all three control structures (sequence, selection, and repetition). Select ONE of the following tasks as the basis for completing your algorithm:

- Changing a television channel by using a remote control

- Using a sponge to wash a car

- Walking up a set of stairs ITC 4210, Programming Concepts and Problem Solving 3 Click here to access the template for this project. This document include two algorithms you will review, identify the inaccuracies, and insert the corrections. Additionally, there is a space for you to add the algorithm you will write. Complete your work on this template, save the document, and upload it for grading.

Algorithm 1:

Review the below algorithm, identify the inaccuracies, and insert the corrections:

Modify the following algorithm to include the repetition structure. Review the algorithm, identify the inaccuracies, insert the corrections, save the document, and submit the document for grading.


walk forward 1 step,
walk forward 1 step,
if a flower is present, do this:
pick up the flower
end if
turn left 45 degrees
turn left 45 degrees

Algorithm 2:

Review the below algorithm, identify the inaccuracies, and insert the corrections:

Study the algorithm below and then modify the algorithm to print the sales amount for all ten salespersons. Review the algorithm, identify the inaccuracies, insert the corrections, save the document, and submit the document for grading.

repeat 5 times:
get the salesperson's name and sales amount
calculate the bonus amount by multiplying the sales amount by 3%
print the salesperson's name and bonus amount
end repeat

Writing an Algorithm:

Your next step will be to write an algorithm that includes the three control structures (sequence, selection, and repetition). First, explain the purpose of the algorithm by providing a brief description for the task being performed. Then, list the details of the algorithm. Remember to include all three control structures (sequence, selection, and repetition).

Select ONE of the following tasks as the basis for completing your algorithm:

• Changing a television channel by using a remote control
• Using a sponge to wash a car
• Walking up a set of stairs

Reference no: EM131072288

Questions Cloud

Coupon yield-current yield and yield to maturity : Demonstrate that you understand the difference among coupon yield, current yield, and yield to maturity with the following illustration for Morgan Stanley debt, par value of $1000: current price of $1032, coupon rate of 4.2%, issue date of September ..
Does either player have a dominant strategy here : Does either player have a dominant strategy here?
Chauncey plants as a part of the initial conditions : Instead of scheduling daily train arrivals at Baker and Chauncey plants as a part of the initial conditions, discuss the effects of simply increasing the initial inventory at each plant by an amount equal to the total volume arriving due to the i..
Electronic transfer of funds reduces the float : All of this electronic transfer of funds reduces the float, so what issues might that make for the manager who is managing cash, and what new problems do you have to be on guard for?
Review algorithm identify inaccuracies and insert correction : Review the below algorithm, identify the inaccuracies, and insert the corrections: Modify the following algorithm to include the repetition structure. Review the algorithm, identify the inaccuracies, insert the corrections, save the document, and ..
Dividends and dividend policy : Essentials of Corporate Finance (8th Ed.): Dividends & Dividend Policy. Paul Inc. announced a $1.50 per share dividend with an ex-date of May 15. If the closing price of Paul's stock was $35 on May 14, what would we expect the price to be on the clos..
What is the expected return on portfolio : Suppose the risk-free rate is 3.5 percent and the market portfolio has an expected return of 10.2 percent. The market portfolio has a variance of .0312. Portfolio Z has a correlation coefficient with the market of .21 and a variance of .3215 Accordin..
Plot the reaction functions to scale on a graph : Plot the reaction functions to scale on a graph.
Combines the risk-free asset and the market portfolio : A portfolio that combines the risk-free asset and the market portfolio has an expected return of 6.3 percent and a standard deviation of 9.3 percent. The risk-free rate is 3.3 percent, and the expected return on the market portfolio is 11.3 percent. ..

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Propose an efficient data structure

Propose an efficient data structure that may hold the tour operator's data using a normalization process. Describe each step of the process that will enable you to have a 2nd Normal Form data structure.

  Write algorithm by using pseudo code consensus algorithm

Write the algorithm, by using pseudo code, "Consensus algorithm": A group of ten people require to decide which one flavor of ice cream they will all order, out of three options.

  Write a pseudocode for a recursive version of binary search

Write a pseudocode for a recursive version of binary search

  Making visual studio.net web application

Make a Visual Studio.NET 2005 web application with 2-aspx forms. Add a Menu control and a Label control to form. Populate the Menu control with data stored in the "Font" column and show your name in the Label control.

  Neural and tree learning on continuous attributes

Compare and contrast the roles of these numbers in the two models and compare and contrast the methods of learning these numbers in the two models.

  Creating visual studio.net web application

Make a Visual Studio.NET 2005 web application with one aspx form. Place a CheckBoxList, TextBox, Button, and Label control on the form.

  Truth teller problem

Assume you were in a nation where each person was either a truth teller or a liar. Determine what single question could you ask a person that would permit you to detect whether that person was a truth teller or a liar?

  Describe ways to generalize a simple sorting algorithm

Describe ways to generalize a simple sorting algorithm (such as insertion sort, or any other sort you are familiar with) to support this generalization

  Question about database structure

Determine when a typical database is created the structure is constructed before the data is actually loaded into the database. What problems exist when someone wishes to add or delete from the existing structure?

  Show the order to names for a preorder traversal

If we deleted Eddie from the tree, what would the new tree look like (use one of the current names to replace Eddie and the tree redone)?

  Write the algorithm which takes as input npda

Write the algorithm (described informally) which takes as input NPDA A and determines whether the language of A is nonempty.

  A program that performs depth first search in a graph

a program that performs Depth First Search in a graph

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