2023 Week 7iLab Sales Tax TCO 3 Given a simple problem design and desk check | Assignment Collections

Computer Science 2023 cis115 w7 lab

2023 Week 7iLab Sales Tax TCO 3 Given a simple problem design and desk check | Assignment Collections

 

Week 7iLab—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) analysis, and flow chart.

TCO 7: Given a program with logic errors that is intended as a solution to a simple problem, employ debugging diagnostics to remove and correct the errors.

 

TCO 8: Given a more complex problem, develop a complete solution that includes a comprehensive statement of the problem, complete program design, and program documentation.

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 oftax depending on the state. NJ requires 7% tax, FL requires 6% tax, and NYhas 4% tax.

The main program will ask for the name of the customer and read the name in a variable called name. It will also ask for 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.

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

 

The total sales for Jack are$4.50

The tax amount is $0.32 based on a tax rate of 7.00%

The total with taxes is $4.82    

 

Make sure you save the return values into an appropriate variable. Use formatted output to make the program more user friendly.

 

Be sure to think about the logic and design first (IPO chart, pseudocode, and flowchart), then code the Visual Basic program.


 

 

Rubric

 

 

Point distribution for this activity:

Lab Activity

Document

Points possible

Points received

Variable list

10

 

IPOchart

10

 

Hierarchy chart

10

 

Pseudocode

10

 

Working program

20

 

Total Points

60

 

 

 


1—Variable ListWith Data Type

List all variables you will use (use valid variable names). Indicate whether the data type is string, integer, or decimal, and so on.

 

 

 

 

2—IPO Model

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

 

Inputs

Process (calculations)

Outputs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


3—Hierarchy Chart

Use MS Visio to create a hierarchy chart. Paste the hierarchy chart here, or attach it as a separate document.

 


 

4—Pseudocode

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

 

 

 


 

5—Visual Basic Code
Screenshot of Running Program
Zipped Project File (submitted to DropBox)

 

Copy/paste your Visual Basic code here.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Paste a screenshot(s) of the complete working program here. Use test scenarios to test all possible paths of execution.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Submit a separate zipped file to the Dropbox containing the complete project folder.

 

We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.

Place Order Now

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational