CMP1041 Foundation Programming :
For solution: +610482078788
+61482073403
+61482072848
Subject Code and Name | CMP1041 – Foundation Programming |
Assessment Number | 1 |
Assessment Title | Foundations and Pseudocode |
Assessment Type Length or Duration Subject Learning Outcomes Submission Date / Time Weighting | Report |
1,000 words +/- 10% | |
SLO 1, SLO 2 | |
Week 3 | |
25% |
Assessment Purpose
Software development companies are experts at writing bug free programs and are often contracted by clients to fix existing programs and to write new programs. Companies may not have software developers in their staff, and instead choose to outsource software development to a software development company.
In this CMP1041 Foundation Programming assessment you will work for a software development company, called Professional Software, who have recently been contracted to write a report that will
- provide advice to a client regarding software development
- identify bugs in an existing program
- develop a new pseudocode program
These programs automate the calculation of employee payment. You have the opportunity to apply your understanding of software development to help the client automate these calculations. As an employee of the software company it is your role to write a report that will solve the client’s needs and problems.
Assessment Task / Item
For this assessment, you must submit a report that addresses the five (5) tasks listed below.
Assessment Instructions
For this CMP1041 Foundation Programming assessment you are required to read the scenario email below and respond by completing the following five (5) tasks. Write your responses to the following five (5) tasks in the form of a report, addressing every point in each of the five tasks. You will submit your report as one (1) PDF file.
The following email was received from the client:
Hi Professional Software!
My name is John Doe, and I am a project manager at Payroll Company. Thank you for accepting our contract to fix our existing program, which calculates bonus pay, and to help us build a new program, to calculate payroll information.
Payroll Company has no software developers, we do however hire freelance software developers to convert pseudocode into programs that we can run. I’m not very technical and I don’t know much about software. Can you educate me about what pseudocode is? Can you also educate me about how a programming language is turned into a program that I can run on my computer?
We previously had a program built, which helps us calculate bonus pay for each employee, however we think that it is wrong. It seems to be paying our employees far less than expected. It should pay them
$100 per month they have been employed with us. Our employees are pretty unhappy with this situation! Can you take a look at the pseudocode of the program and inform us of any problems with it.
0: Start
1: // Bonus should be $100 per month the employee has worked here. 2: PROMPT “Enter number of years the employee has worked here: ” 3: GET number_of_years_employed
4: total_bonus = number_of_years_employed * 100 5: PROMT “Bonus for employee: $”, total_bonuz
6: OUTPUT total_bonus
7: Stop
Example:
Enter number of years the employee has worked here: 10 Bonus for employee: $1000
We also want a new program, which will calculate the net, gross, and tax paid for an employee per week. Could you provide us with pseudocode of a program that takes an employee’s hourly wage, amount of hours worked in the week, and then provides us with the amount of net pay (total pay), gross pay (total – tax), and tax paid. This will save us a lot of time calculating this by hand for each employee!
Example:
Write a report to be sent back to the client with at least the following sections:
- Title – include the name of the client company.
- Summary – detail what is in the report.
- A section for each of the five tasks below.
Task 1
The client is unsure of what pseudocode is and how programs can be run on their machine. Provide the following information in your report:
- Explain to the client what pseudocode is, specifically discuss why it is used to implement conceptual algorithms. (100 words or less).
- Explain to the client that provided pseudocode can be turned into a programming language, and explain how that programming language is transformed into a machine language that can be run on their machine. (100 words or less).
Task 2
The client provided pseudocode for calculating bonuses that he believes has bugs in it. Find all syntax errors in the provided pseudocode (there is at least one) and provide the following information in your CMP1041 Foundation Programming report:
- The number of syntax errors in the provided code.
- The client is not a software developer, to help them understand the problem describe what a syntax error is.
- Which line of code contains the syntax error.
- Fix the syntax error and provide the fixed code.
You may use the following template, replacing all of the <…> with the correct information:
Example: The client wants pseudocode for calculating bonuses that he believes has bugs in it. Find all logical errors in the provided pseudocode (there is at least one) and provide the following information in your CMP1041 Foundation Programming report:
|
YOUR COMMENT