Assessment Type Individual – Application Code
Length or Duration Four (4) Programs / Tasks
Subject Learning Outcomes SLO 2, SLO 3, SLO 4
Weighting 25%
Assessment Purpose
Many common problems solved by programmers include manipulation of numeric values and lists of numbers. In this assessment, you will use your understanding of the fundamental programming principles to solve four problems that involve numbers.
Assessment Item
For this assessment, you must submit four (4) algorithm descriptions and C++ programs, one for each task described in the brief below
Assessment Instructions
This assessment consists of four (4) tasks. You will need to prepare the following two components for each task.
Component 1: Algorithms
An algorithm is a set of well-defined instructions in sequence to solve the problem. An algorithm should not be computer code. Instead, the algorithm should be written in such a way that it can be used in similar programming languages to implement a solution in code.
Example: Find the largest of two numbers entered by the user.
Step 1: Start
Step 2: Declare variables a and b
Step 3: Get input from the user for a and b
Step 4: if a is greater than b Step 4.1: print a
Step 5: if b is greater than a Step 5.1: print b
Step 6: Stop
Component 2: C++ Coding
You will provide a C++ program for each of the four (4) questions given below that implements the algorithm you describe in Part 1.
CRICOS: 02155J / HE PROVIDER:
Assessment Tasks
Task 1 – Grading System
Write a program that allows the user to enter the mark scored within a range of 0 – 50. Given a positive value, do the following:
? If the given score is between 0 and 50 (0 = score = 50), then calculate the percentage (e.g., 100% for 50, 75% for 37.5, etc…). A percentage is a number or ratio that represents a fraction of 100.
? Calculate the grade from the percentage received. The grade will be: F, if the percentage is 0 – 59.99.
D, if the percentage is 60 – 69.99.
C, if the percentage is 70 – 79.99.
B, if the percentage is 80 – 89.99.
A, if the percentage is 90 – 100.
? If the given score is greater than 50, print “Score is greater than 50.”.
Example 1
Please enter your score: 32.6
You have passed with 65.2%, and received a grade D.
Example 2
Please enter your score: 10.5
You have failed with 21%, and received a grade F.
Example 3
Please enter your score: 50
You have passed with 100%, and received a grade A.
Example 4
Please enter your score: 74 Score is greater than 50.
Note: Inputs from the user are shown in bold blue.
Task 2 – Calculate Miles per Gallon
Write a program that allows a user to enter the litres of petrol consumed and the number of miles travelled by the car. Given a positive value for both litres of petrol and miles travelled, calculate the number of miles per gallon the car delivered. One litre of petrol is 0.264179 gallons.
You must show the output in three decimal places as shown in the example.
Example
Please enter the number of litres of petrol consumed: 15.5
Please enter the number of miles travelled: 75
Petrol Consumed: 15.500
Miles Travelled: 75.000
Miles per gallon: 18.316
Note: Inputs entered by the user are shown in bold blue.
Task 3 – Looping Through all Numbers from Start to Finish
Write a program that prompts the user to input two (2) integer values; a starting value and an end value. Loop through all the values from start to end, which should include the start and end values. For each value:
? If the number is divisible by both 3 and 5, print the word “ticktock”. For example for 15, 30, and 45 you would print “ticktock”.
? Else if it is a multiple of 3 (value % 3 == 0), print the word “tick”. For example, for 3, 6, and 9 you would print “tick”.
? Else if it is a multiple of 5 (value % 5 == 0) , then print “tock ”. For example, for 5, 10, and 20 you would print “tock”.
? Else if it is not divisible by 3 or 5, print the number. For example, for 1 you would just print ‘1’.
Example
Please enter a start value: 4
Please enter an end value: 15
tock tick
7
8 tick tock 11 tick 13 14 ticktock
Note: Inputs entered by the user are shown in bold blue.
Task 4 – Order Numbers
Write a program that prompts the user to input 3 integer values and print these values in ascending and descending order.
Example
Please enter the first number: 45
Please enter the second number: 12
Please enter the third number: 78
Ascending order:
12
45
78
Descending order:
78
45
12
Note: Inputs entered by the user are shown in bold blue.
Submission
All work must be submitted via the LMS, in the assignments section appropriate to this brief. Please ensure the above mentioned submission date and/or time are adhered to, or penalties may apply. You should submit a compressed (zip) file containing your C++ solutions folder. Within this file, each task must have its own file. Please ensure you use the following naming conventions for this submission.
Your zip file should be named using the following convention:
[Student_ID][Surname][First Name][SubjectCode][Assessment_#]
E.g.: 1234_Singh_Visha_PRG1002_Assessment_02
Each task within the zip file should follow this convention:
[Task_#][Student_ID] [SubjectCode][Assessment#]
E.g.: Task_1_1234_PRG1002_Assessment_02
Therefore, your zip file should consist of four (4) individual files, that each use the above mentioned naming format.
For more information on late submission, please see the Assessment Policy.
Academic Integrity
The integrity of the assessment process is fundamental for ensuring appropriate evaluation at AIT. All work submitted should be your own, and where additional resources are used, they must be referenced according to the Harvard style. Additionally, Turnitin is available in the LMS to test plagiarism in your writing.
For more information on academic integrity, please see the Academic Integrity and Academic Integrity Penalties Policies.
Appeals
Fair application of the assessment rubric, rules and guidelines should be administered for each assessment. If you feel an evaluation requires further consideration, you may be entitled to an appeal.
For more information on your right to an appeal, please see the Assessment Appeals Procedure and Policy.
Policies
For access to the policies mentioned above and related to education at AIT, please see the footer of the AIT website, and follow the link named Education Policies and Procedures.
Website: https://www.ait.edu.au
Assessment Rubric
Task Descriptor (F)
Fail (P) Pass (C) Credit (D)
Distinction (HD)
High Distinction
Ability to produce appropriate readable comments in code
15% No comments Major lack of comments make it difficult to
understand the code A few lines of code are commented on, but do not adequately explain what the code intends to accomplish Important lines of code are commented on and
are useful in understanding what the code accomplishes, or the code is overly commented on Comments are succinct, well-written and clearly explain what the code intends to
accomplish
Produces organised code with adequate indentation and correct naming conventions
10% No clear organisation in code Some organisation, indentation and use of correct naming conventions with some exceptions Organisation, indention, and use of naming conventions produces readable code with few exceptions Organisation, indention, and use of naming conventions produces readable code without exception Organisation, indention, and use of naming conventions produces readable code without exception and follows documented best practices supported by correctly cited resources
Ability to apply appropriate variables or
data structures (i.e., array)
15% Not able to identify required data type or data structure Able to identify required data type or data structure but they are not applied correctly and correct results are not produced Able to identify and apply required data type or data structure, and they are applied adequately, although correct
results are not produced Able to identify and apply required data type or data structure and produce partially correct results Able to identify and apply required data type or data structure and produce correct results
Ability to analyse problems and identify appropriate requirements
20% Unable to identify any input and output based on stated problems Able to identify only one input and output based on stated problems Able to identify correct inputs and outputs based on stated problems with some errors or missed cases for one problem Able to identify solutions, inputs and outputs for all stated problems Able to identify correct solutions, inputs and outputs for all stated problems including corner cases
Ability to identify and apply correct control structures (sequential,
selective, and loops)
30% Not able to identify required control structures Able to identity required control structures but does not apply them correctly Able to identify and apply required control structures but with limited evidence of correct results Able to identify and apply required control structures and produce correct results with few exceptions Able to identify and apply required control structures and produce correct results without exception
Ability to keep the program free from syntax,
logical and run-time errors
10% Unable to run the program due to syntax or runtime errors Able to create a program but with logic errors Able to create a program that runs without any logic errors Able to create a program that runs without any logical errors but that does not produce correct output Able to create a program that runs without any logical error and displays appropriate outputs
CRICOS: 02155J / HE PROVIDER:
GET SOLUTION FOR THIS ASSIGNMENT, Get Impressive Scores in Your Class
TO BE RE-WRITTEN FROM THE SCRATCH
GET SOLUTION FOR THIS ASSIGNMENT
TO BE RE-WRITTEN FROM THE SCRATCH
- Original and non-plagiarized custom papers- Our writers develop their writing from scratch unless you request them to rewrite, edit or proofread your paper.
- Timely Delivery– primewritersbay.com believes in beating the deadlines that our customers have imposed because we understand how important it is.
- Customer satisfaction- Customer satisfaction. We have an outstanding customer care team that is always ready and willing to listen to you, collect your instructions and make sure that your custom writing needs are satisfied
- Confidential- It’s secure to place an order at primewritersbay.com We won’t reveal your private information to anyone else.
- Writing services provided by experts- Looking for expert essay writers, thesis and dissertation writers, personal statement writers, or writers to provide any other kind of custom writing service?
- Enjoy Please Note-You have come to the most reliable academic writing site that will sort all assignments that that you could be having. We write essays, research papers, term papers, research proposals. An algorithm is a set of well-defined instructions in sequence to solve the problem.