CIS115 Lab 5 New in Python – Race Time Sorting in Python:
CIS115 Lab 5 New in Python – Race Time Sorting in Python:
Week 5 Activity—Utility Charges
TCO 4—Given a simple business problem that requires one or more decisions, create a solution algorithm that uses decisions with logical and relational expressions.
Assignment
You will need to design an application that will receive the customer type and its units of utility used for the billing duration. The application will calculate and display the cost per unit based on the customer type and the total charges for that billing cycle. Calculate the charges using the following data.
Customer Type Units Consumed Cost per unit ($)
Commercial <= 1,000 $0.50 per unit
Commercial 1,000 < $0.50 per unit
Industrial < 800 $0.65 per unit
Industrial 800 <= 2,000 $0.55 per unit
Industrial 2,000 < $0.50 per unit
Residential < 500 $0.85 per unit
Residential 500 <= $0.75 per unit
Make sure that the units consumed entered is a positive number and the Customer Type is valid; otherwise your program should display an error message and ask for the data to be entered again until the user enters valid data. Test your algorithm with the following three sets of data.
Test case 1: Units used of 799, Customer Type is Industrial
Test case 2: Units used 500, Customer Type is Residential
Test case 3: Units used 800, Customer Type is Industrial
Test case 4: Units used 1000, Customer Type is Commercial
Test case 5: Units used 499, Customer Type is Residential
Rubric
Complete the steps and submit the completed file to the Dropbox.
1) Variable list
2) IPO chart
3) Flowchart
4) Pseudocode
5) C# 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 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.
5) C# Code
Screenshot of Running Program
Zipped Project File (submitted to Dropbox)
Copy/paste your C# Code here.
Paste a screenshot(s) of the complete working program here. Use test scenarios to test all possible paths of execution. You may have to design additional test scenarios to make sure you have tested all possible paths of execution.
Submit a separate zipped file to the Dropbox containing the complete project folder.