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

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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