# 代写 SIT105 – Critical Thinking and Problem Solving

• 100%原创包过,高质量代写&免费提供Turnitin报告--24小时客服QQ&微信：273427
• 代写 SIT105 – Critical Thinking and Problem Solving

SIT105 – Critical Thinking and Problem Solving
Assignment 2 Trimester 3 2014
This assignment is to be completed individually. It is worth 15% of overall
marks. It is due on or before 8.30 am Monday January 19 (Week 11).
Objectives:
There are several goals for the assignment:
• to demonstrate your understanding of some of the concepts behind
programming;
• to demonstrate a methodical approach to solving problems; and
• to design and develop algorithms using sequence, selection and iterative
constructs and modularisation.
• Carefully read all of the questions and provide solutions to all three questions in a
word processed document.
• Include a completed assignment cover sheet as the first page of your document and
convert the whole document to .pdf
• Submit your assignment in the assignment submission tool available in Moodle
(Week 11). Late submissions will be penalised. Note: The assignment is marked out
of 30 marks but is worth 15 marks i.e. 15%
problem and met the requirements, and on the overall “correctness” of your
solutions. Use of appropriate constructs; appropriate messages/error messages;
suitable formatting of printed output; and use of appropriate modularisation
techniques are further assessment criteria.
1. Draw a defining diagram for the following problem statement
A program that will prompt for and receive the measurements of a rectangle and
then calculate the circumference (perimeter) and the area of the rectangle. The
program is to continue until a sentinel of 999 is entered.
[5 marks]
1
2. Develop a solution algorithm for a program that prompts for and obtains the
daily temperatures for a whole month and displays the average, minimum,
maximum temperature for that month. Your solution should contain a
defining diagram, a pseudocode algorithm and a desk check of the algorithm
Your algorithm should first prompt the user for the number of days in the month (x)
and then request the user to enter x temperature values. If the user enters a negative
number for x then an appropriate message should be displayed.
Once the x number of temperatures have been entered, your algorithm must
calculate and display the average, minimum and maximum temperature.
[10 marks]
3. Develop an algorithm for the following problem statement using appropriate
modularisation techniques. Your solution should contain a defining diagram,
a pseudocode algorithm and a desk check of the algorithm.
Your algorithm will produce a list of students from a student file. The file has a
record for each unit attempted and result achieved in that unit for each student. Eg.
If a student has passed four units and failed two there will be 6 records on the file.
Each record contains the following fields:
Field Name  Data type
Student ID  Alphanumeric
Student Name  Alphanumeric
Unit Code  Alphanumeric
Unit Result  Numeric
代写 SIT105 – Critical Thinking and Problem Solving
The algorithm is to read the records from the student file and print a report of all
students as well as their results. The report should contain all of the fields properly
formatted. For each student there should be a printed summary of their results i.e. a
printed line of the number of passed units, the number of failed units and the
student’s WAM, the average of all units.
Print page headings and column headings at the top of each page. After printing 50
lines, a new page should be started. At the end of the report, the total number of
students; the total number of passed units and the total number of failed units
should be printed.
[15 marks]
代写 SIT105 – Critical Thinking and Problem Solving