Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . All employees at Kranston Sports Inc. are paid based on an annual salary rather than an hourly wage. However, some employees are paid

1.All employees at Kranston Sports Inc. are paid based on an annual salary rather than an hourly wage. However, some employees are paid weekly, while others are paid every other week (biweekly). Employees paid weekly receive 52 paychecks; employees paid biweekly receive 26 paychecks. The algorithm shown in Figure 1-15 should calculate and display the gross pay for each employee; however, some of the instructions are missing from the algorithm. Complete the algorithm. 2.Create an algorithm that tells someone how to evaluate the following expression: 7*520/2+4*2. The / operator means division, and the * operator means multipli-cation. (As you may remember from your math courses, division and multiplication are performed before addition and subtraction.)3.Store A is having a BoGoHo (Buy One, Get One Half Off ) sale. Store B is not having a sale, but sometimes its prices are much lower than at Store A. Write an algorithm that determines whether its cheaper to buy two of the item at Store A or Store B. The algo-rithm should display either the message Buy at store A or the message Buy at store B. If the prices would be the same at both stores, display the Buy at store A message. 4.The algorithm in Figure 1-16 should get Robin the Robot seated in the chair, but it does not work correctly. Correct the algorithm. This is what the algorithm has:
1. repeat (3 times)
walk forward one complete step
end repeat
2. turn left 90 degrees
3. repeat (2 times)
walk forward one complete step
end repeat
4. turn right 90 degrees
5. repeat (2 times)
walk forward one complete step
end repeat
6. turn right 90 degrees
7. walk forward one complete step
8. turn right 90 degrees
9. repeat (4 times)
walk forward one complete step
end repeat
10. turn right 90 degrees
11. sit down
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions