CIS 115 Week 4 Lab Activity – Parcel Charges
You will need to design an application that will receive the weight of a parcel and calculate and display the cost per kilogram and the delivery charge for that parcel. Calculate the charges using the following data.
Parcel Weight(kg) Cost per kg ($)
< 2.5 kg $3.50 per kg
2.5 to 5 kg $2.85 per kg
> 5kg $2.45 per kg
Make sure that the weight entered is a positive number, otherwise your program should display an error message and end. Test your algorithm with the following three sets of data.
Test case 1: package weight of 2 kg
Test case 2: package weight of 5 kg
Test case 3: package weight of 6 kg
Complete the steps and submit the completed file to the Dropbox.
1) Variable list
2) IPO chart
5) Visual Basic code
1) Variable List
List all variables you will use (use valid variable names). Indicate whether the data type is string, integer, or double, and so on.
2) IPO Chart
List the inputs, any processes/calculations, and the outputs. Use the same valid variable names you used in Step 1.
Inputs Process (calculations) Outputs
Use MS Visio to create a flowchart. Paste the flowchart here, or attach it as a separate document. Use the same valid variable names you used in Step 1.
Describe your solution using pseudocode. Use the same valid variable names you selected in Step 1.
1) 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.