CIS 115 Week 2 iLab | Complete Solution | Scored 100%
- Guardiantutor
- Rating : 15
- Grade : A+
- Questions : 0
- Solutions : 94
- Blog : 1
- Earned : $2443.85
Week 2 iLab
TCO 2 — Given a simple problem, design a solution algorithm that uses arithmetic expressions and built-in functions.
Scenario
Your goal is to solve the following simple programming exercise. You have been contracted by a local antique store to design an algorithm determining the total purchases and sales tax. According to the store owner, the user will need to see the subtotal, the sales tax amount, and the total purchase amount. A customer is purchasing four items from the antique store. Design an algorithm where the user will enter the price of each of the four items. The algorithm will determine the subtotal, the sales tax, and the total purchase amount. Assume the sales tax is 7%.
Be sure to think about the logic and design first (input-process-output (IPO) chart, flowchart, and pseudocode). Display all output using currency formatting.
Advanced (optional): Use a constant for the 7% sales tax.
Rubric
Point distribution for this activity:
iLab Activity
Document Points possible Points received
Variable list 10
IPO chart 10
Flowchart 10
Pseudocode/C# code 10
Desk-check 10
Total Points 50
(1) Variable List With Data Type
List all the variables you will use (use valid variable names). Indicate whether the data type is string, integer, or double, and so on.
(2) IPO Model
List the inputs, any processes, calculations, and outputs. Use the same valid variable names you used in Step 1.Input Process (calculations) Outputs
(3) Flowchart
Use MS Visio to create a flowchart. Paste the flowchart here, or attach as separate document. Use the same valid variable names you used in Step 1
(4) Pseudocode or C# Code
Describe your solution using pseudocode or actual C# code. Use the same valid variable names you selected in Step 1.
(5) Desk-Check
Desk-check your solution by selecting appropriate test data.
Test data: List the values for your test data.
Expected output: What is the expected output of your program?
Step Variables (write variable names in first line below)
[Solved] CIS 115 Week 2 iLab | Complete Solution | Scored 100%
- This Solution has been Purchased 4 time
- Submitted On 01 Feb, 2015 12:52:05
- Guardiantutor
- Rating : 15
- Grade : A+
- Questions : 0
- Solutions : 94
- Blog : 1
- Earned : $2443.85
Declare 2_item_price;
Declare 3_item_price;
Declare 4_item_price;
Declare Subtotal;
Declare Sales_tax;<...
CIS 115 Week 3 iLab—Calculate Overtime Pay | Complete Solution | Scored 100%
payRate
hoursWorked
maritalStatus
overtimeRate = payRate * 1.5
overtimePay = overtimeHours * overtimeRate
regularPay = hoursWorked * payRate
grossPay = regularPay &...
CIS 115 Week 5 iLab Fireworks Stand Checkout
CIS 115 Week 5 iLab Fireworks Stand Checkout A+ tutorial 100% Satisfaction Guaranteed!
CIS 115 Week 7 iLab Sales Tax | Scored 100%
Week 7 iLab—Sales Tax
TCO 3: Given a simple problem, design and desk-check a solution algorithm requiring a modular design that is expressed in terms of pseudocode or program notes, input-process-output (IPO) a...
CIS 115 Week 2 iLab | Complete Solution | Scored 100%
Declare 2_item_price;
Declare 3_item_price;
Declare 4_item_price;
Declare Subtotal;
Declare Sales_tax;
Declare Total_purchase;
Declare Tax =0.7;
Input 1_item_price;
Input 2_item_pric...