application that will receive the weight

Topsolutions
 (Not rated)
 (Not rated)
Chat

TCO 4—Given a simple problem that requires one or more decisions, create a solution algorithm that uses decisions with logical and relational expressions.

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.

 

Assignment

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


 

 

Rubric

Complete the steps and submit the completed file to the Dropbox.

1) Variable list

2) IPO chart

3) Flowchart

4) Pseudocode

5) Visual Basic code



Please submit this file along with the complete project folder (in a zip file).

 

Game Seating Charges

Document

Points possible

Points received

Variable list

4

 

IPO chart

4

 

Flowchart

4

 

Pseudocode

4

 

Working program

4

 

Total points

20

 


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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


 

3)      Flowchart

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.


 

4)      Pseudocode

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.

 

Assignment
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 ($)
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


Rubric
Complete the steps and submit the completed file to the Dropbox.
1) Variable list
2) IPO chart
3) Flowchart
4) Pseudocode
5) Visual Basic code

    • 12 years ago
    complete solution
    NOT RATED

    Purchase the answer to view it

    • cis115_w4_exercise.docx
    • parcelchargesvbconsole.zip