Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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.
repeat (for each employee)
enter the employee's payment schedule and annual salary
if (the employee's payment schedule is weekly)
calculate gross pay =
calculate gross pay =
Figure 1-15Create an algorithm that tells someone how to evaluate the following expression:
7**5-202+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.)
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 it's 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.
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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

Describe ERP and how it can create efficiency within a business

Answered: 1 week ago