logo

Case Study: Wage Commission Application Development

This assignment is for the BTEC HND in Computing program and is focused on programming. The assignment requires the submission of a programming project by the given deadline.

28 Pages5209 Words493 Views
   

Added on  2022-11-25

About This Document

This assignment focuses on developing a wage commission application in python to calculate and display total monthly salary based on monthly sales amount. It covers topics such as algorithms, pseudocode, programming paradigms, testing, and debugging. The document is for BTEC HND in Computing, Unit 1: Programming – RQF (L4) at ICON College of Technology and Management.

Case Study: Wage Commission Application Development

This assignment is for the BTEC HND in Computing program and is focused on programming. The assignment requires the submission of a programming project by the given deadline.

   Added on 2022-11-25

ShareRelated Documents
BTEC HND in Computing
ICON College of Technology and Management
Unit 1: Programming – RQF (L4)
Case Study: Wage Commission Application Development
By: Constantin Daniel Postolache
ID: 16427
Date: 22 May 2019
Case Study: Wage Commission Application Development_1
Table of Contents
ICON College of Technology and Management...........................................................1
Introduction................................................................................................................ 4
Algorithm.................................................................................................................... 5
Pseudocode............................................................................................................. 5
The Application Algorithm.................................................................................... 5
The Application Pseudocode................................................................................ 6
Flow Chart............................................................................................................... 7
Fig 1.0: The Flow Chart for the Application Development....................................7
Example Algorithm.................................................................................................. 8
Palindrome Algorithm........................................................................................... 8
Python Variant of Palindrome Algorithm..............................................................8
Similarities and Differences of the Algorithms.....................................................9
Application Building Process.................................................................................... 9
Steps Taken from Writing Code to Execution........................................................10
Programming Paradigms.......................................................................................... 11
Procedural programming....................................................................................... 11
Object-oriented programming (OOP).....................................................................12
Event-driven programming (EDP)..........................................................................13
Relationship Between The Programming Paradigms.............................................14
Similarities between the Paradigms:.....................................................................14
Differences between the Paradigms:.....................................................................14
Integrated Development Environment (IDE).............................................................15
Common features a developer can have access to in an IDE................................15
The Application Source Code.................................................................................... 16
Importance of IDE as against non-IDE......................................................................19
Testing..................................................................................................................... 20
Debugging................................................................................................................ 20
Debugging Processes............................................................................................ 20
Errors Encountered and Solution...........................................................................21
Debugging Facilities in IDLE..................................................................................23
Coding Standards..................................................................................................... 23
2
Case Study: Wage Commission Application Development_2
Importance of Coding Standards..............................................................................24
Conclusion................................................................................................................ 24
Bibliography............................................................................................................. 25
References............................................................................................................... 25
3
Case Study: Wage Commission Application Development_3
Introduction
In this assignment, I am developing a wage commission application developed in python. The
functionality requirement of the application is to calculate and display total monthly salary, given
monthly sales amount as input. By the end of the application development, I hope to not only
have achieve the functionality requirements, but also non functionality requirements such as
error handling, well documentation and quality code that adheres to coding standards. Also,
performance and user friendliness and code maintainability will be considered right from the
start.
Algorithms, regular expressions, programming paradigms, testing and debugging are also part of
the learning outcome to be achieved. While using regular expressions is not a must, I am looking
word to learn as much, to at least apply one or two lines of the same.
Last but not least, I will get to refresh my flow chart and pseudocode writing techniques, as they
come in handy when dealing with algorithms. The Integrated Development Environment (IDE)
of choice is PyCharm by JetBrains.
4
Case Study: Wage Commission Application Development_4
Algorithm
An algorithm is a predetermined procedure, which when followed step by step, yields desired
output. Generally, an algorithm aims to solve a given problem, and is not limited to computer
instructions. Its scope can go as far as bridge construction or even recipes in catering.
Once an algorithm has been developed, tested and found feasible based on its performance and
time complexity, it can be reused and implemented in various programming languages even by
other developers. In computing, an algorithm can further be presented in for of pseudocode or a
flow chat.
Pseudocode
This is presentation of steps to be undertaken by an algorithm in a high level programming
language-like structure, but without having to worry about the specifics for the programming
language or technologies to be used for implementation (Bentley, 2016). That said, a
pseudocode can be used both as a proof of concept, and as a guideline during the actual
application implementation. In some cases, they can even be used as a measurement to estimate
time/deadlines feasibility and application complexity. With relatively little effort, a pseudocode
can be translated into a source code, capable of being complied and executed by a computer.
The Application Algorithm
Step1: Get user input (sales)
Step2: check whether input is valid
Step3: if the user input is not valid,
Display error message,
goto Step1
Step4: if user input is ‘exit’
Quit the program.
Step5: convert sales to float
Step6: Determine commission rate based on sales amount
Step8: calculate commission (monthly salary * commission rate)
Step9: calculate total month salary (monthly salary + commission)
Step10: display tabulated Output
Step11: prompt user to continue.
If Yes,
Goto step1
Else
Exit program
5
Case Study: Wage Commission Application Development_5
The Application Pseudocode
Input: The sales
Output: The total monthly salary
BEGIN
Set base salary to 3200 per annum
Set working months to 12 per annum
Set monthly salary to base salary divided by working months
Display program title
DO
Prompt for user input
Validate user input
IF user input is “exit” THEN
Quit the program
END IF
Convert user input to float (sales)
IF error when converting THEN
Display error message
Restart Do While
End IF
IF sales is negative THEN
Reject the value,
Display error message,
Restart the Do while loop
End IF
Calculate commission rate
IF sales is greater than 10000.00 THEN
Set commission rate to 20%
ELSE IF amount is greater than 5000.00 THEN
Set commission rate to 13%
ELSE IF sales is greater than 2000.00 THEN
Set commission rate to 9%
ELSE IF sales is greater than 500.00
Set commission rate ==to 5%
ELSE:
set commission rate to 0%
END IF
commission = sales * commission rate
Total month salary = monthly salary + commission
Display the Output
Get user response on whether to continue
WHILE user response is not “n, no or exit”
END WHILE
print Goodbye
END
6
Case Study: Wage Commission Application Development_6

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Algorithm and Flow Chart - Doc
|27
|5544
|268

Developing Increasing Wage Commission Application using Python
|21
|4245
|69

Definition of Algorithm and Process of Building an Application
|8
|1804
|83

Algorithm Theory and Programming Paradigms
|31
|6478
|184

Unit 1: Programming Submission
|58
|8377
|153

Algorithm vs Code: Understanding the Relationship and Process
|36
|7367
|30