Modify the algorithm to print the sales amount

Assignment Help Data Structure & Algorithms
Reference no: EM131207165

This question provides you with an opportunity to examine an algorithm, identify the inaccuracies in the algorithm, and finally, to modify the algorithm with the correct details.

1. 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

2. 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

Reference no: EM131207165

Questions Cloud

Premium versus discount : In reviewing the Becker materials, the lecture, and your eBook reading for this week, there are several considerations. First being the issue price of the bonds payable.
Analyse the assumptions behind public interest : In your accounting career you will be required to analyse current accounting issues and communicate your theoretical understanding to your professional colleagues and your clients. For this assignment assume that you are the senior accountant work..
What are two reasons carbomethoxy group is a meta director : What are two reasons the carbomethoxy group is a meta director. Name the three possible side products of the reaction and state how they are removed.
Calculate the average total cost : The table shows output and cost data. Calculate the average total cost, average fixed cost, average variable cost, and marginal cost schedules. If the price were $500, should the firm shut down in the short run? In the long run?
Modify the algorithm to print the sales amount : 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.
How many cubic meters of seawater would have a gold : According to estimates, 1.0L of seawater contains on the average 4.0x10-9 g of gold. If gold is worth $390 per troy ounce and a troy ounce weighs 31.103 g , how many cubic meters of seawater would have a million dollars worth of gold in it?
Determine the margin percentage : To determine the margin percentage, it does not matter whether the buy and sell prices include or exclude GST provided it is the same (include or exclude GST) for both figures.
Case exercises-passing along costs : Not only must a manager understand how costs relate to the final product, but he must also understand the circumstances in which costs may change, and what must be done when this happens.
What is the sinusoidal expression for the voltage : The current through a 0.5-mF capacitor is given. What is the sinusoidal expression for the voltage?

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