CIS 115 Week 7 Lab - Sales Tax

Availability: In stock

Regular Price: $15.00

Special Price: $12.00

OR

CIS 115 Week 7 Lab Sales Tax

Double click on above image to view full picture

Zoom Out
Zoom In

More Views

Quick Overview

CIS 115 Week 7 Lab - Sales Tax


Scenario
Your algorithm will write two functions called ComputeTotal() and ComputeTax().
ComputeTotal() will receive the quantity of items purchased, and the unit price of each item. It will return the total sales (quantity times price).
ComputeTax() will receive total sales as a number and the state as a string and return the amount of tax depending on the state. NJ requires 7% tax, FL requires 6% tax, and NY has 4% tax.
The main program will ask for the name of the customer as well as one of the three states listed above. It will ask for the number of items sold and the unit price of the item.
Main will then call ComputeTotal(), passing the quantity and unit price. Main will then call ComputeTax(), passing the state and the amount of sales and receive back the tax. Finally Main() will print out the total sales, the tax amount, and the total with taxes. For example, see below.
Input Example:
Enter the name of the customer: Jack
In which state (NY / NJ / FL): NJ
How many items were purchased: 3
What was the unit price of the items: 1.50


Corresponding Output Example:
The total sales for Jack are $4.50
The tax amount is $0.32 based on a tax rate for NJ
The total with taxes is $4.82


Make sure you save the return values into an appropriate variable.


Be sure to think about the logic and design first (IPO chart, pseudocode, and flowchart), then code the Visual Basic program.
See list of required steps and grading rubric on next page…


Rubric
Point distribution for this activity:
Sales Tax
Document Points possible Points received
Variable list 5
IPO chart 10
Hierarchy chart & Flowchart 15
Pseudocode 10
Working program 20
Total Points 60


1) Variable List
List all of the variables you will use and make sure those variable names are valid. Indicate whether the data type is string, integer, decimal, etc.


2) IPO Chart
List the inputs, processes/calculations, and the outputs. Use the same valid variable names you used in Step 1.


3) Hierarchy chart & Flowchart
Use MS Visio to create a hierarchy chart and a flowchart. Paste the charts here. Use the same valid variable names you used in Step 1.


4) Pseudocode
Describe your solution using pseudocode. Use the same valid variable names you selected in Step 1.


5) Visual Basic Code
Screen Shot of Running Program


Copy/paste your Visual Basic code here.
Paste a screenshot of the complete working program here.

Regular Price: $15.00

Special Price: $12.00

Details

CIS 115 Week 7 Lab - Sales Tax

Scenario
Your algorithm will write two functions called ComputeTotal() and ComputeTax().
ComputeTotal() will receive the quantity of items purchased, and the unit price of each item. It will return the total sales (quantity times price).
ComputeTax() will receive total sales as a number and the state as a string and return the amount of tax depending on the state. NJ requires 7% tax, FL requires 6% tax, and NY has 4% tax.
The main program will ask for the name of the customer as well as one of the three states listed above. It will ask for the number of items sold and the unit price of the item.
Main will then call ComputeTotal(), passing the quantity and unit price. Main will then call ComputeTax(), passing the state and the amount of sales and receive back the tax. Finally Main() will print out the total sales, the tax amount, and the total with taxes. For example, see below.
Input Example:
Enter the name of the customer: Jack
In which state (NY / NJ / FL): NJ
How many items were purchased: 3
What was the unit price of the items: 1.50

Corresponding Output Example:
The total sales for Jack are $4.50
The tax amount is $0.32 based on a tax rate for NJ
The total with taxes is $4.82

Make sure you save the return values into an appropriate variable.

Be sure to think about the logic and design first (IPO chart, pseudocode, and flowchart), then code the Visual Basic program.
See list of required steps and grading rubric on next page…

Rubric
Point distribution for this activity:
Sales Tax
Document Points possible Points received
Variable list 5
IPO chart 10
Hierarchy chart & Flowchart 15
Pseudocode 10
Working program 20
Total Points 60

1) Variable List
List all of the variables you will use and make sure those variable names are valid. Indicate whether the data type is string, integer, decimal, etc.

2) IPO Chart
List the inputs, processes/calculations, and the outputs. Use the same valid variable names you used in Step 1.

3) Hierarchy chart & Flowchart
Use MS Visio to create a hierarchy chart and a flowchart. Paste the charts here. Use the same valid variable names you used in Step 1.

4) Pseudocode
Describe your solution using pseudocode. Use the same valid variable names you selected in Step 1.

5) Visual Basic Code
Screen Shot of Running Program

Copy/paste your Visual Basic code here.
Paste a screenshot of the complete working program here.

Product Tags

Use spaces to separate tags. Use single quotes (') for phrases.