Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Algorithm Table Simply Defined: The algorithm table is setting up your plan for the program. A program consists of input . . . . .

Algorithm Table Simply Defined:
The algorithm table is setting up your plan for the program.
A program consists of input .....process....output and the table has you define these data items.
Also, it defines how you will get from input to output.
Simply, if you wanted to program the total price to purchase one item.
Inputs: numberOfItems, price
Outputs: total
Constants: TAX _RATE =.07
Processing/ intermediate (gets us to the total): subtotal, tax
Input: numberOfItems, price
Processing: subtotal = numberOfItems * price
tax = subtotal * tax rate
total = subtotal + tax
Output: total
Desk check
Input: number of items 10, price 5
Processing: subtotal =10*5=50
tax =50*.07=3.50
total =50+3.50
Output: total=53.50

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

Recommended Textbook for

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions